manager

package
v0.11.0 Latest Latest
Warning

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

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

Documentation

Overview

Package manager contains functions to add and retrieve manager from context

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Manager

func Manager(ctx context.Context) manager.Manager

Manager returns a manager in a given context. Returns nil if not found

func WithManager

func WithManager(ctx context.Context, mgr manager.Manager) context.Context

WithManager sets a manager instance into a context

Types

type ResourceLockSetter added in v0.7.0

type ResourceLockSetter interface {
	SetNewResourceLock(func(*rest.Config, recorder.Provider, leaderelection.Options) (resourcelock.Interface, error))
}

ResourceLockSetter sets a new resource lock function this will make possible to customize resource lock without having to force it into dependencies

Jump to

Keyboard shortcuts

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