oci

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 4, 2022 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

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(logger *zap.SugaredLogger, client kubernetes.Interface, tr *v1beta1.TaskRun, cfg config.Config) (*Backend, error)

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(opts config.StorageOpts) (map[string]oci.SignedImage, error)

func (*Backend) RetrievePayloads added in v0.7.0

func (b *Backend) RetrievePayloads(opts config.StorageOpts) (map[string]string, error)

func (*Backend) RetrieveSignatures added in v0.7.0

func (b *Backend) RetrieveSignatures(opts config.StorageOpts) (map[string][]string, error)

func (*Backend) StorePayload

func (b *Backend) StorePayload(rawPayload []byte, signature string, storageOpts config.StorageOpts) error

StorePayload implements the storage.Backend interface.

func (*Backend) Type

func (b *Backend) Type() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL