Documentation ¶
Index ¶
- func GetReplicaSetEvents(client client.Interface, namespace, replicaSetName string) (*common.EventList, error)
- func GetReplicaSetPodsEvents(client client.Interface, namespace, replicaSetName string) ([]api.Event, error)
- type ReplicaSet
- type ReplicaSetDetail
- type ReplicaSetList
- func GetReplicaSetList(client client.Interface, nsQuery *common.NamespaceQuery) (*ReplicaSetList, error)
- func GetReplicaSetListFromChannels(channels *common.ResourceChannels) (*ReplicaSetList, error)
- func ToReplicaSetList(replicaSets []extensions.ReplicaSet, services []api.Service, pods []api.Pod, ...) *ReplicaSetList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 augumented 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
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"` // Container images of the Replica Set. ContainerImages []string `json:"containerImages"` // List of events related to this Replica Set. EventList common.EventList `json:"eventList"` }
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.
type ReplicaSetList ¶
type ReplicaSetList struct { // Unordered list of Replica Sets. ReplicaSets []ReplicaSet `json:"replicaSets"` }
ReplicationSetList contains a list of Replica Sets in the cluster.
func GetReplicaSetList ¶
func GetReplicaSetList(client client.Interface, nsQuery *common.NamespaceQuery) (*ReplicaSetList, error)
GetReplicaSetList returns a list of all Replica Sets in the cluster.
func GetReplicaSetListFromChannels ¶
func GetReplicaSetListFromChannels(channels *common.ResourceChannels) ( *ReplicaSetList, error)
GetReplicaSetList returns a list of all Replica Sets in the cluster reading required resource list once from the channels.
func ToReplicaSetList ¶
func ToReplicaSetList(replicaSets []extensions.ReplicaSet, services []api.Service, pods []api.Pod, events []api.Event, nodes []api.Node) *ReplicaSetList