pubsub

package
v0.26.1 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2026 License: Apache-2.0 Imports: 9 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	StorageBackendPubSub   = "pubsub"
	PubSubProviderInMemory = "inmemory"
	PubSubProviderKafka    = "kafka"
)

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(ctx context.Context, cfg config.Config) (*Backend, error)

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

func (*Backend) NewTopic

func (b *Backend) NewTopic(ctx context.Context) (*pubsub.Topic, error)

func (*Backend) RetrievePayloads

func (b *Backend) RetrievePayloads(ctx context.Context, _ objects.TektonObject, opts config.StorageOpts) (map[string]string, error)

func (*Backend) RetrieveSignatures

func (b *Backend) RetrieveSignatures(ctx context.Context, _ 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, opts config.StorageOpts) error

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