backend.go 614 B

123456789101112131415161718
  1. package system
  2. import (
  3. "github.com/docker/engine-api/types"
  4. "github.com/docker/engine-api/types/events"
  5. "github.com/docker/engine-api/types/filters"
  6. "golang.org/x/net/context"
  7. )
  8. // Backend is the methods that need to be implemented to provide
  9. // system specific functionality.
  10. type Backend interface {
  11. SystemInfo() (*types.Info, error)
  12. SystemVersion() types.Version
  13. SubscribeToEvents(since, sinceNano int64, ef filters.Args) ([]events.Message, chan interface{})
  14. UnsubscribeFromEvents(chan interface{})
  15. AuthenticateToRegistry(ctx context.Context, authConfig *types.AuthConfig) (string, string, error)
  16. }