manager

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2025 License: Apache-2.0 Imports: 6 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

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