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

identity

package
v0.57.21 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// PackIDPrefix is the v1 packfile identifier prefix.
	PackIDPrefix = "pfv1_"
	// WriterVersionV1 is the v1 kvfile writer identity namespace.
	WriterVersionV1 = "kvfile-writer-v1"
)

Variables

This section is empty.

Functions

func BuildPackID

func BuildPackID(resourceID string, result *writer.PackResult) (string, error)

BuildPackID builds a v1 packfile identifier for one resource-scoped pack.

func NewPackID

func NewPackID() string

NewPackID returns a random v1 packfile identifier. A store that deletes packfiles names each one it writes this way, so writing the same blocks again never reuses the identifier of a packfile being deleted.

func ValidatePackID

func ValidatePackID(id string) error

ValidatePackID validates the v1 packfile identifier shape.

Types

This section is empty.

Jump to

Keyboard shortcuts

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