petset

package
v1.1.0-beta2 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2016 License: Apache-2.0 Imports: 9 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 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

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.

func ToPetSetList

func ToPetSetList(petSets []apps.PetSet, services []api.Service, pods []api.Pod, events []api.Event,
	nodes []api.Node) *PetSetList

Jump to

Keyboard shortcuts

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