Documentation ¶
Index ¶
- func Setup(mgr ctrl.Manager, l logging.Logger, namespace string) error
- type NopRevisioner
- type PackageRevisioner
- type Reconciler
- type ReconcilerOption
- func WithLogger(log logging.Logger) ReconcilerOption
- func WithNewPackageFn(f func() pkgv1.Package) ReconcilerOption
- func WithNewPackageRevisionFn(f func() pkgv1.PackageRevision) ReconcilerOption
- func WithNewPackageRevisionListFn(f func() pkgv1.PackageRevisionList) ReconcilerOption
- func WithRecorder(er event.Recorder) ReconcilerOption
- func WithRevisioner(d Revisioner) ReconcilerOption
- type Revisioner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type NopRevisioner ¶
type NopRevisioner struct{}
NopRevisioner returns an empty revision name.
func NewNopRevisioner ¶
func NewNopRevisioner() *NopRevisioner
NewNopRevisioner creates a NopRevisioner.
type PackageRevisioner ¶
type PackageRevisioner struct {
// contains filtered or unexported fields
}
PackageRevisioner extracts a revision name for a package source.
func NewPackageRevisioner ¶
func NewPackageRevisioner(fetcher nddpkg.Fetcher) *PackageRevisioner
NewPackageRevisioner returns a new PackageRevisioner.
type Reconciler ¶
type Reconciler struct {
// contains filtered or unexported fields
}
Reconciler reconciles packages.
func NewReconciler ¶
func NewReconciler(mgr ctrl.Manager, opts ...ReconcilerOption) *Reconciler
NewReconciler creates a new package reconciler.
type ReconcilerOption ¶
type ReconcilerOption func(*Reconciler)
ReconcilerOption is used to configure the Reconciler.
func WithLogger ¶
func WithLogger(log logging.Logger) ReconcilerOption
WithLogger specifies how the Reconciler should log messages.
func WithNewPackageFn ¶
func WithNewPackageFn(f func() pkgv1.Package) ReconcilerOption
WithNewPackageFn determines the type of package being reconciled.
func WithNewPackageRevisionFn ¶
func WithNewPackageRevisionFn(f func() pkgv1.PackageRevision) ReconcilerOption
WithNewPackageRevisionFn determines the type of package being reconciled.
func WithNewPackageRevisionListFn ¶
func WithNewPackageRevisionListFn(f func() pkgv1.PackageRevisionList) ReconcilerOption
WithNewPackageRevisionListFn determines the type of package being reconciled.
func WithRecorder ¶
func WithRecorder(er event.Recorder) ReconcilerOption
WithRecorder specifies how the Reconciler should record Kubernetes events.
func WithRevisioner ¶
func WithRevisioner(d Revisioner) ReconcilerOption
WithRevisioner specifies how the Reconciler should acquire a package image's revision name.