taskrun

package
v0.19.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateAttestation

func GenerateAttestation(ctx context.Context, tro *objects.TaskRunObject, slsaConfig *slsaconfig.SlsaConfig) (interface{}, error)

func Metadata added in v0.16.0

Metadata adds taskrun's start time, completion time and reproducibility labels to the metadata section of the generated provenance.

Types

type BuildConfig

type BuildConfig struct {
	Steps []attest.StepAttestation `json:"steps"`
}

BuildConfig is the custom Chains format to fill out the "buildConfig" section of the slsa-provenance predicate

type Step

type Step struct {
	EntryPoint  string            `json:"entryPoint"`
	Arguments   interface{}       `json:"arguments,omitempty"`
	Environment interface{}       `json:"environment,omitempty"`
	Annotations map[string]string `json:"annotations"`
}

Step corresponds to one step in the TaskRun

Jump to

Keyboard shortcuts

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