Documentation
¶
Index ¶
- Constants
- type Backend
- func (b *Backend) CertName(opts config.StorageOpts) string
- func (b *Backend) ChainName(opts config.StorageOpts) string
- func (b *Backend) PayloadName(opts config.StorageOpts) string
- func (b *Backend) RetrievePayloads(opts config.StorageOpts) (map[string]string, error)
- func (b *Backend) RetrieveSignatures(opts config.StorageOpts) (map[string][]string, error)
- func (b *Backend) SigName(opts config.StorageOpts) string
- func (b *Backend) StorePayload(rawPayload []byte, signature string, opts config.StorageOpts) error
- func (b *Backend) Type() string
Constants ¶
View Source
const ( StorageBackendTekton = "tekton" PayloadAnnotationFormat = "chains.tekton.dev/payload-%s" SignatureAnnotationFormat = "chains.tekton.dev/signature-%s" CertAnnotationsFormat = "chains.tekton.dev/cert-%s" ChainAnnotationFormat = "chains.tekton.dev/chain-%s" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend struct {
// contains filtered or unexported fields
}
Backend is a storage backend that stores signed payloads in the TaskRun metadata as an annotation. It is stored as base64 encoded JSON.
func NewStorageBackend ¶
func NewStorageBackend(ps versioned.Interface, logger *zap.SugaredLogger, tr *v1beta1.TaskRun) *Backend
NewStorageBackend returns a new Tekton StorageBackend that stores signatures on a TaskRun
func (*Backend) CertName ¶ added in v0.7.0
func (b *Backend) CertName(opts config.StorageOpts) string
func (*Backend) ChainName ¶ added in v0.7.0
func (b *Backend) ChainName(opts config.StorageOpts) string
func (*Backend) PayloadName ¶ added in v0.7.0
func (b *Backend) PayloadName(opts config.StorageOpts) string
func (*Backend) RetrievePayloads ¶ added in v0.7.0
RetrievePayload retrieve the payload stored in the taskrun.
func (*Backend) RetrieveSignatures ¶ added in v0.7.0
RetrieveSignature retrieve the signature stored in the taskrun.
func (*Backend) StorePayload ¶
StorePayload implements the Payloader interface.
Click to show internal directories.
Click to hide internal directories.