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 ¶
NewContext returns a new Context that stores a clientConfig as value.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.