injection

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfig

func GetConfig(ctx context.Context) *rest.Config

func GetControllerName added in v0.5.3

func GetControllerName(ctx context.Context) string

func GetNamespacedName

func GetNamespacedName(ctx context.Context) types.NamespacedName

func GetOptions

func GetOptions(ctx context.Context) options.Options

func LoggingContextOrDie added in v0.17.0

func LoggingContextOrDie(componentName string, config *rest.Config, cmw *informer.InformedWatcher) context.Context

LoggingContextOrDie injects a logger into the returned context. The logger is configured by the ConfigMap `config-logging` and live updates the level.

func WithConfig

func WithConfig(ctx context.Context, config *rest.Config) context.Context

func WithControllerName added in v0.5.3

func WithControllerName(ctx context.Context, name string) context.Context

func WithNamespacedName

func WithNamespacedName(ctx context.Context, namespacedname types.NamespacedName) context.Context

func WithOptions

func WithOptions(ctx context.Context, opts options.Options) context.Context

Types

This section is empty.

Jump to

Keyboard shortcuts

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