Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AllPayloadTypes = map[PayloadType]Payloader{ PayloadTypeTekton: &Tekton{}, PayloadTypeSimpleSigning: &SimpleSigning{}, }
AllPayloadTypes is a list of all valid Payload types.
Functions ¶
This section is empty.
Types ¶
type PayloadType ¶
type PayloadType string
const ( PayloadTypeTekton PayloadType = "tekton" PayloadTypeSimpleSigning PayloadType = "simplesigning" )
type Payloader ¶
type Payloader interface {
CreatePayload(obj interface{}) (interface{}, error)
Type() PayloadType
}
Payloader is an interface to generate a chains Payload from a TaskRun
type Simple ¶
func NewSimpleStruct ¶
func NewSimpleStruct() Simple
type SimpleSigning ¶
type SimpleSigning struct {
}
SimpleSigning is a formatter that uses the RedHat simple signing format https://www.redhat.com/en/blog/container-image-signing
func (*SimpleSigning) CreatePayload ¶
func (i *SimpleSigning) CreatePayload(obj interface{}) (interface{}, error)
CreatePayload implements the Payloader interface.
func (*SimpleSigning) Type ¶
func (i *SimpleSigning) Type() PayloadType
type Tekton ¶
type Tekton struct {
}
Tekton is a formatter that just captures the TaskRun Status with no modifications.
func (*Tekton) CreatePayload ¶
CreatePayload implements the Payloader interface.
func (*Tekton) Type ¶
func (i *Tekton) Type() PayloadType
Click to show internal directories.
Click to hide internal directories.