chains

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2022 License: Apache-2.0 Imports: 33 Imported by: 2

Documentation

Index

Constants

View Source
const (
	// ChainsAnnotation is the standard annotation to indicate a TR has been signed.
	ChainsAnnotation             = "chains.tekton.dev/signed"
	RetryAnnotation              = "chains.tekton.dev/retries"
	ChainsTransparencyAnnotation = "chains.tekton.dev/transparency"
	MaxRetries                   = 3
)
View Source
const (
	RekorAnnotation = "chains.tekton.dev/transparency-upload"
)

Variables

This section is empty.

Functions

func AddAnnotation added in v0.4.0

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

func AddRetry added in v0.4.0

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

func HandleRetry added in v0.4.0

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

func MarkFailed added in v0.4.0

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

func MarkSigned

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

MarkSigned marks a TaskRun as signed.

func Reconciled added in v0.4.0

func Reconciled(tr *v1beta1.TaskRun) bool

Reconciled determines whether a TaskRun has already passed through the reconcile loops, up to 3x

func RetryAvailable added in v0.4.0

func RetryAvailable(tr *v1beta1.TaskRun) bool

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.

type TaskRunVerifier added in v0.6.0

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

func (*TaskRunVerifier) VerifyTaskRun added in v0.6.0

func (tv *TaskRunVerifier) VerifyTaskRun(ctx context.Context, tr *v1beta1.TaskRun) error

type Verifier added in v0.6.0

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

Directories

Path Synopsis
kms
gcs
oci

Jump to

Keyboard shortcuts

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