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 ¶
ValidatePackID validates the v1 packfile identifier shape.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.