package system

import "github.com/docker/cli/components/engine/api/server/router/system"

Index

Functions

func NewRouter

func NewRouter(b Backend, c *cluster.Cluster, fscache *fscache.FSCache) router.Router

NewRouter initializes a new system router

Types

type Backend

type Backend interface {
	SystemInfo() (*types.Info, error)
	SystemVersion() types.Version
	SystemDiskUsage(ctx context.Context) (*types.DiskUsage, error)
	SubscribeToEvents(since, until time.Time, ef filters.Args) ([]events.Message, chan interface{})
	UnsubscribeFromEvents(chan interface{})
	AuthenticateToRegistry(ctx context.Context, authConfig *types.AuthConfig) (string, string, error)
}

Backend is the methods that need to be implemented to provide system specific functionality.

Source Files

backend.go system.go system_routes.go

Version
v17.10.0-ce-rc2+incompatible
Published
Oct 12, 2017
Platform
windows/amd64
Imports
19 packages
Last checked
12 seconds ago

Tools for package owners.