Help us shape the future of Go! Take the 2026 Go Developer Survey

tekton

package
v0.29.9 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// StorageBackendTekton is the identifier for the Tekton storage backend
	StorageBackendTekton      = "tekton"
	PayloadAnnotationFormat   = annotations.ChainsAnnotationPrefix + "payload-%s"
	SignatureAnnotationFormat = annotations.ChainsAnnotationPrefix + "signature-%s"
	CertAnnotationsFormat     = annotations.ChainsAnnotationPrefix + "cert-%s"
	ChainAnnotationFormat     = annotations.ChainsAnnotationPrefix + "chain-%s"
)

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. Deprecated: use Storer instead.

func NewStorageBackend

func NewStorageBackend(ps versioned.Interface) *Backend

NewStorageBackend returns a new Tekton StorageBackend that stores signatures on a TaskRun

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)

RetrievePayloads retrieve the payload stored in the taskrun.

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)

RetrieveSignatures retrieve the signature stored in the taskrun.

func (*Backend) StorePayload

func (b *Backend) StorePayload(ctx context.Context, obj objects.TektonObject, rawPayload []byte, signature string, opts config.StorageOpts) error

StorePayload implements the Payloader interface.

func (*Backend) Type

func (b *Backend) Type() string

type Storer added in v0.17.0

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

func (*Storer) Store added in v0.17.0

Store stores the statement in the TaskRun metadata as an annotation.

Jump to

Keyboard shortcuts

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