2015-12-03 13:11:19 -05:00
|
|
|
package system
|
|
|
|
|
|
|
|
import (
|
2016-04-11 11:52:34 -07:00
|
|
|
"time"
|
|
|
|
|
2016-09-06 11:46:37 -07:00
|
|
|
"github.com/docker/docker/api/types"
|
|
|
|
"github.com/docker/docker/api/types/events"
|
|
|
|
"github.com/docker/docker/api/types/filters"
|
2016-03-18 14:42:40 -07:00
|
|
|
"golang.org/x/net/context"
|
2015-12-03 13:11:19 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
// Backend is the methods that need to be implemented to provide
|
|
|
|
// system specific functionality.
|
|
|
|
type Backend interface {
|
|
|
|
SystemInfo() (*types.Info, error)
|
|
|
|
SystemVersion() types.Version
|
2016-04-11 11:52:34 -07:00
|
|
|
SubscribeToEvents(since, until time.Time, ef filters.Args) ([]events.Message, chan interface{})
|
2015-12-03 13:11:19 -05:00
|
|
|
UnsubscribeFromEvents(chan interface{})
|
2016-03-18 14:42:40 -07:00
|
|
|
AuthenticateToRegistry(ctx context.Context, authConfig *types.AuthConfig) (string, string, error)
|
2015-12-03 13:11:19 -05:00
|
|
|
}
|