Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContentDigestCache ¶
type ContentDigestCache struct {
// contains filtered or unexported fields
}
ContentDigestCache memoizes per-file content digests for one run. It is safe for concurrent use. Callers own staleness: a run-scoped cache assumes worktree content is stable for the run — the same contract as the path-set memoization layered above it. Verification recomputes MUST pass a nil cache so they re-read disk.
func NewContentDigestCache ¶
func NewContentDigestCache() *ContentDigestCache
type PathDigestInput ¶
type PathDigestInput struct {
RepoRoot string
Paths []PathDigestPath
ForbiddenRoots []string
ContentCache *ContentDigestCache
}
type PathDigestPath ¶
type PathDigestResult ¶
type PathDigestResult struct {
Digest string
}
func PathDigest ¶
func PathDigest(ctx context.Context, input PathDigestInput) (PathDigestResult, error)
PathDigest returns a stable digest for repository-relative filesystem inputs. It reads the working tree as drydock renderers see it: untracked and ignored files under requested directories are included, while symlinks and special files are rejected so callers can fail closed.
Click to show internal directories.
Click to hide internal directories.