github.com/hms58/moby@v1.13.1/api/server/router/system/backend.go (about) 1 package system 2 3 import ( 4 "time" 5 6 "github.com/docker/docker/api/types" 7 "github.com/docker/docker/api/types/events" 8 "github.com/docker/docker/api/types/filters" 9 "golang.org/x/net/context" 10 ) 11 12 // Backend is the methods that need to be implemented to provide 13 // system specific functionality. 14 type Backend interface { 15 SystemInfo() (*types.Info, error) 16 SystemVersion() types.Version 17 SystemDiskUsage() (*types.DiskUsage, error) 18 SubscribeToEvents(since, until time.Time, ef filters.Args) ([]events.Message, chan interface{}) 19 UnsubscribeFromEvents(chan interface{}) 20 AuthenticateToRegistry(ctx context.Context, authConfig *types.AuthConfig) (string, string, error) 21 }