Documentation
¶
Overview ¶
Package naming provides deterministic name derivation helpers shared between the snapshot tree builder and the data-plane exporter. Keeping the formulae here prevents an import cycle between internal/snapshot/source (tree) and internal/snapshot/exporter (data-plane).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ShadowName ¶
ShadowName returns a deterministic Kubernetes-safe name for the shadow pair (both the cluster-scoped shadow VolumeSnapshotContent and the namespaced shadow VolumeSnapshot share this name). The name is derived from the artifact VolumeSnapshotContent name so that resume across restarts is idempotent: the same artifact always maps to the same shadow pair name.
The result is always exactly 22 characters ("d8-ss-" prefix + 16 hex digits encoding 8 bytes of sha256), well within the 63-char DNS label limit.
Types ¶
This section is empty.