statefulset

package
v0.0.0-...-8a48855 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 31, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetStatefulSetPods

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

type StatefulSet struct {
	ObjectMeta          api.ObjectMeta `json:"objectMeta"`
	TypeMeta            api.TypeMeta   `json:"typeMeta"`
	Pods                common.PodInfo `json:"podInfo"`
	ContainerImages     []string       `json:"containerImages"`
	InitContainerImages []string       `json:"initContainerImages"`
}

StatefulSet is a presentation layer view of Kubernetes Stateful Set resource.

type StatefulSetCell

type StatefulSetCell apps.StatefulSet

func (StatefulSetCell) GetProperty

func (StatefulSetCell) GetResourceSelector

func (self StatefulSetCell) GetResourceSelector() *metricapi.ResourceSelector

type StatefulSetDetail

type StatefulSetDetail struct {
	// Extends list item structure.
	StatefulSet `json:",inline"`

	// 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

func GetStatefulSetDetail

func GetStatefulSetDetail(client kubernetes.Interface, metricClient metricapi.MetricClient, namespace,
	name string) (*StatefulSetDetail, error)

GetStatefulSetDetail gets Stateful Set details.

type StatefulSetList

type StatefulSetList struct {
	ListMeta api.ListMeta `json:"listMeta"`

	Status            common.ResourceStatus `json:"status"`
	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

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL