oci

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const StorageBackendOCI = "oci"

Variables

This section is empty.

Functions

This section is empty.

Types

type AttestationStorer added in v0.17.0

type AttestationStorer struct {
	// contains filtered or unexported fields
}

AttestationStorer stores in-toto Attestation payloads in OCI registries.

func NewAttestationStorer added in v0.17.0

func NewAttestationStorer(opts ...AttestationStorerOption) (*AttestationStorer, error)

func (*AttestationStorer) Store added in v0.17.0

Store saves the given statement.

type AttestationStorerOption added in v0.17.0

type AttestationStorerOption interface {
	// contains filtered or unexported methods
}

AttestationStorerOption provides a config option compatible with AttestationStorer.

type Backend

type Backend struct {
	// contains filtered or unexported fields
}

Backend implements a storage backend for OCI artifacts. Deprecated: Use SimpleStorer and AttestationStorer instead.

func NewStorageBackend

func NewStorageBackend(ctx context.Context, 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.

func (*Backend) Type

func (b *Backend) Type() string

type Option added in v0.17.0

type Option interface {
	AttestationStorerOption
	SimpleStorerOption
}

Option provides a config option compatible with all OCI storers.

func WithTargetRepository added in v0.17.0

func WithTargetRepository(repo name.Repository) Option

WithTargetRepository configures the target repository where objects will be stored.

type SimpleStorer added in v0.17.0

type SimpleStorer struct {
	// contains filtered or unexported fields
}

SimpleStorer stores SimpleSigning payloads in OCI registries.

func NewSimpleStorerFromConfig added in v0.17.0

func NewSimpleStorerFromConfig(opts ...SimpleStorerOption) (*SimpleStorer, error)

func (*SimpleStorer) Store added in v0.17.0

type SimpleStorerOption added in v0.17.0

type SimpleStorerOption interface {
	// contains filtered or unexported methods
}

SimpleStorerOption provides a config option compatible with SimpleStorer.

Jump to

Keyboard shortcuts

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