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.12.1-ce+incompatible
Published
Feb 27, 2018
Platform
windows/amd64
Imports
18 packages
Last checked
22 minutes ago

Tools for package owners.