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.