Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitializeBackends ¶
func InitializeBackends(ctx context.Context, ps versioned.Interface, kc kubernetes.Interface, logger *zap.SugaredLogger, cfg config.Config) (map[string]Backend, error)
InitializeBackends creates and initializes every configured storage backend.
Types ¶
type Backend ¶
type Backend interface {
StorePayload(ctx context.Context, obj objects.TektonObject, rawPayload []byte, signature string, opts config.StorageOpts) error
// RetrievePayloads maps [ref]:[payload] for a TaskRun
RetrievePayloads(ctx context.Context, obj objects.TektonObject, opts config.StorageOpts) (map[string]string, error)
// RetrieveSignatures maps [ref]:[list of signatures] for a TaskRun
RetrieveSignatures(ctx context.Context, obj objects.TektonObject, opts config.StorageOpts) (map[string][]string, error)
// Type is the string representation of the backend
Type() string
}
Backend is an interface to store a chains Payload
Click to show internal directories.
Click to hide internal directories.