docker: github.com/AkihiroSuda/docker/api/server/router/system Index | Files

package system

import "github.com/AkihiroSuda/docker/api/server/router/system"

Index

Package Files

backend.go system.go system_routes.go

func NewRouter Uses

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

NewRouter initializes a new system router

type Backend Uses

type Backend interface {
    SystemInfo() (*types.Info, error)
    SystemVersion() types.Version
    SystemDiskUsage() (*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.

Package system imports 18 packages (graph). Updated 2017-01-18. Refresh now. Tools for package owners.