Documentation ¶
Index ¶
- Variables
- func New(builderID string, payload []byte) (iface.Provenance, error)
- type Attestation
- type BYOBProvenance
- func (p BYOBProvenance) BuildType() (string, error)
- func (p BYOBProvenance) BuilderID() (string, error)
- func (p *BYOBProvenance) GetBranch() (string, error)
- func (p BYOBProvenance) GetBuildFinishTime() (*time.Time, error)
- func (p BYOBProvenance) GetBuildInvocationID() (string, error)
- func (p BYOBProvenance) GetBuildStartTime() (*time.Time, error)
- func (p BYOBProvenance) GetBuildTriggerPath() (string, error)
- func (p BYOBProvenance) GetNumberResolvedDependencies() (int, error)
- func (p BYOBProvenance) GetSystemParameters() (map[string]any, error)
- func (p *BYOBProvenance) GetTag() (string, error)
- func (p BYOBProvenance) GetWorkflowInputs() (map[string]interface{}, error)
- func (p BYOBProvenance) Predicate() slsa1.ProvenancePredicate
- func (p BYOBProvenance) SourceURI() (string, error)
- func (p BYOBProvenance) Subjects() ([]intoto.Subject, error)
- func (p BYOBProvenance) TriggerURI() (string, error)
- type ContainerBasedProvenance
- func (p ContainerBasedProvenance) BuildType() (string, error)
- func (p ContainerBasedProvenance) BuilderID() (string, error)
- func (p ContainerBasedProvenance) GetBranch() (string, error)
- func (p ContainerBasedProvenance) GetBuildFinishTime() (*time.Time, error)
- func (p ContainerBasedProvenance) GetBuildInvocationID() (string, error)
- func (p ContainerBasedProvenance) GetBuildStartTime() (*time.Time, error)
- func (p ContainerBasedProvenance) GetBuildTriggerPath() (string, error)
- func (p ContainerBasedProvenance) GetNumberResolvedDependencies() (int, error)
- func (p ContainerBasedProvenance) GetSystemParameters() (map[string]any, error)
- func (p ContainerBasedProvenance) GetTag() (string, error)
- func (p ContainerBasedProvenance) GetWorkflowInputs() (map[string]interface{}, error)
- func (p ContainerBasedProvenance) Predicate() slsa1.ProvenancePredicate
- func (p ContainerBasedProvenance) SourceURI() (string, error)
- func (p ContainerBasedProvenance) Subjects() ([]intoto.Subject, error)
- func (p ContainerBasedProvenance) TriggerURI() (string, error)
- type ProvenanceV1
Constants ¶
This section is empty.
Variables ¶
var BYOBBuildType = "https://github.com/slsa-framework/slsa-github-generator/delegator-generic@v0"
BYOBBuildType is the base build type for BYOB delegated builders.
var ContainerBasedBuildType = "https://slsa.dev/container-based-build/v0.1?draft"
ContainerBasedBuildType is the build type for the container-based builder.
Functions ¶
Types ¶
type Attestation ¶ added in v2.4.0
type Attestation struct { intoto.StatementHeader Predicate slsa1.ProvenancePredicate `json:"predicate"` }
Attestation is an in-toto SLSA v1.0 attestation statement.
type BYOBProvenance ¶ added in v2.4.0
type BYOBProvenance struct {
// contains filtered or unexported fields
}
BYOBProvenance is SLSA v1.0 provenance for the slsa-github-generator BYOB build type.
func (*BYOBProvenance) GetBranch ¶ added in v2.4.0
func (p *BYOBProvenance) GetBranch() (string, error)
GetBranch implements Provenance.GetBranch.
func (BYOBProvenance) GetBuildFinishTime ¶ added in v2.4.0
GetBuildFinishTime implements Provenance.GetBuildFinishTime.
func (BYOBProvenance) GetBuildInvocationID ¶ added in v2.4.0
GetBuildInvocationID implements Provenance.GetBuildInvocationID.
func (BYOBProvenance) GetBuildStartTime ¶ added in v2.4.0
GetBuildStartTime implements Provenance.GetBuildStartTime.
func (BYOBProvenance) GetBuildTriggerPath ¶ added in v2.4.0
GetBuildTriggerPath implements Provenance.GetBuildTriggerPath.
func (BYOBProvenance) GetNumberResolvedDependencies ¶ added in v2.4.0
GetNumberResolvedDependencies implements Provenance.GetNumberResolvedDependencies.
func (BYOBProvenance) GetSystemParameters ¶ added in v2.4.0
GetSystemParameters implements Provenance.GetSystemParameters.
func (*BYOBProvenance) GetTag ¶ added in v2.4.0
func (p *BYOBProvenance) GetTag() (string, error)
GetTag implements Provenance.GetTag.
func (BYOBProvenance) GetWorkflowInputs ¶ added in v2.4.0
GetWorkflowInputs implements Provenance.GetWorkflowInputs.
func (BYOBProvenance) Predicate ¶ added in v2.4.0
func (p BYOBProvenance) Predicate() slsa1.ProvenancePredicate
Predicate implements ProvenanceV02.Predicate.
func (BYOBProvenance) TriggerURI ¶ added in v2.4.0
TriggerURI implements Provenance.TriggerURI.
type ContainerBasedProvenance ¶ added in v2.4.0
type ContainerBasedProvenance struct {
// contains filtered or unexported fields
}
ContainerBasedProvenance is provenance generated by the container-based builder.
func (ContainerBasedProvenance) BuildType ¶ added in v2.4.0
BuildType implements Provenance.BuildType.
func (ContainerBasedProvenance) BuilderID ¶ added in v2.4.0
BuilderID implements Provenance.BuilderID.
func (ContainerBasedProvenance) GetBranch ¶ added in v2.4.0
GetBranch implements Provenance.GetBranch.
func (ContainerBasedProvenance) GetBuildFinishTime ¶ added in v2.4.0
GetBuildFinishTime implements Provenance.GetBuildFinishTime.
func (ContainerBasedProvenance) GetBuildInvocationID ¶ added in v2.4.0
GetBuildInvocationID implements Provenance.GetBuildInvocationID.
func (ContainerBasedProvenance) GetBuildStartTime ¶ added in v2.4.0
GetBuildStartTime implements Provenance.GetBuildStartTime.
func (ContainerBasedProvenance) GetBuildTriggerPath ¶ added in v2.4.0
GetBuildTriggerPath implements Provenance.GetBuildTriggerPath.
func (ContainerBasedProvenance) GetNumberResolvedDependencies ¶ added in v2.4.0
GetNumberResolvedDependencies implements Provenance.GetNumberResolvedDependencies.
func (ContainerBasedProvenance) GetSystemParameters ¶ added in v2.4.0
GetSystemParameters implements Provenance.GetSystemParameters.
func (ContainerBasedProvenance) GetWorkflowInputs ¶ added in v2.4.0
GetWorkflowInputs implements Provenance.GetWorkflowInputs.
func (ContainerBasedProvenance) Predicate ¶ added in v2.4.0
func (p ContainerBasedProvenance) Predicate() slsa1.ProvenancePredicate
Predicate implements ProvenanceV02.Predicate.
func (ContainerBasedProvenance) SourceURI ¶ added in v2.4.0
SourceURI implements Provenance.SourceURI.
func (ContainerBasedProvenance) TriggerURI ¶ added in v2.4.0
TriggerURI implements Provenance.TriggerURI.
type ProvenanceV1 ¶
type ProvenanceV1 interface {
Predicate() slsa1.ProvenancePredicate
}
ProvenanceV1 represents v1.0 provenance.