forked from yusheng-guo/kube-metrics-adapter
Adding boilerplate files
Signed-off-by: Per Ploug <per.ploug@zalando.de>
This commit is contained in:
20
pkg/collector/object_collector.go
Normal file
20
pkg/collector/object_collector.go
Normal 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
|
||||
// }
|
Reference in New Issue
Block a user