Help us shape the future of Go! Take the 2026 Go Developer Survey

taskrun

package
v0.27.2 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2026 License: Apache-2.0 Imports: 11 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.TaskRunObjectV1, 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