Help us shape the future of Go! Take the 2026 Go Developer Survey

naming

package
v0.33.25 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

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

func ShadowName(artifactName string) string

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.

Jump to

Keyboard shortcuts

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