Documentation ¶
Index ¶
- Variables
- func GetVersion(job *engine.Job) engine.Status
- func InitServer(job *engine.Job) engine.Status
- type BuildFile
- type Server
- func (srv *Server) AddEvent(jm utils.JSONMessage)
- func (srv *Server) Auth(job *engine.Job) engine.Status
- func (srv *Server) Build(job *engine.Job) engine.Status
- func (srv *Server) Close() error
- func (srv *Server) ContainerAttach(job *engine.Job) engine.Status
- func (srv *Server) ContainerChanges(job *engine.Job) engine.Status
- func (srv *Server) ContainerCommit(job *engine.Job) engine.Status
- func (srv *Server) ContainerCopy(job *engine.Job) engine.Status
- func (srv *Server) ContainerCreate(job *engine.Job) engine.Status
- func (srv *Server) ContainerDestroy(job *engine.Job) engine.Status
- func (srv *Server) ContainerExport(job *engine.Job) engine.Status
- func (srv *Server) ContainerInspect(name string) (*runtime.Container, error)
- func (srv *Server) ContainerKill(job *engine.Job) engine.Status
- func (srv *Server) ContainerResize(job *engine.Job) engine.Status
- func (srv *Server) ContainerRestart(job *engine.Job) engine.Status
- func (srv *Server) ContainerStart(job *engine.Job) engine.Status
- func (srv *Server) ContainerStop(job *engine.Job) engine.Status
- func (srv *Server) ContainerTop(job *engine.Job) engine.Status
- func (srv *Server) ContainerWait(job *engine.Job) engine.Status
- func (srv *Server) Containers(job *engine.Job) engine.Status
- func (srv *Server) DeleteImage(name string, imgs *engine.Table, first, force bool) error
- func (srv *Server) DockerInfo(job *engine.Job) engine.Status
- func (srv *Server) Events(job *engine.Job) engine.Status
- func (srv *Server) GetEvents() []utils.JSONMessage
- func (srv *Server) HTTPRequestFactory(metaHeaders map[string][]string) *utils.HTTPRequestFactory
- func (srv *Server) ImageDelete(job *engine.Job) engine.Status
- func (srv *Server) ImageExport(job *engine.Job) engine.Status
- func (srv *Server) ImageGetCached(imgID string, config *runconfig.Config) (*image.Image, error)
- func (srv *Server) ImageHistory(job *engine.Job) engine.Status
- func (srv *Server) ImageImport(job *engine.Job) engine.Status
- func (srv *Server) ImageInsert(job *engine.Job) engine.Status
- func (srv *Server) ImageInspect(name string) (*image.Image, error)
- func (srv *Server) ImageLoad(job *engine.Job) engine.Status
- func (srv *Server) ImagePull(job *engine.Job) engine.Status
- func (srv *Server) ImagePush(job *engine.Job) engine.Status
- func (srv *Server) ImageTag(job *engine.Job) engine.Status
- func (srv *Server) Images(job *engine.Job) engine.Status
- func (srv *Server) ImagesSearch(job *engine.Job) engine.Status
- func (srv *Server) ImagesViz(job *engine.Job) engine.Status
- func (srv *Server) IsRunning() bool
- func (srv *Server) JobInspect(job *engine.Job) engine.Status
- func (srv *Server) LogEvent(action, id, from string) *utils.JSONMessage
- func (srv *Server) RegisterLinks(container *runtime.Container, hostConfig *runconfig.HostConfig) error
- func (srv *Server) SetRunning(status bool)
- type StderrFormater
- type StdoutFormater
Constants ¶
This section is empty.
Variables ¶
var (
ErrDockerfileEmpty = errors.New("Dockerfile cannot be empty")
)
Functions ¶
Types ¶
type BuildFile ¶
type BuildFile interface { Build(io.Reader) (string, error) CmdFrom(string) error CmdRun(string) error }
func NewBuildFile ¶
func NewBuildFile(srv *Server, outStream, errStream io.Writer, verbose, utilizeCache, rm bool, outOld io.Writer, sf *utils.StreamFormatter, auth *auth.AuthConfig, authConfigFile *auth.ConfigFile) BuildFile
type Server ¶
func (*Server) AddEvent ¶
func (srv *Server) AddEvent(jm utils.JSONMessage)
func (*Server) ContainerChanges ¶
func (*Server) ContainerDestroy ¶
func (*Server) ContainerInspect ¶
func (*Server) ContainerKill ¶
ContainerKill send signal to the container If no signal is given (sig 0), then Kill with SIGKILL and wait for the container to exit. If a signal is given, then just send it to the container and return.
func (*Server) ContainerRestart ¶
func (*Server) DeleteImage ¶
func (*Server) GetEvents ¶
func (srv *Server) GetEvents() []utils.JSONMessage
func (*Server) HTTPRequestFactory ¶
func (srv *Server) HTTPRequestFactory(metaHeaders map[string][]string) *utils.HTTPRequestFactory
func (*Server) ImageExport ¶
ImageExport exports all images with the given tag. All versions containing the same tag are exported. The resulting output is an uncompressed tar ball. name is the set of tags to export. out is the writer where the images are written to.
func (*Server) ImageGetCached ¶
func (*Server) ImageLoad ¶
Loads a set of images into the repository. This is the complementary of ImageExport. The input stream is an uncompressed tar ball containing images and metadata.
func (*Server) ImagePush ¶
FIXME: Allow to interrupt current push when new push of same image is done.
func (*Server) RegisterLinks ¶
func (*Server) SetRunning ¶
type StderrFormater ¶
type StderrFormater struct { io.Writer *utils.StreamFormatter }
type StdoutFormater ¶
type StdoutFormater struct { io.Writer *utils.StreamFormatter }
Directories ¶
Path | Synopsis |
---|---|
native
These types are wrappers around the libcontainer Terminal interface so that we can resuse the docker implementations where possible.
|
These types are wrappers around the libcontainer Terminal interface so that we can resuse the docker implementations where possible. |
pkg
|
|
listenbuffer
Package to allow go applications to immediately start listening on a socket, unix, tcp, udp but hold connections until the application has booted and is ready to accept them
|
Package to allow go applications to immediately start listening on a socket, unix, tcp, udp but hold connections until the application has booted and is ready to accept them |
mflag
Package flag implements command-line flag parsing.
|
Package flag implements command-line flag parsing. |
netlink
Packet netlink provide access to low level Netlink sockets and messages.
|
Packet netlink provide access to low level Netlink sockets and messages. |