Documentation ¶
Index ¶
- Variables
- func InitServer(job *engine.Job) engine.Status
- type BuildFile
- type Server
- func (srv *Server) AddEvent(jm utils.JSONMessage)
- 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) ContainerKill(job *engine.Job) engine.Status
- func (srv *Server) ContainerLogs(job *engine.Job) engine.Status
- func (srv *Server) ContainerPause(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) ContainerUnpause(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, noprune bool) error
- func (srv *Server) DockerInfo(job *engine.Job) engine.Status
- func (srv *Server) Events(job *engine.Job) engine.Status
- func (srv *Server) EvictListener(from int64)
- func (srv *Server) GetEvents() []utils.JSONMessage
- 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) 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) ImagesViz(job *engine.Job) engine.Status
- func (srv *Server) IsRunning() bool
- func (srv *Server) LogEvent(action, id, from string) *utils.JSONMessage
- func (srv *Server) SetRunning(status bool)
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, forceRm bool, outOld io.Writer, sf *utils.StreamFormatter, auth *registry.AuthConfig, authConfigFile *registry.ConfigFile) BuildFile
type Server ¶
func (*Server) AddEvent ¶
func (srv *Server) AddEvent(jm utils.JSONMessage)
func (*Server) ContainerChanges ¶
func (*Server) ContainerDestroy ¶
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) ContainerLogs ¶ added in v0.11.0
func (*Server) ContainerPause ¶ added in v0.12.0
func (*Server) ContainerRestart ¶
func (*Server) ContainerUnpause ¶ added in v0.12.0
func (*Server) DeleteImage ¶
func (*Server) EvictListener ¶ added in v0.12.0
func (*Server) GetEvents ¶
func (srv *Server) GetEvents() []utils.JSONMessage
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.