// 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
...
@@ -79,21 +84,23 @@ type DirectClientConfig struct {
...
@@ -79,21 +84,23 @@ type DirectClientConfig struct {
overrides*ConfigOverrides
overrides*ConfigOverrides
fallbackReaderio.Reader
fallbackReaderio.Reader
configAccessConfigAccess
configAccessConfigAccess
// promptedCredentials store the credentials input by the user
promptedCredentialspromptedCredentials
}
}
// 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