Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cluster ¶
type Cluster struct {
NamespaceList namespace.NamespaceList `json:"namespaceList"`
NodeList node.NodeList `json:"nodeList"`
PersistentVolumeList pv.PersistentVolumeList `json:"persistentVolumeList"`
RoleList rbacroles.RbacRoleList `json:"roleList"`
StorageClassList storageclass.StorageClassList `json:"storageClassList"`
// List of non-critical errors, that occurred during resource retrieval.
Errors []error `json:"errors"`
}
Cluster structure contains all resource lists grouped into the cluster category.
func GetCluster ¶
func GetCluster(client *kubernetes.Clientset, dsQuery *dataselect.DataSelectQuery, metricClient metricapi.MetricClient) (*Cluster, error)
GetCluster returns a list of all cluster resources in the cluster.
func GetClusterFromChannels ¶
func GetClusterFromChannels(client *kubernetes.Clientset, channels *common.ResourceChannels, dsQuery *dataselect.DataSelectQuery, metricClient metricapi.MetricClient) (*Cluster, error)
GetClusterFromChannels returns a list of all cluster in the cluster, from the channel sources.
Click to show internal directories.
Click to hide internal directories.