Bump cAdvisor (and dependencies) godeps version

This commit is contained in:
Tim St. Clair
2016-05-20 11:43:32 -07:00
parent 4215fe57a5
commit 237f90d6ee
388 changed files with 3788 additions and 121879 deletions

View File

@@ -16,6 +16,7 @@ package storage
import (
"fmt"
"sort"
info "github.com/google/cadvisor/info/v1"
)
@@ -47,3 +48,12 @@ func New(name string) (StorageDriver, error) {
}
return f()
}
func ListDrivers() []string {
drivers := make([]string, 0, len(registeredPlugins))
for name := range registeredPlugins {
drivers = append(drivers, name)
}
sort.Strings(drivers)
return drivers
}