v1

package
v2.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

This returns a new, empty instance of the v0.2 provenance.

Types

type ProvenanceV1

type ProvenanceV1 struct {
	intoto.StatementHeader
	Predicate slsa1.ProvenancePredicate `json:"predicate"`
	// contains filtered or unexported fields
}

func (*ProvenanceV1) BuilderID

func (prov *ProvenanceV1) BuilderID() (string, error)

func (*ProvenanceV1) ConfigURI

func (prov *ProvenanceV1) ConfigURI() (string, error)

func (*ProvenanceV1) GetBranch

func (prov *ProvenanceV1) GetBranch() (string, error)

func (*ProvenanceV1) GetBuildFinishTime added in v2.3.0

func (prov *ProvenanceV1) GetBuildFinishTime() (*time.Time, error)

func (*ProvenanceV1) GetBuildInvocationID added in v2.3.0

func (prov *ProvenanceV1) GetBuildInvocationID() (string, error)

func (*ProvenanceV1) GetBuildStartTime added in v2.3.0

func (prov *ProvenanceV1) GetBuildStartTime() (*time.Time, error)

func (*ProvenanceV1) GetBuildTriggerPath added in v2.3.0

func (prov *ProvenanceV1) GetBuildTriggerPath() (string, error)

TODO(https://github.com/slsa-framework/slsa-verifier/issues/566): verify the ref and repo as well.

func (*ProvenanceV1) GetNumberResolvedDependencies added in v2.3.0

func (prov *ProvenanceV1) GetNumberResolvedDependencies() (int, error)

func (*ProvenanceV1) GetSystemParameters added in v2.3.0

func (prov *ProvenanceV1) GetSystemParameters() (map[string]any, error)

func (*ProvenanceV1) GetTag

func (prov *ProvenanceV1) GetTag() (string, error)

func (*ProvenanceV1) GetWorkflowInputs

func (prov *ProvenanceV1) GetWorkflowInputs() (map[string]interface{}, error)

func (*ProvenanceV1) SourceURI

func (prov *ProvenanceV1) SourceURI() (string, error)

func (*ProvenanceV1) Subjects

func (prov *ProvenanceV1) Subjects() ([]intoto.Subject, error)

Jump to

Keyboard shortcuts

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