intotoite6

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ChainsReproducibleAnnotation = "chains.tekton.dev/reproducible"
)

Variables

This section is empty.

Functions

func GetSubjectDigests added in v0.6.0

func GetSubjectDigests(tr *v1beta1.TaskRun, logger *zap.SugaredLogger) []intoto.Subject

GetSubjectDigests extracts OCI images from the TaskRun based on standard hinting set up It also goes through looking for any PipelineResources of Image type

func NewFormatter

func NewFormatter(cfg config.Config, logger *zap.SugaredLogger) (formats.Payloader, error)

Types

type BuildConfig added in v0.6.0

type BuildConfig struct {
	Steps []Step `json:"steps"`
}

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

type InTotoIte6

type InTotoIte6 struct {
	// contains filtered or unexported fields
}

func (*InTotoIte6) CreatePayload

func (i *InTotoIte6) CreatePayload(obj interface{}) (interface{}, error)

func (*InTotoIte6) Type

func (i *InTotoIte6) Type() formats.PayloadType

func (*InTotoIte6) Wrap added in v0.3.0

func (i *InTotoIte6) Wrap() bool

type Step added in v0.6.0

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