volumeplace

package
v0.2026335.1717 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2026 License: MIT Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthoredLabelName added in v0.2026334.1616

func AuthoredLabelName(imageBox string) func(spec.VolumeMount) string

AuthoredLabelName is the label-side naming policy: it recovers the authored volume name from the image label's realized name by stripping the image box's scope (volname's rule).

func ExplicitHostPath

func ExplicitHostPath(dv spec.DeployVolume) (string, bool)

ExplicitHostPath returns the host location an explicit placement names, and whether it names one at all. A placement without host: derives its location from the deploy key, which is the caller's concern; an encrypted placement places its plaintext mount point under the named directory. `~` and the XDG tokens expand through the module's one resolver (D-STORE-1).

func ParentVolumesFrom

func ParentVolumesFrom(labelVolumes []spec.VolumeMount, deployVolumes []spec.DeployVolume, imageBox string) []spec.ParentVolume

ParentVolumesFrom returns the (host path, container path) pairs a nested deploy's overlay build needs, for the placements that name an explicit host: the label supplies the container path (the layer owns it, D-VOL-1) and the placement the host path (D-VOL-2). The label carries the realized, image-box-scoped name (`charly-<box>-<name>`), so the pairing key strips that scope (AuthoredLabelName) to reach the name the operator wrote in the local placement.

Types

type LabelPlacement

type LabelPlacement struct {
	Label     spec.VolumeMount
	Placement spec.DeployVolume
	Found     bool
}

LabelPlacement is one label volume entry beside the local placement that names it. Found is false when the deploy names no placement for that label — the label then keeps its default backing, which is the caller's branch, not a pairing failure.

func IndexPlacements

func IndexPlacements(labelVolumes []spec.VolumeMount, deployVolumes []spec.DeployVolume, nameOf func(spec.VolumeMount) string) []LabelPlacement

IndexPlacements indexes each label volume against the placements by name. nameOf derives the placement key from a label entry (the authored name, or the deploy-normalized one), so the naming policy stays with the caller while the pairing rule lives here. Every label gets an entry, in label order.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL