digestpath

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

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

func CanonicalFilesystemPath(value string) (string, error)

CanonicalFilesystemPath canonicalizes a filesystem-digest (filedigest) path. Empty input is rejected.

func CanonicalGitPath

func CanonicalGitPath(value string) (string, error)

CanonicalGitPath canonicalizes a committed-digest (gitref) path. Empty input is allowed and cleans to "." (historical gitref behavior).

func IsWindowsDrivePath

func IsWindowsDrivePath(value string) bool

IsWindowsDrivePath reports whether value begins with a drive designator.

func WriteRecord

func WriteRecord(digest hash.Hash, fields ...string)

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.

Jump to

Keyboard shortcuts

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