layerkey

package
v0.41.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2026 License: MIT Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalid = errors.New("layerkey: invalid inputs")

Functions

This section is empty.

Types

type File

type File struct{ Path, SHA string }

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) Key

func (in Inputs) Key() (string, error)

Key returns the 64 hex digits of the key. The order of Roots, Tools and Files does not change it.

type Tool

type Tool struct{ Name, Version string }

Jump to

Keyboard shortcuts

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