oci

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2021 License: Apache-2.0 Imports: 13 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
}

Backend is a storage backend that stores signed payloads in the TaskRun metadata as an annotation. It is stored as base64 encoded JSON.

func NewStorageBackend

func NewStorageBackend(logger *zap.SugaredLogger, tr *v1beta1.TaskRun, cfg config.Config) (*Backend, error)

NewStorageBackend returns a new OCI StorageBackend that stores signatures in an OCI registry

func (*Backend) StorePayload

func (b *Backend) StorePayload(rawPayload []byte, signature string, key string) error

StorePayload implements the Payloader 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