Documentation ¶
Index ¶
- func DeletePod(cli *kubernetes.Clientset, name, namespace string) error
- func GetPodCounts(indexer *client.CacheIndexer) int
- func GetPodsBySelector(cli *kubernetes.Clientset, namespace, labelSelector string) ([]v1.Pod, error)
- func GetPodsBySelectorFromCache(indexer *client.CacheIndexer, namespace string, labels map[string]string) []v1.Pod
- type ContainerStatus
- type Pod
- func GetAllPodByLabelSelector(cli *kubernetes.Clientset, labelSelector string) ([]*Pod, error)
- func GetPodByName(cli *kubernetes.Clientset, namespace, name string) (*Pod, error)
- func GetPodsByDaemonSet(cli *kubernetes.Clientset, namespace, name string) ([]*Pod, error)
- func GetPodsByDeployment(cli *kubernetes.Clientset, namespace, name string) ([]*Pod, error)
- func GetPodsByJob(cli *kubernetes.Clientset, namespace, name string) ([]*Pod, error)
- func GetPodsByStatefulset(cli *kubernetes.Clientset, namespace, name string) ([]*Pod, error)
- type PodStatistics
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPodCounts ¶
func GetPodCounts(indexer *client.CacheIndexer) int
func GetPodsBySelector ¶
func GetPodsBySelectorFromCache ¶ added in v1.1.0
Types ¶
type ContainerStatus ¶
type Pod ¶
type Pod struct { Name string `json:"name,omitempty"` Namespace string `json:"namespace,omitempty"` ContainerStatus []ContainerStatus `json:"containerStatus,omitempty"` State string `json:"state,omitempty"` PodIp string `json:"podIp,omitempty"` NodeName string `json:"nodeName,omitempty"` StartTime time.Time `json:"startTime,omitempty"` Labels map[string]string `json:"labels,omitempty"` }
func GetAllPodByLabelSelector ¶
func GetAllPodByLabelSelector(cli *kubernetes.Clientset, labelSelector string) ([]*Pod, error)
func GetPodByName ¶
func GetPodByName(cli *kubernetes.Clientset, namespace, name string) (*Pod, error)
func GetPodsByDaemonSet ¶
func GetPodsByDaemonSet(cli *kubernetes.Clientset, namespace, name string) ([]*Pod, error)
func GetPodsByDeployment ¶
func GetPodsByDeployment(cli *kubernetes.Clientset, namespace, name string) ([]*Pod, error)
func GetPodsByJob ¶
func GetPodsByJob(cli *kubernetes.Clientset, namespace, name string) ([]*Pod, error)
func GetPodsByStatefulset ¶
func GetPodsByStatefulset(cli *kubernetes.Clientset, namespace, name string) ([]*Pod, error)
type PodStatistics ¶
Click to show internal directories.
Click to hide internal directories.