cmd

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateConfigFromPath

func CreateConfigFromPath(configPath string, context string) (*rest.Config, error)

CreateConfigFromPath generates the k8s config object from a path to a config file

func CreateConfigFromServiceAccountCreds

func CreateConfigFromServiceAccountCreds(tokenFlag string, caCertFlag string, urlFlag string) (*rest.Config, error)

CreateConfigFromServiceAccountCreds generates the k8s config object from a service account token, optional(ca cert), and cluster URL

func CreateConfigFromURL

func CreateConfigFromURL(clusterURL string) *rest.Config

CreateConfigFromURL generates the k8s config object from a k8s cluster URL

func GetK8Config

func GetK8Config(a *MethodK8s) (*rest.Config, error)

GetK8Config gets the k8s config object from the various auth mechanisms

Types

type MethodK8s

type MethodK8s struct {
	RootFlags    config.RootFlags
	OutputConfig writer.OutputConfig
	OutputSignal signal.Signal
	K8Config     *rest.Config
	RootCmd      *cobra.Command
	// contains filtered or unexported fields
}

func NewMethodK8s

func NewMethodK8s(version string) *MethodK8s

func (*MethodK8s) InitIngressCommand

func (a *MethodK8s) InitIngressCommand()

func (*MethodK8s) InitNodeCommand

func (a *MethodK8s) InitNodeCommand()

func (*MethodK8s) InitPodCommand

func (a *MethodK8s) InitPodCommand()

func (*MethodK8s) InitRootCommand

func (a *MethodK8s) InitRootCommand()

func (*MethodK8s) InitServiceAccountCommand

func (a *MethodK8s) InitServiceAccountCommand()

func (*MethodK8s) InitServiceCommand

func (a *MethodK8s) InitServiceCommand()

Jump to

Keyboard shortcuts

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