formats

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PayloadTypeTekton        config.PayloadType = "tekton"
	PayloadTypeSimpleSigning config.PayloadType = "simplesigning"
	PayloadTypeInTotoIte6    config.PayloadType = "in-toto"
	PayloadTypeSlsav1        config.PayloadType = "slsa/v1"
)

Variables

View Source
var (
	IntotoAttestationSet = map[config.PayloadType]struct{}{PayloadTypeInTotoIte6: {}, PayloadTypeSlsav1: {}}
)

Functions

func RegisterPayloader added in v0.14.0

func RegisterPayloader(key config.PayloadType, init PayloaderInit)

RegisterPayloader registers the PayloaderInit func for the given type. This is suitable to be calling during init() to register Payloader types.

Types

type Payloader

type Payloader interface {
	CreatePayload(ctx context.Context, obj interface{}) (interface{}, error)
	Type() config.PayloadType
	Wrap() bool
}

Payloader is an interface to generate a chains Payload from a TaskRun

func GetPayloader added in v0.14.0

func GetPayloader(key config.PayloadType, cfg config.Config) (Payloader, error)

GetPayloader returns a new Payloader of the given type. If no Payloader is registered for the type, an error is returned.

type PayloaderInit added in v0.14.0

type PayloaderInit func(config.Config) (Payloader, error)

PayloaderInit initializes a new Payloader instance for the given config.

Directories

Path Synopsis
slsa
v1

Jump to

Keyboard shortcuts

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