controllers

package
v0.0.0-...-8cb1887 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2014 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	IPregex *regexp.Regexp
)

Functions

func AddHost

func AddHost(resp http.ResponseWriter, req *http.Request)

func CheckParams

func CheckParams(params martini.Params) (*docker.Client, error)

func CheckParamsWithId

func CheckParamsWithId(params martini.Params) (*docker.Client, error)

func DelContainerById

func DelContainerById(params martini.Params, resp http.ResponseWriter)

remove container of host by id

func DelHost

func DelHost(req *http.Request, resp http.ResponseWriter)

func DelImageById

func DelImageById(params martini.Params, resp http.ResponseWriter)

func GetClusterStatus

func GetClusterStatus(resp http.ResponseWriter)

func GetHostStatus

func GetHostStatus(params martini.Params, resp http.ResponseWriter)

func GetHosts

func GetHosts(resp http.ResponseWriter)

func GetImages

func GetImages(params martini.Params, resp http.ResponseWriter)

func InitAllListener

func InitAllListener()

func InitEventListener

func InitEventListener(hostinfo *models.HostInfoBinding)

func InspectContainerById

func InspectContainerById(params martini.Params, resp http.ResponseWriter)

inspect container of host by id

func KillContainerById

func KillContainerById(params martini.Params, resp http.ResponseWriter)

kill container of host by id

func ListContainers

func ListContainers(params martini.Params, resp http.ResponseWriter)

list containers of host

func PauseContainerById

func PauseContainerById(params martini.Params, resp http.ResponseWriter)

pause container of host by id

func RestartContainerById

func RestartContainerById(params martini.Params, resp http.ResponseWriter)

restart container of host by id

func StartContainerById

func StartContainerById(params martini.Params, req *http.Request, resp http.ResponseWriter)

start container of host by id

func StopContainerById

func StopContainerById(params martini.Params, resp http.ResponseWriter)

stop container of host by id

func UnpauseContainerById

func UnpauseContainerById(params martini.Params, resp http.ResponseWriter)

unpause container of host by id

Types

This section is empty.

Jump to

Keyboard shortcuts

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