metacontext

package
v0.0.0-...-c7dd6ca Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddKubeMetadataToLogger

func AddKubeMetadataToLogger(ctx context.Context, ll logrus.FieldLogger) logrus.FieldLogger

AddKubeMetadataToLogger to the provided logger, or create a new one.

func KubeMetadataFromContext

func KubeMetadataFromContext(ctx context.Context) (ok bool, namespace, name, kind string)

KubeMetadataFromContext loads metadata from the provided context.

func WithKubeObject

func WithKubeObject(ctx context.Context, obj metav1.Object) context.Context

WithKubeObject returns adds info about a kubernetes object to the context.

Types

This section is empty.

Jump to

Keyboard shortcuts

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