replicasetdetail

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2016 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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

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

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.

Types

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 *unversioned.LabelSelector `json:"selector"`

	// List of Horizontal Pod Autoscalers targeting this Replica Set.
	HorizontalPodAutoscalerList horizontalpodautoscalerlist.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

ToReplicaSetDetail converts replica set api object to replica set detail model object.

Jump to

Keyboard shortcuts

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