Documentation ¶
Index ¶
- Constants
- type AttestationStorer
- type AttestationStorerOption
- 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
- type Option
- type SimpleStorer
- type SimpleStorerOption
Constants ¶
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
func (s *AttestationStorer) Store(ctx context.Context, req *api.StoreRequest[name.Digest, *intoto.Statement]) (*api.StoreResponse, error)
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.
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
func (s *SimpleStorer) Store(ctx context.Context, req *api.StoreRequest[name.Digest, simple.SimpleContainerImage]) (*api.StoreResponse, error)
type SimpleStorerOption ¶ added in v0.17.0
type SimpleStorerOption interface {
// contains filtered or unexported methods
}
SimpleStorerOption provides a config option compatible with SimpleStorer.