Documentation
¶
Overview ¶
Package signature implements the controller verifying package signatures.
Index ¶
- func SetupConfigurationRevision(mgr ctrl.Manager, o controller.Options) error
- func SetupFunctionRevision(mgr ctrl.Manager, o controller.Options) error
- func SetupProviderRevision(mgr ctrl.Manager, o controller.Options) error
- type CosignValidator
- type Reconciler
- type ReconcilerOption
- func WithConfigStore(c xpkg.ConfigStore) ReconcilerOption
- func WithLogger(log logging.Logger) ReconcilerOption
- func WithNamespace(n string) ReconcilerOption
- func WithNewPackageRevisionFn(f func() v1.PackageRevision) ReconcilerOption
- func WithServiceAccount(sa string) ReconcilerOption
- func WithValidator(v Validator) ReconcilerOption
- type Validator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupConfigurationRevision ¶
func SetupConfigurationRevision(mgr ctrl.Manager, o controller.Options) error
SetupConfigurationRevision adds a controller that reconciles ConfigurationRevisions.
func SetupFunctionRevision ¶
func SetupFunctionRevision(mgr ctrl.Manager, o controller.Options) error
SetupFunctionRevision adds a controller that reconciles FunctionRevisions.
func SetupProviderRevision ¶
func SetupProviderRevision(mgr ctrl.Manager, o controller.Options) error
SetupProviderRevision adds a controller that reconciles ProviderRevisions.
Types ¶
type CosignValidator ¶
type CosignValidator struct {
// contains filtered or unexported fields
}
CosignValidator validates image signatures using cosign.
func NewCosignValidator ¶
func NewCosignValidator(c client.Reader, k kubernetes.Interface, namespace, serviceAccount string) (*CosignValidator, error)
NewCosignValidator returns a new CosignValidator.
type Reconciler ¶
type Reconciler struct {
// contains filtered or unexported fields
}
Reconciler reconciles package for signature verification.
func NewReconciler ¶
func NewReconciler(client client.Client, opts ...ReconcilerOption) *Reconciler
NewReconciler creates a new package reconciler for signature verification.
type ReconcilerOption ¶
type ReconcilerOption func(*Reconciler)
ReconcilerOption is used to configure the Reconciler.
func WithConfigStore ¶
func WithConfigStore(c xpkg.ConfigStore) ReconcilerOption
WithConfigStore specifies the ConfigStore to use for fetching image configurations.
func WithLogger ¶
func WithLogger(log logging.Logger) ReconcilerOption
WithLogger specifies how the Reconciler should log messages.
func WithNamespace ¶
func WithNamespace(n string) ReconcilerOption
WithNamespace specifies the namespace in which the Reconciler should create runtime resources.
func WithNewPackageRevisionFn ¶
func WithNewPackageRevisionFn(f func() v1.PackageRevision) ReconcilerOption
WithNewPackageRevisionFn determines the type of package being reconciled.
func WithServiceAccount ¶
func WithServiceAccount(sa string) ReconcilerOption
WithServiceAccount specifies the service account to use for fetching images.
func WithValidator ¶
func WithValidator(v Validator) ReconcilerOption
WithValidator specifies the Validator to use for verifying signatures.