mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
![Aaron Lehmann](/assets/img/avatar_default.png)
This adds support for the passthrough on build, push, login, and search. Revamp the integration test to cover these cases and make it more robust. Use backticks instead of quoted strings for backslash-heavy string contstands. Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
18 lines
614 B
Go
18 lines
614 B
Go
package system
|
|
|
|
import (
|
|
"github.com/docker/engine-api/types"
|
|
"github.com/docker/engine-api/types/events"
|
|
"github.com/docker/engine-api/types/filters"
|
|
"golang.org/x/net/context"
|
|
)
|
|
|
|
// Backend is the methods that need to be implemented to provide
|
|
// system specific functionality.
|
|
type Backend interface {
|
|
SystemInfo() (*types.Info, error)
|
|
SystemVersion() types.Version
|
|
SubscribeToEvents(since, sinceNano int64, ef filters.Args) ([]events.Message, chan interface{})
|
|
UnsubscribeFromEvents(chan interface{})
|
|
AuthenticateToRegistry(ctx context.Context, authConfig *types.AuthConfig) (string, string, error)
|
|
}
|