buildinfo

package
v0.0.0-...-b7a57f2 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildInfoDocker

type BuildInfoDocker struct {
	Hash string `yaml:"hash"`
}

type BuildInfoFile

type BuildInfoFile struct {
	// Size of a file
	Size int64 `yaml:"size"`
	// Hash of file contents
	Hash string `yaml:"hash"`
}

type BuildInfoFiles

type BuildInfoFiles struct {
	// Hash contains the hash of all files
	Hash string `yaml:"hash"`
	// Files contains modtime & size of each file
	Files map[string]BuildInfoFile `yaml:"file"`
}

func MakeBuildInfoFiles

func MakeBuildInfoFiles() BuildInfoFiles

func NewBuildInfoFiles

func NewBuildInfoFiles() *BuildInfoFiles

type I

type I struct {
	// Meta holds data about the creator/origin of this object.
	Meta Meta

	// Target aggregates buildinfos of multiple files or docker images
	Target Targets
}

func FromProto

func FromProto(p *protos.BuildInfo) *I

func New

func New() *I

func (*I) Describe

func (i *I) Describe() string

func (*I) ToProto

func (i *I) ToProto(inputHash string) *protos.BuildInfo

type Meta

type Meta struct {
	// Task usually the taskname
	Task string `yaml:"task"`

	// InputHash used for target creation
	InputHash string `yaml:"input_hash"`
}

Creator information

type Targets

type Targets struct {
	Filesystem BuildInfoFiles             `yaml:"file"`
	Docker     map[string]BuildInfoDocker `yaml:"docker"`
}

func MakeTargets

func MakeTargets() Targets

func NewTargets

func NewTargets() *Targets

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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