github.com/boynux/docker@v1.11.0-rc4/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  	"golang.org/x/net/context"
     8  )
     9  
    10  // Backend is the methods that need to be implemented to provide
    11  // system specific functionality.
    12  type Backend interface {
    13  	SystemInfo() (*types.Info, error)
    14  	SystemVersion() types.Version
    15  	SubscribeToEvents(since, sinceNano int64, ef filters.Args) ([]events.Message, chan interface{})
    16  	UnsubscribeFromEvents(chan interface{})
    17  	AuthenticateToRegistry(ctx context.Context, authConfig *types.AuthConfig) (string, string, error)
    18  }