Versions in this module Expand all Collapse all v1 v1.0.0 Jun 17, 2024 Changes in this version + func RegisterAPIMetrics(registrationFunc func(metrics.Registerable) error) error + type MetricsGetter interface + func NewMetricsGetter(informer informermanager.FederatedInformerManager, logger klog.Logger) MetricsGetter + type NodeMetrics struct + func NewNodeMetrics(groupResource schema.GroupResource, metrics NodeMetricsGetter, ...) *NodeMetrics + func (m *NodeMetrics) ConvertToTable(ctx context.Context, object runtime.Object, tableOptions runtime.Object) (*metav1beta1.Table, error) + func (m *NodeMetrics) Destroy() + func (m *NodeMetrics) Get(ctx context.Context, name string, opts *metav1.GetOptions) (runtime.Object, error) + func (m *NodeMetrics) Kind() string + func (m *NodeMetrics) List(ctx context.Context, options *metainternalversion.ListOptions) (runtime.Object, error) + func (m *NodeMetrics) NamespaceScoped() bool + func (m *NodeMetrics) New() runtime.Object + func (m *NodeMetrics) NewList() runtime.Object + type NodeMetricsGetter interface + GetNodeMetrics func(nodes ...*corev1.Node) ([]metrics.NodeMetrics, error) + type PodMetrics struct + func NewPodMetrics(groupResource schema.GroupResource, metrics PodMetricsGetter, ...) *PodMetrics + func (m *PodMetrics) ConvertToTable(ctx context.Context, object runtime.Object, tableOptions runtime.Object) (*metav1beta1.Table, error) + func (m *PodMetrics) Destroy() + func (m *PodMetrics) Get(ctx context.Context, name string, opts *metav1.GetOptions) (runtime.Object, error) + func (m *PodMetrics) Kind() string + func (m *PodMetrics) List(ctx context.Context, options *metainternalversion.ListOptions) (runtime.Object, error) + func (m *PodMetrics) NamespaceScoped() bool + func (m *PodMetrics) New() runtime.Object + func (m *PodMetrics) NewList() runtime.Object + type PodMetricsGetter interface + GetPodMetrics func(pods ...*metav1.PartialObjectMetadata) ([]metrics.PodMetrics, error)