Documentation ¶
Index ¶
- func GetStatefulSetEvents(client *client.Clientset, dsQuery *dataselect.DataSelectQuery, ...) (*common.EventList, error)
- func GetStatefulSetPods(client *k8sClient.Clientset, heapsterClient client.HeapsterClient, ...) (*pod.PodList, error)
- func GetStatefulSetPodsEvents(client *client.Clientset, namespace, statefulSetName string) ([]api.Event, error)
- type StatefulSet
- type StatefulSetCell
- type StatefulSetDetail
- type StatefulSetList
- func CreateStatefulSetList(statefulSets []apps.StatefulSet, pods []api.Pod, events []api.Event, ...) *StatefulSetList
- func GetStatefulSetList(client *client.Clientset, nsQuery *common.NamespaceQuery, ...) (*StatefulSetList, error)
- func GetStatefulSetListFromChannels(channels *common.ResourceChannels, dsQuery *dataselect.DataSelectQuery, ...) (*StatefulSetList, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetStatefulSetEvents ¶ added in v1.6.1
func GetStatefulSetEvents(client *client.Clientset, dsQuery *dataselect.DataSelectQuery, namespace, statefulSetName string) ( *common.EventList, error)
GetStatefulSetEvents gets events associated to pet set.
func GetStatefulSetPods ¶ added in v1.6.1
func GetStatefulSetPods(client *k8sClient.Clientset, heapsterClient client.HeapsterClient, dsQuery *dataselect.DataSelectQuery, name, namespace string) (*pod.PodList, error)
GetStatefulSetPods return list of pods targeting pet set.
Types ¶
type StatefulSet ¶ added in v1.6.1
type StatefulSet struct { ObjectMeta common.ObjectMeta `json:"objectMeta"` TypeMeta common.TypeMeta `json:"typeMeta"` // Aggregate information about pods belonging to this Pet Set. Pods common.PodInfo `json:"pods"` // Container images of the Stateful Set. ContainerImages []string `json:"containerImages"` }
StatefulSet is a presentation layer view of Kubernetes Stateful Set resource. This means it is Stateful Set plus additional augmented data we can get from other sources (like services that target the same pods).
func ToStatefulSet ¶ added in v1.6.1
func ToStatefulSet(statefulSet *apps.StatefulSet, podInfo *common.PodInfo) StatefulSet
ToStatefulSet transforms pet set into StatefulSet object returned by API.
type StatefulSetCell ¶
type StatefulSetCell apps.StatefulSet
func (StatefulSetCell) GetProperty ¶
func (self StatefulSetCell) GetProperty(name dataselect.PropertyName) dataselect.ComparableValue
func (StatefulSetCell) GetResourceSelector ¶
func (self StatefulSetCell) GetResourceSelector() *metric.ResourceSelector
type StatefulSetDetail ¶ added in v1.6.1
type StatefulSetDetail struct { ObjectMeta common.ObjectMeta `json:"objectMeta"` TypeMeta common.TypeMeta `json:"typeMeta"` // Aggregate information about pods belonging to this Pet Set. PodInfo common.PodInfo `json:"podInfo"` // Detailed information about Pods belonging to this Pet Set. PodList pod.PodList `json:"podList"` // Container images of the Pet Set. ContainerImages []string `json:"containerImages"` // List of events related to this Pet Set. EventList common.EventList `json:"eventList"` }
StatefulSetDetail is a presentation layer view of Kubernetes Pet Set resource. This means it is Pet Set plus additional augmented data we can get from other sources (like services that target the same pods).
func GetStatefulSetDetail ¶ added in v1.6.1
func GetStatefulSetDetail(client *k8sClient.Clientset, heapsterClient client.HeapsterClient, namespace, name string) (*StatefulSetDetail, error)
GetStatefulSetDetail gets pet set details.
type StatefulSetList ¶ added in v1.6.1
type StatefulSetList struct { ListMeta common.ListMeta `json:"listMeta"` // Unordered list of Pet Sets. StatefulSets []StatefulSet `json:"statefulSets"` CumulativeMetrics []metric.Metric `json:"cumulativeMetrics"` }
StatefulSetList contains a list of Stateful Sets in the cluster.
func CreateStatefulSetList ¶ added in v1.6.1
func CreateStatefulSetList(statefulSets []apps.StatefulSet, pods []api.Pod, events []api.Event, dsQuery *dataselect.DataSelectQuery, heapsterClient *heapster.HeapsterClient) *StatefulSetList
CreateStatefulSetList creates paginated list of Stateful Set model objects based on Kubernetes Stateful Set objects array and related resources arrays.
func GetStatefulSetList ¶ added in v1.6.1
func GetStatefulSetList(client *client.Clientset, nsQuery *common.NamespaceQuery, dsQuery *dataselect.DataSelectQuery, heapsterClient *heapster.HeapsterClient) (*StatefulSetList, error)
GetStatefulSetList returns a list of all Stateful Sets in the cluster.
func GetStatefulSetListFromChannels ¶ added in v1.6.1
func GetStatefulSetListFromChannels(channels *common.ResourceChannels, dsQuery *dataselect.DataSelectQuery, heapsterClient *heapster.HeapsterClient) (*StatefulSetList, error)
GetStatefulSetListFromChannels returns a list of all Stateful Sets in the cluster reading required resource list once from the channels.