github.com/ncdc/docker@v0.10.1-0.20160129113957-6c6729ef5b74/api/server/router/system/backend.go (about)

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