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) GetInstallation(ctx context.Context, path, athenaUrl string) (*installation.Installation, error)
- func (cc *CommonConfig) GetNamespace() (string, bool, error)
- func (cc *CommonConfig) GetProviderFromConfig(ctx context.Context, athenaUrl string) (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 // contains filtered or unexported fields }
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) GetInstallation ¶
func (cc *CommonConfig) GetInstallation(ctx context.Context, path, athenaUrl string) (*installation.Installation, error)
func (*CommonConfig) GetNamespace ¶
func (cc *CommonConfig) GetNamespace() (string, bool, error)
func (*CommonConfig) GetProviderFromConfig ¶
func (*CommonConfig) GetTokenOverride ¶
func (cc *CommonConfig) GetTokenOverride() string
Click to show internal directories.
Click to hide internal directories.