Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterInfo ¶
type ClusterInfo struct { Resources []NodeResources `json:"resources"` Usage []NodeMetrics `json:"usage"` Volumes []PersistentVolumes `json:"persistentVolumes"` }
type Logger ¶
func NewMetricsLogger ¶
type MetricsFetcher ¶
type MetricsFetcher interface {
FetchNodeMetrics() ([]NodeMetrics, error)
}
type MetricsV1beta1Interface ¶
type MetricsV1beta1Interface interface { v1beta1.MetricsV1beta1Interface }
type NodeCapacity ¶
type NodeMetrics ¶
type NodeMetricsInterface ¶
type NodeMetricsInterface interface { v1beta1.NodeMetricsInterface }
type NodeResources ¶
type NodeResources struct { Name string `json:"nodeName"` InstanceType string `json:"instanceType"` Capacity NodeCapacity `json:"capacity"` }
type PersistentVolumes ¶
type ResourcesFetcher ¶
type ResourcesFetcher interface {
FetchNodesResources() ([]NodeResources, error)
}
type VolumesFetcher ¶
type VolumesFetcher interface {
FetchPersistentVolumesCapacity() ([]PersistentVolumes, error)
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.