Documentation ¶
Index ¶
- Constants
- Variables
- func WatchBackend(ctx context.Context, cfg config.Config, watcherStop chan bool) (chan *Backend, error)
- type Backend
- func (b *Backend) RetrievePayloads(ctx context.Context, _ objects.TektonObject, opts config.StorageOpts) (map[string]string, error)
- func (b *Backend) RetrieveSignatures(ctx context.Context, _ objects.TektonObject, opts config.StorageOpts) (map[string][]string, error)
- func (b *Backend) StorePayload(ctx context.Context, _ objects.TektonObject, rawPayload []byte, ...) error
- func (b *Backend) Type() string
- type SignedDocument
Constants ¶
View Source
const (
StorageTypeDocDB = "docdb"
)
Variables ¶
View Source
var ErrNothingToWatch = fmt.Errorf("backend has nothing to watch")
ErrNothingToWatch is an error that's returned when the backend doesn't have anything to "watch"
Functions ¶
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 ¶
NewStorageBackend returns a new Tekton StorageBackend that stores signatures on a TaskRun
func (*Backend) RetrievePayloads ¶ added in v0.7.0
func (b *Backend) RetrievePayloads(ctx context.Context, _ objects.TektonObject, opts config.StorageOpts) (map[string]string, error)
func (*Backend) RetrieveSignatures ¶ added in v0.7.0
func (b *Backend) RetrieveSignatures(ctx context.Context, _ objects.TektonObject, opts config.StorageOpts) (map[string][]string, error)
func (*Backend) StorePayload ¶
func (b *Backend) StorePayload(ctx context.Context, _ objects.TektonObject, rawPayload []byte, signature string, opts config.StorageOpts) error
StorePayload implements the Payloader interface.
Click to show internal directories.
Click to hide internal directories.