Documentation ¶
Index ¶
- func FromCells(cells []dataselect.DataCell) []extensions.ReplicaSet
- func GetReplicaSetEvents(client client.Interface, dsQuery *dataselect.DataSelectQuery, ...) (*common.EventList, error)
- func GetReplicaSetPods(client k8sClient.Interface, heapsterClient client.HeapsterClient, ...) (*pod.PodList, error)
- func GetReplicaSetPodsEvents(client client.Interface, namespace, replicaSetName string) ([]api.Event, error)
- func GetReplicaSetServices(client client.Interface, dsQuery *dataselect.DataSelectQuery, ...) (*service.ServiceList, error)
- func ToCells(std []extensions.ReplicaSet) []dataselect.DataCell
- type ReplicaSet
- type ReplicaSetCell
- type ReplicaSetDetail
- type ReplicaSetList
- func CreateReplicaSetList(replicaSets []extensions.ReplicaSet, pods []api.Pod, events []api.Event, ...) *ReplicaSetList
- func GetReplicaSetList(client client.Interface, nsQuery *common.NamespaceQuery, ...) (*ReplicaSetList, error)
- func GetReplicaSetListFromChannels(channels *common.ResourceChannels, dsQuery *dataselect.DataSelectQuery, ...) (*ReplicaSetList, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromCells ¶ added in v1.5.0
func FromCells(cells []dataselect.DataCell) []extensions.ReplicaSet
func GetReplicaSetEvents ¶
func GetReplicaSetEvents(client client.Interface, dsQuery *dataselect.DataSelectQuery, namespace, replicaSetName string) ( *common.EventList, error)
GetReplicaSetEvents gets events associated to replica set.
func GetReplicaSetPods ¶ added in v1.1.1
func GetReplicaSetPods(client k8sClient.Interface, heapsterClient client.HeapsterClient, dsQuery *dataselect.DataSelectQuery, petSetName, namespace string) (*pod.PodList, error)
GetReplicaSetPods return list of pods targeting replica set.
func GetReplicaSetPodsEvents ¶
func GetReplicaSetPodsEvents(client client.Interface, namespace, replicaSetName string) ( []api.Event, error)
GetReplicaSetPodsEvents gets events associated to pods in replica set.
func GetReplicaSetServices ¶ added in v1.1.1
func GetReplicaSetServices(client client.Interface, dsQuery *dataselect.DataSelectQuery, namespace, name string) (*service.ServiceList, error)
GetReplicaSetServices returns list of services that are related to replica set targeted by given name.
func ToCells ¶ added in v1.5.0
func ToCells(std []extensions.ReplicaSet) []dataselect.DataCell
Types ¶
type ReplicaSet ¶
type ReplicaSet struct { ObjectMeta common.ObjectMeta `json:"objectMeta"` TypeMeta common.TypeMeta `json:"typeMeta"` // Aggregate information about pods belonging to this Replica Set. Pods common.PodInfo `json:"pods"` // Container images of the Replica Set. ContainerImages []string `json:"containerImages"` }
ReplicaSet is a presentation layer view of Kubernetes Replica Set resource. This means it is Replica Set plus additional augmented data we can get from other sources (like services that target the same pods).
func ToReplicaSet ¶
func ToReplicaSet(replicaSet *extensions.ReplicaSet, podInfo *common.PodInfo) ReplicaSet
ToReplicaSet converts replica set api object to replica set model object.
type ReplicaSetCell ¶ added in v1.4.0
type ReplicaSetCell extensions.ReplicaSet
func (ReplicaSetCell) GetProperty ¶ added in v1.4.0
func (self ReplicaSetCell) GetProperty(name dataselect.PropertyName) dataselect.ComparableValue
func (ReplicaSetCell) GetResourceSelector ¶ added in v1.4.0
func (self ReplicaSetCell) GetResourceSelector() *metric.ResourceSelector
type ReplicaSetDetail ¶
type ReplicaSetDetail struct { ObjectMeta common.ObjectMeta `json:"objectMeta"` TypeMeta common.TypeMeta `json:"typeMeta"` // Aggregate information about pods belonging to this Replica Set. PodInfo common.PodInfo `json:"podInfo"` // Detailed information about Pods belonging to this Replica Set. PodList pod.PodList `json:"podList"` // Detailed information about service related to Replica Set. ServiceList resourceService.ServiceList `json:"serviceList"` // Container images of the Replica Set. ContainerImages []string `json:"containerImages"` // List of events related to this Replica Set. EventList common.EventList `json:"eventList"` // Selector of this replica set. Selector *metaV1.LabelSelector `json:"selector"` // List of Horizontal Pod Autoscalers targeting this Replica Set. HorizontalPodAutoscalerList horizontalpodautoscaler.HorizontalPodAutoscalerList `json:"horizontalPodAutoscalerList"` }
ReplicaSetDetail is a presentation layer view of Kubernetes Replica Set resource. This means it is Replica Set plus additional augmented data we can get from other sources (like services that target the same pods).
func GetReplicaSetDetail ¶
func GetReplicaSetDetail(client k8sClient.Interface, heapsterClient client.HeapsterClient, namespace, name string) (*ReplicaSetDetail, error)
GetReplicaSetDetail gets replica set details.
func ToReplicaSetDetail ¶ added in v1.1.1
func ToReplicaSetDetail(replicaSet *extensions.ReplicaSet, eventList common.EventList, podList pod.PodList, podInfo common.PodInfo, serviceList resourceService.ServiceList, hpas horizontalpodautoscaler.HorizontalPodAutoscalerList) ReplicaSetDetail
ToReplicaSetDetail converts replica set api object to replica set detail model object.
type ReplicaSetList ¶
type ReplicaSetList struct { ListMeta common.ListMeta `json:"listMeta"` // Unordered list of Replica Sets. ReplicaSets []ReplicaSet `json:"replicaSets"` CumulativeMetrics []metric.Metric `json:"cumulativeMetrics"` }
ReplicaSetList contains a list of Replica Sets in the cluster.
func CreateReplicaSetList ¶ added in v1.1.1
func CreateReplicaSetList(replicaSets []extensions.ReplicaSet, pods []api.Pod, events []api.Event, dsQuery *dataselect.DataSelectQuery, heapsterClient *heapster.HeapsterClient) *ReplicaSetList
CreateReplicaSetList creates paginated list of Replica Set model objects based on Kubernetes Replica Set objects array and related resources arrays.
func GetReplicaSetList ¶
func GetReplicaSetList(client client.Interface, nsQuery *common.NamespaceQuery, dsQuery *dataselect.DataSelectQuery, heapsterClient *heapster.HeapsterClient) (*ReplicaSetList, error)
GetReplicaSetList returns a list of all Replica Sets in the cluster.
func GetReplicaSetListFromChannels ¶
func GetReplicaSetListFromChannels(channels *common.ResourceChannels, dsQuery *dataselect.DataSelectQuery, heapsterClient *heapster.HeapsterClient) (*ReplicaSetList, error)
GetReplicaSetListFromChannels returns a list of all Replica Sets in the cluster reading required resource list once from the channels.