trustroot

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

View Source
const FinalizerName = "trustroots.policy.sigstore.dev"

This is what the default finalizer name is, but make it explicit so we can use it in tests as well.

Variables

This section is empty.

Functions

func FromContextOrDefaults added in v0.10.0

func FromContextOrDefaults(ctx context.Context) time.Duration

FromContextOrDefaults returns a stored trustrootResyncPeriod if attached. If not found, it returns a default duration

func GetSigstoreKeysFromTuf added in v0.10.0

func GetSigstoreKeysFromTuf(ctx context.Context, tufClient *client.Client, trustedRootTarget string) (*config.SigstoreKeys, error)

getSigstoreKeysFromTuf returns the sigstore keys from the TUF client. Note that this should really be exposed from the sigstore/sigstore TUF pkg, but is currently not.

func NewController

func NewController(
	ctx context.Context,
	_ configmap.Watcher,
) *controller.Impl

NewController creates a Reconciler and returns the result of NewImpl.

func ToContext added in v0.10.0

func ToContext(ctx context.Context, duration time.Duration) context.Context

Types

type Reconciler

type Reconciler struct {
	// contains filtered or unexported fields
}

Reconciler implements ConfigMap reconciler. TrustRoot resources.

func (*Reconciler) FinalizeKind

func (r *Reconciler) FinalizeKind(ctx context.Context, trustroot *v1alpha1.TrustRoot) reconciler.Event

FinalizeKind implements Interface.ReconcileKind.

func (*Reconciler) ReconcileKind

func (r *Reconciler) ReconcileKind(ctx context.Context, trustroot *v1alpha1.TrustRoot) reconciler.Event

ReconcileKind implements Interface.ReconcileKind.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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