Documentation ¶
Index ¶
- Variables
- func DoOnceProbe(clusterName string, probes string) error
- func GenerateProbeClient(cluster *kubeproberv1.Cluster) (client.Client, error)
- func GetHistoryOnceProbeStatus(clusterName string) error
- func GetOnceProbeStatus(clusterName string, id string) error
- func GetProbeStatus(clusterName string, status string) error
- func IsContain(items []string, item string) bool
- func NewCmdProbeStatusManager(stopCh <-chan struct{}) *cobra.Command
- func PrintOnceProbeStatus(c client.Client, ns string, onceID string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var OnceCmd = &cobra.Command{ Use: "once", Short: "Perform one-time diagnostics of remote cluster or local cluster", Long: "Perform one-time diagnostics of remote cluster or local cluster", RunE: func(cmd *cobra.Command, args []string) error { return DoOnceProbe(clusterName, probes) }, }
View Source
var OnceStatusCmd = &cobra.Command{ Use: "oncestatus", Short: "Print One-time probe status of remote cluster or local cluster", Long: "Print One-probe status of remote cluster or local cluster", RunE: func(cmd *cobra.Command, args []string) error { if isList { return GetHistoryOnceProbeStatus(clusterName) } else { return GetOnceProbeStatus(clusterName, onceID) } }, }
View Source
var StatusCmd = &cobra.Command{ Use: "status", Short: "Print probe status of remote cluster or local cluster", Long: "Print probe status of remote cluster or local cluster", RunE: func(cmd *cobra.Command, args []string) error { return GetProbeStatus(clusterName, status) }, }
Functions ¶
func DoOnceProbe ¶
func GenerateProbeClient ¶
func GenerateProbeClient(cluster *kubeproberv1.Cluster) (client.Client, error)
Generate k8sclient of cluster
func GetOnceProbeStatus ¶
func GetProbeStatus ¶
func NewCmdProbeStatusManager ¶
NewCmdProbeStatusManager creates a *cobra.Command object with default parameters
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.