Bump cAdvisor (and dependencies) godeps version
This commit is contained in:
10
vendor/github.com/google/cadvisor/storage/storage.go
generated
vendored
10
vendor/github.com/google/cadvisor/storage/storage.go
generated
vendored
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user