Documentation
¶
Index ¶
- Constants
- Variables
- func New(payload []byte) (iface.Provenance, error)
- type GCBIntotoTextStatement
- type Provenance
- func (p *Provenance) BuildType() (string, error)
- func (p *Provenance) BuilderID() (string, error)
- func (p *Provenance) GetSystemParameters() (map[string]any, error)
- func (p *Provenance) Header() (intoto.StatementHeader, error)
- func (p *Provenance) Predicate() (interface{}, error)
- func (p *Provenance) PredicateType() (string, error)
- func (p *Provenance) SourceBranch() (string, error)
- func (p *Provenance) SourceTag() (string, error)
- func (p *Provenance) SourceURI() (string, error)
- func (p *Provenance) Subjects() ([]intoto.Subject, error)
- type ProvenancePredicate
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 ¶
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.
type ProvenancePredicate ¶
type ProvenancePredicate intotov1.ProvenancePredicate
ProvenancePredicate is the provenance predicate definition.
Click to show internal directories.
Click to hide internal directories.