Documentation ¶
Index ¶
- func GetPodCounts(indexer *client.CacheFactory) (int, error)
- func GetPodListByType(kubeClient client.ResourceHandler, namespace, resourceName string, ...) ([]*v1.Pod, error)
- func GetPodListPageByType(kubeClient client.ResourceHandler, namespace, resourceName string, ...) (*common.Page, error)
- func GetPodStatus(pod *v1.Pod) string
- func ListKubePod(indexer *client.CacheFactory, namespace string, label map[string]string) ([]*v1.Pod, error)
- type ContainerStatus
- type ObjectCell
- type Pod
- type PodStatistics
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPodCounts ¶
func GetPodCounts(indexer *client.CacheFactory) (int, error)
func GetPodListByType ¶
func GetPodListByType(kubeClient client.ResourceHandler, namespace, resourceName string, resourceType api.ResourceName) ([]*v1.Pod, error)
resourceType: daemonsets,deployments,cronjobs,statefulsets
func GetPodListPageByType ¶
func GetPodListPageByType(kubeClient client.ResourceHandler, namespace, resourceName string, resourceType api.ResourceName, q *common.QueryParam) (*common.Page, error)
func ListKubePod ¶
Types ¶
type ContainerStatus ¶
type ObjectCell ¶
implements dataselector.DataCell
func (ObjectCell) GetProperty ¶
func (cell ObjectCell) GetProperty(name dataselector.PropertyName) dataselector.ComparableValue
implements dataselector.DataCell
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 GetPodsByDeployment ¶
func GetPodsByDeployment(indexer *client.CacheFactory, namespace, name string) ([]*Pod, error)
func ListPodByLabelKey ¶
type PodStatistics ¶
Click to show internal directories.
Click to hide internal directories.