Documentation
¶
Index ¶
- func GetAllNamespace(clientset *kubernetes.Clientset, ctx context.Context) ([]v1.Namespace, error)
- func GetAllPods(excludeNamespace *[]string, matchNamespace string, ...) ([]v1.Pod, error)
- func GetPodStats(pod v1.Pod, podChan chan<- domain.K8sStats, wg *sync.WaitGroup)
- func GetPodsByNamespace(clientset *kubernetes.Clientset, ctx context.Context, namespace string, ...)
- func WriteOutputAsCsv(resources *[]domain.K8sStats, groupByNamespace bool, csvFilePath string)
- func WriteOutputAsTable(resources *[]domain.K8sStats, groupByNamespace bool)
- func WriteOutputAsXlsx(resources *[]domain.K8sStats, groupByNamespace bool, xlsxFilePath string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAllNamespace ¶
Get All Namespaces in the cluster
func GetAllPods ¶
func GetAllPods(excludeNamespace *[]string, matchNamespace string, clientset *kubernetes.Clientset, ctx context.Context) ([]v1.Pod, error)
Get all Pods
func GetPodsByNamespace ¶
func GetPodsByNamespace(clientset *kubernetes.Clientset, ctx context.Context, namespace string, podChan chan<- []v1.Pod, wg *sync.WaitGroup)
Get all Pods for a given namespace
func WriteOutputAsCsv ¶
Write data to a .CSV file
func WriteOutputAsTable ¶
Write data to Output STDOUT as Table
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.