Documentation
¶
Index ¶
- Constants
- func AddAnnotation(ctx context.Context, tr *v1beta1.TaskRun, ps versioned.Interface, ...) error
- func AddRetry(ctx context.Context, tr *v1beta1.TaskRun, ps versioned.Interface, ...) error
- func AllFormatters(cfg config.Config, l *zap.SugaredLogger) map[formats.PayloadType]formats.Payloader
- func HandleRetry(ctx context.Context, tr *v1beta1.TaskRun, ps versioned.Interface, ...) error
- func MarkFailed(ctx context.Context, tr *v1beta1.TaskRun, ps versioned.Interface, ...) error
- func MarkSigned(ctx context.Context, tr *v1beta1.TaskRun, ps versioned.Interface, ...) error
- func Reconciled(tr *v1beta1.TaskRun) bool
- func RetryAvailable(tr *v1beta1.TaskRun) bool
- type Signer
- type TaskRunSigner
- type TaskRunVerifier
- type Verifier
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 AllFormatters ¶ added in v0.9.0
func AllFormatters(cfg config.Config, l *zap.SugaredLogger) map[formats.PayloadType]formats.Payloader
func HandleRetry ¶ added in v0.4.0
func MarkFailed ¶ added in v0.4.0
func MarkSigned ¶
func MarkSigned(ctx context.Context, tr *v1beta1.TaskRun, ps versioned.Interface, annotations map[string]string) error
MarkSigned marks a TaskRun as signed.
func Reconciled ¶ added in v0.4.0
Reconciled determines whether a TaskRun has already passed through the reconcile loops, up to 3x
func RetryAvailable ¶ added in v0.4.0
Types ¶
type TaskRunSigner ¶
type TaskRunSigner struct {
// Formatters: format payload
// The keys are the names of different formatters {tekton, in-toto, simplesigning}. The first two are for TaskRun artifact, and simplesigning is for OCI artifact.
// The values are actual `Payloader` interfaces that can generate payload in different format from taskrun.
Formatters map[formats.PayloadType]formats.Payloader
// Backends: store payload and signature
// The keys are different storage option's name. {docdb, gcs, grafeas, oci, tekton}
// The values are the actual storage backends that will be used to store and retrieve provenance.
Backends map[string]storage.Backend
SecretPath string
Pipelineclientset versioned.Interface
}
func (*TaskRunSigner) SignTaskRun ¶
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
Click to show internal directories.
Click to hide internal directories.