Documentation ¶
Index ¶
Constants ¶
View Source
const ( PayloadTypeTekton config.PayloadType = "tekton" PayloadTypeSimpleSigning config.PayloadType = "simplesigning" PayloadTypeInTotoIte6 config.PayloadType = "in-toto" PayloadTypeSlsav1 config.PayloadType = "slsa/v1" PayloadTypeSlsav2alpha3 config.PayloadType = "slsa/v2alpha3" PayloadTypeSlsav2alpha4 config.PayloadType = "slsa/v2alpha4" )
Variables ¶
View Source
var ( IntotoAttestationSet = map[config.PayloadType]struct{}{ PayloadTypeInTotoIte6: {}, PayloadTypeSlsav1: {}, PayloadTypeSlsav2alpha3: {}, PayloadTypeSlsav2alpha4: {}, } )
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 RetrieveAllArtifactURIs(ctx context.Context, obj interface{}) ([]string, error) }
Payloader is an interface to generate a chains Payload from a TaskRun
func GetPayloader ¶ added in v0.14.0
GetPayloader returns a new Payloader of the given type. If no Payloader is registered for the type, an error is returned.
Click to show internal directories.
Click to hide internal directories.