Versions in this module Expand all Collapse all v0 v0.17.3 Mar 11, 2026 v0.17.2 Mar 11, 2026 Changes in this version + var ErrNoClientInContext = errors.New("no client in context") + func DoNothing() controllerutil.MutateFn + func OwnedBy(owner client.Object) []client.ListOption + func OwnedByLabel(owner client.Object) []client.ListOption + func WithClient(ctx context.Context, c JanitorClient) context.Context + type JanitorClient interface + AddKnownTypeToState func(obj types.Object) + Cleanup func(ctx context.Context, objectList types.ObjectList, listOpts []client.ListOption) (deleted int, err error) + CleanupAll func(ctx context.Context, listOpts []client.ListOption) (int, error) + Wrap func(ctx context.Context, objectList types.ObjectList, listOpts []client.ListOption, ...) (deleted int, err error) + func ClientFromContext(ctx context.Context) (JanitorClient, bool) + func ClientFromContextOrDie(ctx context.Context) JanitorClient + func NewJanitorClient(c ScopedClient) JanitorClient + type ScopedClient interface + AllReady func() bool + AnyChanged func() bool + CreateOrUpdate func(ctx context.Context, obj client.Object, mutate controllerutil.MutateFn) (controllerutil.OperationResult, error) + Delete func(ctx context.Context, obj client.Object, opts ...client.DeleteOption) error + Get func(ctx context.Context, key client.ObjectKey, obj client.Object, ...) error + List func(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error + Reset func() + Scheme func() *runtime.Scheme + func NewScopedClient(c client.Client, environment string) ScopedClient