Documentation
¶
Overview ¶
Package volname is the ONE home of the realized name of a SHARED volume: the reserved `charly-shared-<image-box>-<name>` namespace (D-VOL-3).
It is the naming half of the volume contract, split from the placement half (spec/volumeplace) because the box-metadata decoder needs the name and must not reach host-path resolution: volumeplace imports hostenv, hostenv imports container, so a container→volumeplace import would close a cycle. This package imports nothing but the standard library, so every layer — the decoder, the sdk contract aliases, the plugins — can use it.
Index ¶
Constants ¶
const BoxVolumeMarker = "charly-"
BoxVolumeMarker is the realized prefix of an EXCLUSIVE label volume: the image box scopes it in the image label (`charly-<image-box>-<name>`); the deploy key scopes it again at config time. The authored name is recovered by stripping this prefix.
SharedVolumeMarker is the reserved namespace of a shared volume: one named volume, bind store or encrypted store per image box, mounted by every deployment of it.
Variables ¶
This section is empty.
Functions ¶
func BareBoxVolumeName ¶ added in v0.2026334.1616
BareBoxVolumeName strips imageBox's realized prefix, returning the authored name. A name outside that namespace is returned unchanged.
func BoxVolumeName ¶ added in v0.2026334.1616
BoxVolumeName is the realized name of the exclusive label volume `name` of imageBox.
func BoxVolumePrefix ¶ added in v0.2026334.1616
BoxVolumePrefix is the realized prefix of every exclusive label volume of imageBox.
func IsSharedVolumeName ¶
IsSharedVolumeName reports whether name is in the reserved shared namespace.
func SharedVolumeName ¶
SharedVolumeName is the realized name of the shared volume `name` of imageBox.
func SharedVolumePrefix ¶
SharedVolumePrefix is the realized prefix of every shared volume of imageBox.
Types ¶
This section is empty.