type ResourceAdder … func NewResourceAdder(resources []corev1.ResourceName) *ResourceAdder { … } // AddPodMetrics adds each pod metric to the total func (adder *ResourceAdder) AddPodMetrics(m *metricsapi.PodMetrics) { … }
type ResourceAdder … func NewResourceAdder(resources []corev1.ResourceName) *ResourceAdder { … } // AddPodMetrics adds each pod metric to the total func (adder *ResourceAdder) AddPodMetrics(m *metricsapi.PodMetrics) { … }