// DirectClientConfig is a ClientConfig interface that is backed by a clientcmdapi.Config, options overrides, and an optional fallbackReader for auth information
// DirectClientConfig is a ClientConfig interface that is backed by a clientcmdapi.Config, options overrides, and an optional fallbackReader for auth information
typeDirectClientConfigstruct{
typeDirectClientConfigstruct{
configclientcmdapi.Config
configclientcmdapi.Config
contextNamestring
contextNamestring
overrides*ConfigOverrides
overrides*ConfigOverrides
fallbackReaderio.Reader
fallbackReaderio.Reader
configAccessConfigAccess
}
}
// NewDefaultClientConfig creates a DirectClientConfig using the config.CurrentContext as the context name
// NewDefaultClientConfig creates a DirectClientConfig using the config.CurrentContext as the context name
// NewInteractiveClientConfig creates a DirectClientConfig using the passed context name and a reader in case auth information is not provided via files or flags
// NewInteractiveClientConfig creates a DirectClientConfig using the passed context name and a reader in case auth information is not provided via files or flags
// ConfirmUsable looks a particular context and determines if that particular part of the config is useable. There might still be errors in the config,
// ConfirmUsable looks a particular context and determines if that particular part of the config is useable. There might still be errors in the config,
// but no errors in the sections requested or referenced. It does not return early so that it can find as many errors as possible.
// but no errors in the sections requested or referenced. It does not return early so that it can find as many errors as possible.