Documentation ¶
Index ¶
- func IsInvalidConfig(err error) bool
- func IsInvalidFlags(err error) bool
- type CommonConfig
- func (cc *CommonConfig) GetClient(logger micrologger.Logger) (k8sclient.Interface, error)
- func (cc *CommonConfig) GetConfigAccess() clientcmd.ConfigAccess
- func (cc *CommonConfig) GetConfigFlags() genericclioptions.RESTClientGetter
- func (cc *CommonConfig) GetContextOverride() string
- func (cc *CommonConfig) GetNamespace() (string, bool, error)
- func (cc *CommonConfig) GetProvider() (string, error)
- func (cc *CommonConfig) GetTokenOverride() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
Types ¶
type CommonConfig ¶
type CommonConfig struct {
ConfigFlags *genericclioptions.RESTClientGetter
}
func New ¶
func New(cf genericclioptions.RESTClientGetter) *CommonConfig
func (*CommonConfig) GetClient ¶
func (cc *CommonConfig) GetClient(logger micrologger.Logger) (k8sclient.Interface, error)
func (*CommonConfig) GetConfigAccess ¶
func (cc *CommonConfig) GetConfigAccess() clientcmd.ConfigAccess
func (*CommonConfig) GetConfigFlags ¶
func (cc *CommonConfig) GetConfigFlags() genericclioptions.RESTClientGetter
func (*CommonConfig) GetContextOverride ¶
func (cc *CommonConfig) GetContextOverride() string
func (*CommonConfig) GetNamespace ¶
func (cc *CommonConfig) GetNamespace() (string, bool, error)
func (*CommonConfig) GetProvider ¶
func (cc *CommonConfig) GetProvider() (string, error)
func (*CommonConfig) GetTokenOverride ¶
func (cc *CommonConfig) GetTokenOverride() string
Click to show internal directories.
Click to hide internal directories.