Documentation
¶
Overview ¶
Package deps provides functionality for parsing dependency files and generating .deps files used by RE Proxy for invalidating remote cache.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Parser ¶
type Parser struct { // ExecRoot is the exec root under which all file paths are relative. ExecRoot string // DigestStore is a store for file digests as read from disk. DigestStore filemetadata.Cache }
Parser parses dependency files into manifests.
func (*Parser) GetDeps ¶
GetDeps returns the deps file content based on the d file and include directories. The deps are formatted as sorted unique "<path>:<digest>\n" lines. If <digest> is "NA", it means it failed to get digest of the file.
func (*Parser) VerifyDepsFile ¶
VerifyDepsFile compares an existing deps file in the expected <path>.d.deps path to the one that would be generated from the provided d file and include directories.
Click to show internal directories.
Click to hide internal directories.