Documentation ¶
Index ¶
- Constants
- type Backend
- 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 (
StorageBackendGrafeas = "grafeas"
)
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 stores signed payloads in the storage that is built on the top of grafeas i.e. container analysis.
func NewStorageBackend ¶
NewStorageBackend returns a new Grafeas StorageBackend that stores signatures in a Grafeas server
func (*Backend) RetrievePayloads ¶
func (b *Backend) RetrievePayloads(ctx context.Context, obj objects.TektonObject, opts config.StorageOpts) (map[string]string, error)
Retrieve payloads from grafeas server and store it in a map
func (*Backend) RetrieveSignatures ¶
func (b *Backend) RetrieveSignatures(ctx context.Context, obj objects.TektonObject, opts config.StorageOpts) (map[string][]string, error)
Retrieve signatures from grafeas server and store it in a map
func (*Backend) StorePayload ¶
func (b *Backend) StorePayload(ctx context.Context, obj objects.TektonObject, rawPayload []byte, signature string, opts config.StorageOpts) error
StorePayload implements the storage.Backend interface.
Click to show internal directories.
Click to hide internal directories.