Documentation
¶
Index ¶
- Constants
- type Backend
- func (b *Backend) RetrievePayload(_ context.Context, _ string) ([]byte, []byte, error)
- func (b *Backend) RetrievePayloads(_ context.Context, _ objects.TektonObject, _ config.StorageOpts) (map[string]string, error)
- func (b *Backend) RetrieveSignatures(_ context.Context, _ objects.TektonObject, _ config.StorageOpts) (map[string][]string, error)
- func (b *Backend) StorePayload(ctx context.Context, _ objects.TektonObject, _ []byte, signature string, ...) error
- func (b *Backend) Type() string
Constants ¶
View Source
const (
// StorageBackendArchivista is the name of the Archivista storage backend
StorageBackendArchivista = "archivista"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend struct {
// contains filtered or unexported fields
}
Backend is a storage backend that is capable of storing Payloaders that are signed and wrapped with a DSSE envelope. Archivista is an in-toto attestation storage service.
func NewStorageBackend ¶
NewStorageBackend returns a new Archivista StorageBackend that can store Payloaders that are signed and wrapped in a DSSE envelope
func (*Backend) RetrievePayload ¶
RetrievePayload is not implemented for Archivista.
func (*Backend) RetrievePayloads ¶
func (b *Backend) RetrievePayloads(_ context.Context, _ objects.TektonObject, _ config.StorageOpts) (map[string]string, error)
RetrievePayloads is not implemented for Archivista.
func (*Backend) RetrieveSignatures ¶
func (b *Backend) RetrieveSignatures(_ context.Context, _ objects.TektonObject, _ config.StorageOpts) (map[string][]string, error)
RetrieveSignatures is not implemented for Archivista.
func (*Backend) StorePayload ¶
func (b *Backend) StorePayload(ctx context.Context, _ objects.TektonObject, _ []byte, signature string, _ config.StorageOpts) error
StorePayload attempts to parse `signature` as a DSSE envelope, and if successful sends it to an Archivista server for storage.
Click to show internal directories.
Click to hide internal directories.