container

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 1, 2017 License: Apache-2.0 Imports: 21 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRouter

func NewRouter(b Backend) router.Router

NewRouter initializes a new container router

Types

type Backend

type Backend interface {
	CmdGetContainerInfo(container string) (interface{}, error)
	CmdGetContainerLogs(name string, c *daemon.ContainerLogsConfig) error
	CmdExitCode(container, tag string) (int, error)
	CmdCreateContainer(podId string, containerArgs []byte) (string, error)
	CmdStartContainer(containerId string) (*engine.Env, error)
	CmdKillContainer(name string, sig int64) (*engine.Env, error)
	CmdStopContainer(name string) (*engine.Env, error)
	CmdRemoveContainer(name string) (*engine.Env, error)
	CmdContainerRename(oldName, newName string) (*engine.Env, error)
	CmdAttach(in io.ReadCloser, out io.WriteCloser, id string) error
	CmdCommitImage(name string, cfg *types.ContainerCommitConfig) (*engine.Env, error)
	CmdTtyResize(podId, tag string, h, w int) error
	CreateExec(id, cmd string, terminal bool) (string, error)
	StartExec(stdin io.ReadCloser, stdout io.WriteCloser, containerId, execId string) error
	ExecVM(podID, cmd string, stdin io.ReadCloser, stdout, stderr io.WriteCloser) (int, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL