context

package
v2.21.0 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NoKubernetesConfigFile = errors.New("NoKubernetesConfigFile")

NoKubernetesConfig is the error returned by GetKubernetesAPI when no Kubernetes Config file was found or the file does not exist.

Functions

func ClientSetFromContext added in v2.9.0

func ClientSetFromContext(ctx context.Context) (kubernetes.Interface, error)

func DynamicClientFromContext

func DynamicClientFromContext(ctx context.Context) (dynamic.Interface, error)

func NewContextWithApiConfig

func NewContextWithApiConfig(ctx context.Context, apiConfig config.KubernetesApiConfiguration) (context.Context, error)

func NewContextWithClientSet added in v2.9.0

func NewContextWithClientSet(ctx context.Context, clientSet kubernetes.Interface) context.Context

func NewContextWithDynamicClient

func NewContextWithDynamicClient(ctx context.Context, client dynamic.Interface) context.Context

func NewContextWithRestConfig

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

func NewContextWithRestMapper

func NewContextWithRestMapper(ctx context.Context, config meta.RESTMapper) context.Context

func RestConfigFromContext

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

func RestMapperFromContext

func RestMapperFromContext(ctx context.Context) (meta.RESTMapper, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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