cmd

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: May 7, 2025 License: Apache-2.0 Imports: 20 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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