Documentation
¶
Index ¶
- Variables
- func CreateTheiaManagerClient(k8sClient kubernetes.Interface, kubeconfig string, useClusterIP bool) (kubernetes.Interface, *portforwarder.PortForwarder, error)
- func Execute()
- func FormatTimestamp(timestamp time.Time) string
- func GetCaCrt(clientset kubernetes.Interface) (string, error)
- func GetThroughputAnomalyDetectorByID(theiaClient restclient.Interface, name string) (tad intelligence.ThroughputAnomalyDetector, err error)
- func GetToken(clientset kubernetes.Interface) (string, error)
- func ResolveKubeConfig(cmd *cobra.Command) (string, error)
- func StartPortForward(kubeconfig string, service string, servicePort int, listenAddress string, ...) (*portforwarder.PortForwarder, error)
- func TableOutput(table [][]string)
- func TableOutputVertical(table [][]string)
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 GetThroughputAnomalyDetectorByID ¶ added in v0.5.0
func GetThroughputAnomalyDetectorByID(theiaClient restclient.Interface, name string) (tad intelligence.ThroughputAnomalyDetector, err 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.
Source Files
¶
- anomaly_detection.go
- anomaly_detection_delete.go
- anomaly_detection_list.go
- anomaly_detection_retrieve.go
- anomaly_detection_run.go
- anomaly_detection_status.go
- clickhouse.go
- clickhouse_status.go
- policy_recommendation.go
- policy_recommendation_delete.go
- policy_recommendation_list.go
- policy_recommendation_retrieve.go
- policy_recommendation_run.go
- policy_recommendation_status.go
- root.go
- support_bundle.go
- utils.go
- version.go
Click to show internal directories.
Click to hide internal directories.