Documentation
¶
Overview ¶
Package cache implements a package cache, or more properly a build artifact cache, but our only cached build artifacts are packages.
Index ¶
Constants ¶
View Source
const HashSize = 32
HashSize is the number of bytes in a hash.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ActionID ¶
An ActionID is a cache action key, the hash of a complete description of a repeatable computation (command line, environment variables, input file contents, executable contents).
type Hash ¶
type Hash struct {
// contains filtered or unexported fields
}
A Hash provides access to the canonical hash function used to index the cache. The current implementation uses SHA256, but clients must not assume this.
func NewHash ¶
NewHash returns a new Hash. The caller is expected to Write data to it and then call Sum.