commonconfig

package
v3.0.0-...-a69f007 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 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

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 (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