Documentation ¶
Index ¶
- func CreateConfigFromPath(configPath string, context string) (*rest.Config, error)
- func CreateConfigFromServiceAccountCreds(tokenFlag string, caCertFlag string, urlFlag string) (*rest.Config, error)
- func CreateConfigFromURL(clusterURL string) *rest.Config
- func GetK8sConfig(a *MethodK8s) (*rest.Config, methodk8s.AuthTypes, error)
- type MethodK8s
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateConfigFromPath ¶
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 ¶
CreateConfigFromURL generates the Config object from a k8s cluster URL
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 (*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()
Click to show internal directories.
Click to hide internal directories.