Documentation
¶
Index ¶
Constants ¶
View Source
const ( StorageBackendGCS = "gcs" // taskrun-$namespace-$name/$key.signature SignatureNameFormat = "taskrun-%s-%s/%s.signature" // taskrun-$namespace-$name/$key.payload PayloadNameFormat = "taskrun-%s-%s/%s.payload" )
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(logger *zap.SugaredLogger, tr *v1beta1.TaskRun, cfg config.Config) (*Backend, error)
NewStorageBackend returns a new Tekton StorageBackend that stores signatures on a TaskRun
func (*Backend) RetrievePayload ¶ added in v0.6.0
func (b *Backend) RetrievePayload(opts config.StorageOpts) (string, error)
func (*Backend) RetrieveSignature ¶ added in v0.6.0
func (b *Backend) RetrieveSignature(opts config.StorageOpts) (string, error)
func (*Backend) StorePayload ¶
StorePayload implements the Payloader interface.
Click to show internal directories.
Click to hide internal directories.