cmd

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: Apache-2.0 Imports: 20 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 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 Config object from a service account token, optional(ca cert), and cluster URL

func CreateConfigFromURL

func CreateConfigFromURL(clusterURL string) *rest.Config

CreateConfigFromURL generates the Config object from a k8s cluster URL

func GetK8sConfig added in v0.0.6

func GetK8sConfig(a *MethodK8s) (*rest.Config, methodk8s.AuthTypes, error)

GetK8sConfig gets the config object from the various auth mechanisms

Types

type MethodK8s

type MethodK8s struct {
	RootFlags    config.RootFlags
	OutputConfig writer.OutputConfig
	OutputSignal signal.Signal
	K8sConfig    *rest.Config
	AuthType     methodk8s.AuthTypes
	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