Documentation ¶
Index ¶
- type StatefulSet
- 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 ¶
This section is empty.
Types ¶
type StatefulSet ¶
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 Pet Set. ContainerImages []string `json:"containerImages"` }
StatefulSet 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 ToStatefulSet ¶
func ToStatefulSet(statefulSet *apps.StatefulSet, podInfo *common.PodInfo) StatefulSet
ToStatefulSet transforms pet set into StatefulSet object returned by API.
type StatefulSetList ¶
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 Pet Sets in the cluster.
func CreateStatefulSetList ¶
func CreateStatefulSetList(statefulSets []apps.StatefulSet, pods []api.Pod, events []api.Event, dsQuery *dataselect.DataSelectQuery, heapsterClient *heapster.HeapsterClient) *StatefulSetList
CreateStatefulSetList creates paginated list of Pet Set model objects based on Kubernetes Pet Set objects array and related resources arrays.
func GetStatefulSetList ¶
func GetStatefulSetList(client *client.Clientset, nsQuery *common.NamespaceQuery, dsQuery *dataselect.DataSelectQuery, heapsterClient *heapster.HeapsterClient) (*StatefulSetList, error)
GetStatefulSetList returns a list of all Pet Sets in the cluster.
func GetStatefulSetListFromChannels ¶
func GetStatefulSetListFromChannels(channels *common.ResourceChannels, dsQuery *dataselect.DataSelectQuery, heapsterClient *heapster.HeapsterClient) ( *StatefulSetList, error)
GetStatefulSetListFromChannels returns a list of all Pet Sets in the cluster reading required resource list once from the channels.