commonconfig

package
v2.57.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 21, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func IsInvalidFlags

func IsInvalidFlags(err error) bool

IsInvalidFlags asserts invalidFlagsError.

Types

type CommonConfig

type CommonConfig struct {
	ConfigFlags *genericclioptions.RESTClientGetter
	// contains filtered or unexported fields
}

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 added in v2.31.0

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 added in v2.29.5

func (cc *CommonConfig) GetProviderFromConfig(ctx context.Context, athenaUrl string) (string, error)

func (*CommonConfig) GetTokenOverride

func (cc *CommonConfig) GetTokenOverride() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL