Documentation ¶
Index ¶
- Constants
- func FromContextOrDefaults(ctx context.Context) time.Duration
- func GetSigstoreKeysFromTuf(ctx context.Context, tufClient *client.Client, trustedRootTarget string) (*config.SigstoreKeys, error)
- func NewController(ctx context.Context, _ configmap.Watcher) *controller.Impl
- func ToContext(ctx context.Context, duration time.Duration) context.Context
- type Reconciler
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
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 ¶
NewController creates a Reconciler and returns the result of NewImpl.
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.
Click to show internal directories.
Click to hide internal directories.