volname

package
v0.2026334.1616 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2026 License: MIT Imports: 1 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

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

View Source
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.

View Source
const SharedVolumeMarker = "charly-shared-"

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

func BareBoxVolumeName(name, imageBox string) string

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

func BoxVolumeName(imageBox, name string) string

BoxVolumeName is the realized name of the exclusive label volume `name` of imageBox.

func BoxVolumePrefix added in v0.2026334.1616

func BoxVolumePrefix(imageBox string) string

BoxVolumePrefix is the realized prefix of every exclusive label volume of imageBox.

func IsSharedVolumeName

func IsSharedVolumeName(name string) bool

IsSharedVolumeName reports whether name is in the reserved shared namespace.

func SharedVolumeName

func SharedVolumeName(imageBox, name string) string

SharedVolumeName is the realized name of the shared volume `name` of imageBox.

func SharedVolumePrefix

func SharedVolumePrefix(imageBox string) string

SharedVolumePrefix is the realized prefix of every shared volume of imageBox.

Types

This section is empty.

Jump to

Keyboard shortcuts

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