v10

package
v2.4.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PredicateSLSAProvenance represents a build provenance for an artifact.
	PredicateSLSAProvenance = intotov1.PredicateSLSAProvenance
	BuildType               = "https://cloud.google.com/build/gcb-buildtypes/google-worker/v1"
)

Variables

View Source
var BuilderIDs = []string{
	"https://cloudbuild.googleapis.com/GoogleHostedWorker",
}

Functions

func New

func New(payload []byte) (iface.Provenance, error)

Types

type GCBIntotoTextStatement

type GCBIntotoTextStatement Provenance

GCBIntotoTextStatement if for code compatibility with v0.1 code.

type Provenance

type Provenance struct {
	intoto.StatementHeader
	Pred ProvenancePredicate `json:"predicate"`
}

Provenance is GCB provenance.

func (*Provenance) BuildType

func (p *Provenance) BuildType() (string, error)

BuildType implements Statement.BuildType.

func (*Provenance) BuilderID

func (p *Provenance) BuilderID() (string, error)

BuilderID implements Statement.BuilderID.

func (*Provenance) GetSystemParameters

func (p *Provenance) GetSystemParameters() (map[string]any, error)

GetSystemParameters implements Provenance.GetSystemParameters.

func (*Provenance) Header

func (p *Provenance) Header() (intoto.StatementHeader, error)

func (*Provenance) Predicate

func (p *Provenance) Predicate() (interface{}, error)

func (*Provenance) PredicateType

func (p *Provenance) PredicateType() (string, error)

func (*Provenance) SourceBranch

func (p *Provenance) SourceBranch() (string, error)

SourceBranch implements Provenance.SourceBranch.

func (*Provenance) SourceTag

func (p *Provenance) SourceTag() (string, error)

SourceTag implements Provenance.SourceTag.

func (*Provenance) SourceURI

func (p *Provenance) SourceURI() (string, error)

SourceURI implements Provenance.SourceURI.

func (*Provenance) Subjects

func (p *Provenance) Subjects() ([]intoto.Subject, error)

Subjects implements Statement.Subjects.

type ProvenancePredicate

type ProvenancePredicate intotov1.ProvenancePredicate

ProvenancePredicate is the provenance predicate definition.

Jump to

Keyboard shortcuts

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