workload

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2016 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Workloads

type Workloads struct {
	DeploymentList deployment.DeploymentList `json:"deploymentList"`

	ReplicaSetList replicasetlist.ReplicaSetList `json:"replicaSetList"`

	JobList joblist.JobList `json:"jobList"`

	ReplicationControllerList replicationcontrollerlist.ReplicationControllerList `json:"replicationControllerList"`

	PodList pod.PodList `json:"podList"`

	DaemonSetList daemonsetlist.DaemonSetList `json:"daemonSetList"`

	StatefulSetList statefulsetlist.StatefulSetList `json:"statefulSetList"`
}

Workloads structure contains all resource lists grouped into the workloads category.

func GetWorkloads

func GetWorkloads(client *k8sClient.Clientset, heapsterClient client.HeapsterClient,
	nsQuery *common.NamespaceQuery, metricQuery *dataselect.MetricQuery) (*Workloads, error)

GetWorkloads returns a list of all workloads in the cluster.

func GetWorkloadsFromChannels

func GetWorkloadsFromChannels(channels *common.ResourceChannels,
	heapsterClient client.HeapsterClient, metricQuery *dataselect.MetricQuery) (*Workloads, error)

GetWorkloadsFromChannels returns a list of all workloads in the cluster, from the channel sources.

Jump to

Keyboard shortcuts

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