Documentation ¶
Index ¶
- Variables
- func AttachJobs(eng *engine.Engine) error
- func AttachProfiler(router *mux.Router)
- func Call(method string, ship types.Ship, path string, data interface{}, ...) ([]byte, int, error)
- func ContainerAttach(job *engine.Job) engine.Status
- func ContainerCreate(job *engine.Job) engine.Status
- func ContainerDelete(job *engine.Job) engine.Status
- func ContainerPause(job *engine.Job) engine.Status
- func ContainerRestart(job *engine.Job) engine.Status
- func ContainerStart(job *engine.Job) engine.Status
- func ContainerStop(job *engine.Job) engine.Status
- func ContainerUnpause(job *engine.Job) engine.Status
- func Containers(job *engine.Job) engine.Status
- func DeleteShips(eng *engine.Engine, version version.Version, w http.ResponseWriter, ...) error
- func ErrConnectionRefused(host string) error
- func GetCatchAll(eng *engine.Engine, version version.Version, w http.ResponseWriter, ...) error
- func GetPlansJSON(eng *engine.Engine, version version.Version, w http.ResponseWriter, ...) error
- func GetShipsJSON(eng *engine.Engine, version version.Version, w http.ResponseWriter, ...) error
- func ListenAndServe(proto, addr string, job *engine.Job) error
- func PostContainersCreate(eng *engine.Engine, version version.Version, w http.ResponseWriter, ...) error
- func PostShipsCreate(eng *engine.Engine, version version.Version, w http.ResponseWriter, ...) error
- func ServeApi(job *engine.Job) engine.Status
- func ServeFd(addr string, handle http.Handler) error
- type HttpApiFunc
Constants ¶
This section is empty.
Variables ¶
View Source
var ServerRoutes = map[string]map[string]HttpApiFunc{ "GET": { "/_ping": GetCatchAll, "/events": GetCatchAll, "/info": getInfo, "/version": GetCatchAll, "/images/json": GetCatchAll, "/images/viz": GetCatchAll, "/images/search": GetCatchAll, "/images/{name:.*}/get": GetCatchAll, "/images/{name:.*}/history": GetCatchAll, "/images/{name:.*}/json": GetCatchAll, "/containers/ps": getContainersJSON, "/containers/json": getContainersJSON, "/containers/{name:.*}/export": GetCatchAll, "/containers/{name:.*}/changes": GetCatchAll, "/containers/{name:.*}/json": GetCatchAll, "/containers/{name:.*}/top": GetCatchAll, "/containers/{name:.*}/logs": GetCatchAll, "/containers/{name:.*}/attach/ws": GetCatchAll, "/ships/json": GetShipsJSON, "/plans/json": GetPlansJSON, }, "POST": { "/auth": GetCatchAll, "/commit": GetCatchAll, "/build": GetCatchAll, "/images/create": GetCatchAll, "/images/load": GetCatchAll, "/images/{name:.*}/push": GetCatchAll, "/images/{name:.*}/tag": GetCatchAll, "/containers/create": PostContainersCreate, "/ships/create": PostShipsCreate, "/containers/{name:.*}/kill": GetCatchAll, "/containers/{name:.*}/pause": GetCatchAll, "/containers/{name:.*}/unpause": GetCatchAll, "/containers/{name:.*}/restart": GetCatchAll, "/containers/{name:.*}/start": postContainersStart, "/containers/{name:.*}/stop": postContainersStop, "/containers/{name:.*}/wait": GetCatchAll, "/containers/{name:.*}/resize": GetCatchAll, "/containers/{name:.*}/attach": postContainersAttach, "/containers/{name:.*}/copy": GetCatchAll, }, "DELETE": { "/containers/{name:.*}": GetCatchAll, "/images/{name:.*}": GetCatchAll, "/ships/{name:.*}": DeleteShips, }, "OPTIONS": { "": GetCatchAll, }, }
Functions ¶
func AttachJobs ¶
func AttachProfiler ¶
func DeleteShips ¶
func ErrConnectionRefused ¶
func GetCatchAll ¶
func GetPlansJSON ¶
func GetShipsJSON ¶
func ListenAndServe ¶
ListenAndServe sets up the required http.Server and gets it listening for each addr passed in and does protocol specific checking.
func PostContainersCreate ¶
func PostShipsCreate ¶
Types ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.