github.com/portworx/docker@v1.12.1/api/server/router/system/backend.go (about)

     1  package system
     2  
     3  import (
     4  	"time"
     5  
     6  	"github.com/docker/engine-api/types"
     7  	"github.com/docker/engine-api/types/events"
     8  	"github.com/docker/engine-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  	SubscribeToEvents(since, until time.Time, ef filters.Args) ([]events.Message, chan interface{})
    18  	UnsubscribeFromEvents(chan interface{})
    19  	AuthenticateToRegistry(ctx context.Context, authConfig *types.AuthConfig) (string, string, error)
    20  }