Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthoredVolumeName ¶
func AuthoredVolumeName(lv spec.VolumeMount) string
AuthoredVolumeName is the identity key: the name the label was written with.
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) []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). It pairs by the authored name, which is what an image built from this tree's own label carries.
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.