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 replicaset.ReplicaSetList `json:"replicaSetList"` JobList job.JobList `json:"jobList"` CronJobList cronjob.CronJobList `json:"cronJobList"` ReplicationControllerList rc.ReplicationControllerList `json:"replicationControllerList"` PodList pod.PodList `json:"podList"` DaemonSetList daemonset.DaemonSetList `json:"daemonSetList"` StatefulSetList statefulset.StatefulSetList `json:"statefulSetList"` // List of non-critical errors, that occurred during resource retrieval. Errors []error `json:"errors"` }
Workloads structure contains all resource lists grouped into the workloads category.
func GetWorkloads ¶
func GetWorkloads(client kubernetes.Interface, metricClient metricapi.MetricClient, nsQuery *common.NamespaceQuery, dsQuery *dataselect.DataSelectQuery) (*Workloads, error)
GetWorkloads returns a list of all workloads in the cluster.
func GetWorkloadsFromChannels ¶
func GetWorkloadsFromChannels(channels *common.ResourceChannels, metricClient metricapi.MetricClient, dsQuery *dataselect.DataSelectQuery) (*Workloads, error)
GetWorkloadsFromChannels returns a list of all workloads in the cluster, from the channel sources.
Click to show internal directories.
Click to hide internal directories.