Documentation
¶
Overview ¶
Package digestpath holds the canonical path rules shared by the committed (gitref) and filesystem (filedigest) digest schemes. The two schemes are two halves of one persistent render-cache key space: their canonicalization and record framing must stay byte-identical, so both packages call this one.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CanonicalFilesystemPath ¶
CanonicalFilesystemPath canonicalizes a filesystem-digest (filedigest) path. Empty input is rejected.
func CanonicalGitPath ¶
CanonicalGitPath canonicalizes a committed-digest (gitref) path. Empty input is allowed and cleans to "." (historical gitref behavior).
func IsWindowsDrivePath ¶
IsWindowsDrivePath reports whether value begins with a drive designator.
func WriteRecord ¶
WriteRecord frames one digest record: each field NUL-terminated, the record newline-terminated. Both digest schemes use this exact framing.
Types ¶
This section is empty.