petset

package
v1.4.0-beta2 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2016 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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.

func GetPetSetPods added in v1.1.1

func GetPetSetPods(client *k8sClient.Client, heapsterClient client.HeapsterClient,
	dsQuery *dataselect.DataSelectQuery, petSetName, namespace string) (*pod.PodList, error)

GetPetSetPods return list of pods targeting pet set.

func GetPetSetPodsEvents

func GetPetSetPodsEvents(client *client.Client, namespace, petSetName string) (
	[]api.Event, error)

GetPetSetPodsEvents gets events associated to pods in 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).

func ToPetSet

func ToPetSet(petSet *apps.PetSet, podInfo *common.PodInfo) PetSet

ToPetSet transforms pet set into PetSet object returned by API.

type PetSetCell added in v1.4.0

type PetSetCell apps.PetSet

func (PetSetCell) GetProperty added in v1.4.0

func (PetSetCell) GetResourceSelector added in v1.4.0

func (self PetSetCell) GetResourceSelector() *metric.ResourceSelector

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, dsQuery *dataselect.DataSelectQuery) (*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"`
	CumulativeMetrics []metric.Metric `json:"cumulativeMetrics"`
}

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,
	dsQuery *dataselect.DataSelectQuery, heapsterClient *heapster.HeapsterClient) *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,
	dsQuery *dataselect.DataSelectQuery, heapsterClient *heapster.HeapsterClient) (*PetSetList, error)

GetPetSetList returns a list of all Pet Sets in the cluster.

func GetPetSetListFromChannels

func GetPetSetListFromChannels(channels *common.ResourceChannels, dsQuery *dataselect.DataSelectQuery, heapsterClient *heapster.HeapsterClient) (
	*PetSetList, error)

GetPetSetListFromChannels returns a list of all Pet Sets in the cluster reading required resource list once from the channels.

Jump to

Keyboard shortcuts

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