Adding boilerplate files

Signed-off-by: Per Ploug <per.ploug@zalando.de>
This commit is contained in:
Per Ploug
2018-10-08 13:17:05 +02:00
parent e9b677605a
commit 3db0cc3135
40 changed files with 3247 additions and 2 deletions

View File

@@ -0,0 +1,20 @@
package collector
import autoscalingv2beta1 "k8s.io/api/autoscaling/v2beta1"
type ObjectMetricsGetter interface {
GetObjectMetric(namespace string, reference *autoscalingv2beta1.CrossVersionObjectReference) (float64, error)
}
// type PodCollector struct {
// client kubernetes.Interface
// Getter PodMetricsGetter
// podLabelSelector string
// namespace string
// metricName string
// interval time.Duration
// }
// func NewObjectCollector(client kubernetes.Interface, hpa *autoscalingv2beta1.HorizontalPodAutoscaler, metricName string, config *MetricConfig, interval time.Duration) (Collector, error) {
// switch
// }