Documentation ¶
Index ¶
- func GetPetSetEvents(client *client.Client, namespace, petSetName string) (*common.EventList, error)
- func GetPetSetPods(client *k8sClient.Client, heapsterClient client.HeapsterClient, ...) (*pod.PodList, error)
- func GetPetSetPodsEvents(client *client.Client, namespace, petSetName string) ([]api.Event, error)
- type PetSet
- type PetSetDetail
- type PetSetList
- func CreatePetSetList(petSets []apps.PetSet, pods []api.Pod, events []api.Event, ...) *PetSetList
- func GetPetSetList(client *client.Client, nsQuery *common.NamespaceQuery, ...) (*PetSetList, error)
- func GetPetSetListFromChannels(channels *common.ResourceChannels, pQuery *common.PaginationQuery) (*PetSetList, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPetSetEvents ¶
func GetPetSetEvents(client *client.Client, namespace, petSetName string) ( *common.EventList, error)
GetPetSetEvents gets events associated to pet set.
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, pQuery *common.PaginationQuery) (*PetSetDetail, error)
GetPetSetDetail gets pet set details.
type PetSetList ¶
type PetSetList struct { ListMeta common.ListMeta `json:"listMeta"` // Unordered list of Pet Sets. PetSets []PetSet `json:"petSets"` }
PetSetList contains a list of Pet Sets in the cluster.
func CreatePetSetList ¶ added in v1.1.1
func CreatePetSetList(petSets []apps.PetSet, pods []api.Pod, events []api.Event, pQuery *common.PaginationQuery) *PetSetList
CreatePetSetList creates paginated list of Pet Set model objects based on Kubernetes Pet Set objects array and related resources arrays.
func GetPetSetList ¶
func GetPetSetList(client *client.Client, nsQuery *common.NamespaceQuery, pQuery *common.PaginationQuery) (*PetSetList, error)
GetPetSetList returns a list of all Pet Sets in the cluster.
func GetPetSetListFromChannels ¶
func GetPetSetListFromChannels(channels *common.ResourceChannels, pQuery *common.PaginationQuery) ( *PetSetList, error)
GetPetSetListFromChannels returns a list of all Pet Sets in the cluster reading required resource list once from the channels.