build

package
v0.8.20230131140132 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AlgorithmSHA256 = "sha256"
	AlgorithmSHA1   = "sha1"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ArtifactDependencies

type ArtifactDependencies struct {
	Cmd         Cmd
	RuntimeDeps map[string]Dependency
}

func ArtifactDependency

func ArtifactDependency(deps map[string]Dependency, path, cmdFlags string) *ArtifactDependencies

func (ArtifactDependencies) CmdFlags

func (in ArtifactDependencies) CmdFlags() string

func (ArtifactDependencies) CmdPath

func (in ArtifactDependencies) CmdPath() string

type CheckSum

type CheckSum struct {
	Algorithm string
	Digest    string
}

func Verification

func Verification(algo, digest string) CheckSum

type Cmd

type Cmd struct {
	Path     string
	CmdFlags string
}

type Dependency

type Dependency struct {
	Coordinates string
	Version     string
	CheckSum    CheckSum
	Type        string
}

func Dependence

func Dependence(coordinates, version string, checksum CheckSum) Dependency

func (Dependency) ToDigestSet

func (d Dependency) ToDigestSet() slsa.DigestSet

func (Dependency) ToUri

func (d Dependency) ToUri() string

type Tool

type Tool interface {
	BuildFiles() []string
	ResolveDeps(workDir string) (*ArtifactDependencies, error)
}

type Tools

type Tools struct {
	Tools []Tool
}

func (Tools) DetectDeps

func (t Tools) DetectDeps(workDir string) (*ArtifactDependencies, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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