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

chains

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2021 License: Apache-2.0 Imports: 30 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// ChainsAnnotation is the standard annotation to indicate a TR has been signed.
	ChainsAnnotation             = "chains.tekton.dev/signed"
	ChainsTransparencyAnnotation = "chains.tekton.dev/transparency"
)

Variables

This section is empty.

Functions

func IsSigned

func IsSigned(tr *v1beta1.TaskRun) bool

IsSigned determines whether a TaskRun has already been signed.

func MarkSigned

func MarkSigned(tr *v1beta1.TaskRun, ps versioned.Interface, annotations map[string]string) error

MarkSigned marks a TaskRun as signed.

Types

type Signer

type Signer interface {
	SignTaskRun(ctx context.Context, tr *v1beta1.TaskRun) error
}

type TaskRunSigner

type TaskRunSigner struct {
	KubeClient        kubernetes.Interface
	Pipelineclientset versioned.Interface
	SecretPath        string
}

func (*TaskRunSigner) SignTaskRun

func (ts *TaskRunSigner) SignTaskRun(ctx context.Context, tr *v1beta1.TaskRun) error

SignTaskRun signs a TaskRun, and marks it as signed.

Directories

Path Synopsis
kms
gcs
oci

Jump to

Keyboard shortcuts

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