Documentation ¶
Index ¶
- Variables
- func AddHost(resp http.ResponseWriter, req *http.Request)
- func CheckParams(params martini.Params) (*docker.Client, error)
- func CheckParamsWithId(params martini.Params) (*docker.Client, error)
- func DelContainerById(params martini.Params, resp http.ResponseWriter)
- func DelHost(req *http.Request, resp http.ResponseWriter)
- func DelImageById(params martini.Params, resp http.ResponseWriter)
- func GetClusterStatus(resp http.ResponseWriter)
- func GetHostStatus(params martini.Params, resp http.ResponseWriter)
- func GetHosts(resp http.ResponseWriter)
- func GetImages(params martini.Params, resp http.ResponseWriter)
- func InitAllListener()
- func InitEventListener(hostinfo *models.HostInfoBinding)
- func InspectContainerById(params martini.Params, resp http.ResponseWriter)
- func KillContainerById(params martini.Params, resp http.ResponseWriter)
- func ListContainers(params martini.Params, resp http.ResponseWriter)
- func PauseContainerById(params martini.Params, resp http.ResponseWriter)
- func RestartContainerById(params martini.Params, resp http.ResponseWriter)
- func StartContainerById(params martini.Params, req *http.Request, resp http.ResponseWriter)
- func StopContainerById(params martini.Params, resp http.ResponseWriter)
- func UnpauseContainerById(params martini.Params, resp http.ResponseWriter)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
IPregex *regexp.Regexp
)
Functions ¶
func CheckParams ¶
func CheckParamsWithId ¶
func DelContainerById ¶
func DelContainerById(params martini.Params, resp http.ResponseWriter)
remove container of host by id
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 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 ¶
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.
Click to show internal directories.
Click to hide internal directories.