Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrInvalid = errors.New("layerkey: invalid inputs")
Functions ¶
This section is empty.
Types ¶
type Inputs ¶
type Inputs struct {
Platform string
// Mount is the absolute path where the workspace mounts, because package managers write it into files.
Mount string
Roots []string
Tools []Tool
// Files must hold at least one file, because a layer with no input proves nothing about its content.
Files []File
}
Inputs is everything that decides the content of a layer. The key does not name the repository: the stored row does.
func (Inputs) BaseKey ¶ added in v0.44.0
BaseKey returns the 64 hex digits of the base key: the key without the input files. Two layers share a base key when they differ only in their input files. It names a family of layers, never a layer: a layer of the family is a starting point and no guarantee about the inputs. Files is ignored.