commands

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SetupTheiaClientAndConnection = setupTheiaClientAndConnection
	CreateK8sClient               = createK8sClient
)
View Source
var Command *cobra.Command

Command is the support bundle command implementation.

Functions

func CreateTheiaManagerClient added in v0.3.0

func CreateTheiaManagerClient(k8sClient kubernetes.Interface, kubeconfig string, useClusterIP bool) (kubernetes.Interface, *portforwarder.PortForwarder, error)

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func FormatTimestamp added in v0.2.0

func FormatTimestamp(timestamp time.Time) string

func GetCaCrt added in v0.3.0

func GetCaCrt(clientset kubernetes.Interface) (string, error)

func GetThroughputAnomalyDetectorByID added in v0.5.0

func GetThroughputAnomalyDetectorByID(theiaClient restclient.Interface, name string) (tad intelligence.ThroughputAnomalyDetector, err error)

func GetToken added in v0.3.0

func GetToken(clientset kubernetes.Interface) (string, error)

func ResolveKubeConfig

func ResolveKubeConfig(cmd *cobra.Command) (string, error)

func StartPortForward

func StartPortForward(kubeconfig string, service string, servicePort int, listenAddress string, listenPort int) (*portforwarder.PortForwarder, error)

func TableOutput added in v0.2.0

func TableOutput(table [][]string)

func TableOutputVertical added in v0.2.0

func TableOutputVertical(table [][]string)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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