Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PetSet ¶
type PetSet struct { ObjectMeta common.ObjectMeta `json:"objectMeta"` TypeMeta common.TypeMeta `json:"typeMeta"` // Aggregate information about pods belonging to this Pet Set. Pods common.PodInfo `json:"pods"` // Container images of the Pet Set. ContainerImages []string `json:"containerImages"` }
PetSet is a presentation layer view of Kubernetes Pet Set resource. This means it is Pet Set plus additional augumented data we can get from other sources (like services that target the same pods).
type PetSetDetail ¶
type PetSetDetail struct { ObjectMeta common.ObjectMeta `json:"objectMeta"` TypeMeta common.TypeMeta `json:"typeMeta"` // Aggregate information about pods belonging to this Pet Set. PodInfo common.PodInfo `json:"podInfo"` // Detailed information about Pods belonging to this Pet Set. PodList pod.PodList `json:"podList"` // Container images of the Pet Set. ContainerImages []string `json:"containerImages"` // List of events related to this Pet Set. EventList common.EventList `json:"eventList"` }
PetSetDetail is a presentation layer view of Kubernetes Pet Set resource. This means it is Pet Set plus additional augmented data we can get from other sources (like services that target the same pods).
func GetPetSetDetail ¶
func GetPetSetDetail(client *k8sClient.Client, heapsterClient client.HeapsterClient, namespace, name string) (*PetSetDetail, error)
GetPetSetDetail gets pet set details.
type PetSetList ¶
type PetSetList struct { // Unordered list of Pet Sets. PetSets []PetSet `json:"petSets"` }
PetSetList contains a list of Pet Sets in the cluster.
func GetPetSetList ¶
func GetPetSetList(client *client.Client, nsQuery *common.NamespaceQuery) (*PetSetList, error)
GetPetSetList returns a list of all Pet Sets in the cluster.
func GetPetSetListFromChannels ¶
func GetPetSetListFromChannels(channels *common.ResourceChannels) ( *PetSetList, error)
GetPetSetList returns a list of all Pet Sets in the cluster reading required resource list once from the channels.