server

package
v0.6.6-0...-d48492a Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2014 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Overview

DEPRECATION NOTICE. PLEASE DO NOT ADD ANYTHING TO THIS FILE.

For additional commments see server/server.go

DEPRECATION NOTICE. PLEASE DO NOT ADD ANYTHING TO THIS FILE.

For additional commments see server/server.go

DEPRECATION NOTICE. PLEASE DO NOT ADD ANYTHING TO THIS FILE.

For additional commments see server/server.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitPidfile

func InitPidfile(job *engine.Job) engine.Status

func InitServer

func InitServer(job *engine.Job) engine.Status

jobInitApi runs the remote api server `srv` as a daemon, Only one api server can run at the same time - this is enforced by a pidfile. The signals SIGINT, SIGQUIT and SIGTERM are intercepted for cleanup.

Types

type Server

type Server struct {
	sync.RWMutex

	Eng *engine.Engine
	// contains filtered or unexported fields
}

func NewServer

func NewServer(eng *engine.Engine, config *daemonconfig.Config) (*Server, error)

func (*Server) AddEvent

func (srv *Server) AddEvent(jm utils.JSONMessage)

func (*Server) Build

func (srv *Server) Build(job *engine.Job) engine.Status

func (*Server) Close

func (srv *Server) Close() error

func (*Server) DeleteImage

func (srv *Server) DeleteImage(name string, imgs *engine.Table, first, force, noprune bool) error

func (*Server) DockerInfo

func (srv *Server) DockerInfo(job *engine.Job) engine.Status

func (*Server) Events

func (srv *Server) Events(job *engine.Job) engine.Status

func (*Server) GetEvents

func (srv *Server) GetEvents() []utils.JSONMessage

func (*Server) ImageDelete

func (srv *Server) ImageDelete(job *engine.Job) engine.Status

func (*Server) ImageExport

func (srv *Server) ImageExport(job *engine.Job) engine.Status

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) ImageHistory

func (srv *Server) ImageHistory(job *engine.Job) engine.Status

func (*Server) ImageImport

func (srv *Server) ImageImport(job *engine.Job) engine.Status

func (*Server) ImageLoad

func (srv *Server) ImageLoad(job *engine.Job) engine.Status

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) ImagePull

func (srv *Server) ImagePull(job *engine.Job) engine.Status

func (*Server) ImagePush

func (srv *Server) ImagePush(job *engine.Job) engine.Status

FIXME: Allow to interrupt current push when new push of same image is done.

func (*Server) ImageTag

func (srv *Server) ImageTag(job *engine.Job) engine.Status

func (*Server) Images

func (srv *Server) Images(job *engine.Job) engine.Status

func (*Server) ImagesViz

func (srv *Server) ImagesViz(job *engine.Job) engine.Status

func (*Server) IsRunning

func (srv *Server) IsRunning() bool

func (*Server) Log

func (srv *Server) Log(job *engine.Job) engine.Status

FIXME: this is a shim to allow breaking up other parts of Server without dragging the sphagetti dependency along.

func (*Server) LogEvent

func (srv *Server) LogEvent(action, id, from string) *utils.JSONMessage

func (*Server) SetRunning

func (srv *Server) SetRunning(status bool)

Jump to

Keyboard shortcuts

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