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
- type PipelineRunStorer
- type TaskRunStorer
Constants ¶
const ( StorageBackendGCS = "gcs" // taskrun-$namespace-$name/$key.<type> SignatureNameFormatTaskRun = "taskrun-%s-%s/%s.signature" PayloadNameFormatTaskRun = "taskrun-%s-%s/%s.payload" // pipelinerun-$namespace-$name/$key.<type> SignatureNameFormatPipelineRun = "pipelinerun-%s-%s/%s.signature" PayloadNameFormatPipelineRun = "pipelinerun-%s-%s/%s.payload" )
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 TaskRunStorer instead.
func NewStorageBackend ¶
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)
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)
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. As of chains v0.20.0+, this method has been updated to use Tekton v1 objects (previously v1beta1) and it's error messages have been updated to reflect this.
type PipelineRunStorer ¶ added in v0.20.0
type PipelineRunStorer struct {
// contains filtered or unexported fields
}
PipelineRunStorer stores PipelineRuns in GCS.
func (*PipelineRunStorer) Store ¶ added in v0.20.0
func (s *PipelineRunStorer) Store(ctx context.Context, req *api.StoreRequest[*v1.PipelineRun, *in_toto.Statement]) (*api.StoreResponse, error)
Store stores the PipelineRun chains information in GCS
type TaskRunStorer ¶ added in v0.17.0
type TaskRunStorer struct {
// contains filtered or unexported fields
}
TaskRunStorer stores TaskRuns in GCS.
func (*TaskRunStorer) Store ¶ added in v0.17.0
func (s *TaskRunStorer) Store(ctx context.Context, req *api.StoreRequest[*v1.TaskRun, *in_toto.Statement]) (*api.StoreResponse, error)
Store stores the TaskRun chains information in GCS