Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetStatefulSetPods ¶ added in v1.6.1
func GetStatefulSetPods(client kubernetes.Interface, metricClient metricapi.MetricClient, 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 api.ObjectMeta `json:"objectMeta"` TypeMeta api.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"` // Init container images of the Stateful Set. InitContainerImages []string `json:"initContainerImages"` }
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).
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() *metricapi.ResourceSelector
type StatefulSetDetail ¶ added in v1.6.1
type StatefulSetDetail struct { ObjectMeta api.ObjectMeta `json:"objectMeta"` TypeMeta api.TypeMeta `json:"typeMeta"` PodInfo common.PodInfo `json:"podInfo"` PodList pod.PodList `json:"podList"` ContainerImages []string `json:"containerImages"` InitContainerImages []string `json:"initContainerImages"` EventList common.EventList `json:"eventList"` // List of non-critical errors, that occurred during resource retrieval. Errors []error `json:"errors"` }
StatefulSetDetail 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 GetStatefulSetDetail ¶ added in v1.6.1
func GetStatefulSetDetail(client kubernetes.Interface, metricClient metricapi.MetricClient, namespace, name string) (*StatefulSetDetail, error)
GetStatefulSetDetail gets Stateful Set details.
type StatefulSetList ¶ added in v1.6.1
type StatefulSetList struct { ListMeta api.ListMeta `json:"listMeta"` // Basic information about resources status on the list. Status common.ResourceStatus `json:"status"` // Unordered list of Pet Sets. StatefulSets []StatefulSet `json:"statefulSets"` CumulativeMetrics []metricapi.Metric `json:"cumulativeMetrics"` // List of non-critical errors, that occurred during resource retrieval. Errors []error `json:"errors"` }
StatefulSetList contains a list of Stateful Sets in the cluster.
func GetStatefulSetList ¶ added in v1.6.1
func GetStatefulSetList(client kubernetes.Interface, nsQuery *common.NamespaceQuery, dsQuery *dataselect.DataSelectQuery, metricClient metricapi.MetricClient) (*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, metricClient metricapi.MetricClient) (*StatefulSetList, error)
GetStatefulSetListFromChannels returns a list of all Stateful Sets in the cluster reading required resource list once from the channels.