Move API handlers to separate package

This makes the package split a little cleaner and easier to import the
HTTP handlers for other consumers.
This commit is contained in:
Brian Goff
2018-09-18 10:05:54 -07:00
parent 74f76c75d5
commit da5e24ef4d
6 changed files with 197 additions and 150 deletions

View File

@@ -57,7 +57,7 @@ type Provider interface {
OperatingSystem() string
}
// MetricsProvider is an optional interface that providers can implement to expose pod stats
type MetricsProvider interface {
// PodMetricsProvider is an optional interface that providers can implement to expose pod stats
type PodMetricsProvider interface {
GetStatsSummary(context.Context) (*stats.Summary, error)
}