Documentation ¶
Index ¶
- Constants
- type Backend
- func (b *Backend) RetrieveArtifact(ctx context.Context, obj objects.TektonObject, opts config.StorageOpts) (map[string]oci.SignedImage, error)
- func (b *Backend) RetrievePayloads(ctx context.Context, obj objects.TektonObject, opts config.StorageOpts) (map[string]string, error)
- func (b *Backend) RetrieveSignatures(ctx context.Context, obj objects.TektonObject, opts config.StorageOpts) (map[string][]string, error)
- func (b *Backend) StorePayload(ctx context.Context, obj objects.TektonObject, rawPayload []byte, ...) error
- func (b *Backend) Type() string
Constants ¶
View Source
const StorageBackendOCI = "oci"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend struct {
// contains filtered or unexported fields
}
func NewStorageBackend ¶
func NewStorageBackend(ctx context.Context, logger *zap.SugaredLogger, client kubernetes.Interface, cfg config.Config) *Backend
NewStorageBackend returns a new OCI StorageBackend that stores signatures in an OCI registry
func (*Backend) RetrieveArtifact ¶ added in v0.7.0
func (b *Backend) RetrieveArtifact(ctx context.Context, obj objects.TektonObject, opts config.StorageOpts) (map[string]oci.SignedImage, error)
func (*Backend) RetrievePayloads ¶ added in v0.7.0
func (b *Backend) RetrievePayloads(ctx context.Context, obj objects.TektonObject, opts config.StorageOpts) (map[string]string, error)
func (*Backend) RetrieveSignatures ¶ added in v0.7.0
func (b *Backend) RetrieveSignatures(ctx context.Context, obj objects.TektonObject, opts config.StorageOpts) (map[string][]string, error)
func (*Backend) StorePayload ¶
func (b *Backend) StorePayload(ctx context.Context, obj objects.TektonObject, rawPayload []byte, signature string, storageOpts config.StorageOpts) error
StorePayload implements the storage.Backend interface.
Click to show internal directories.
Click to hide internal directories.