clientconfig

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientAndNamespaceFromContext

func ClientAndNamespaceFromContext(ctx context.Context) (kubecli.KubevirtClient, string, bool, error)

ClientAndNamespaceFromContext tries to retrieve a clientcmd.Clientconfig value stored in ctx, if any. It then creates a kubecli.KubevirtClient and gets the namespace from the client config and returns them. Otherwise, it returns an error.

func NewContext

func NewContext(ctx context.Context, clientConfig clientcmd.ClientConfig) context.Context

NewContext returns a new Context that stores a clientConfig as value.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳