func init() { api.RegisterHandler("/node", "GET", api.AdminRequiredHandler(listNodeHandler)) api.RegisterHandler("/node/apps/:appname/containers", "GET", api.AdminRequiredHandler(listContainersHandler)) api.RegisterHandler("/node/:address/containers", "GET", api.AdminRequiredHandler(listContainersHandler)) api.RegisterAdminHandler("/node/add", "POST", api.Handler(addNodeHandler)) api.RegisterAdminHandler("/node/remove", "DELETE", api.Handler(removeNodeHandler)) api.RegisterAdminHandler("/containers/move", "POST", api.Handler(moveContainersHandler)) }
func init() { api.RegisterHandler("/node", "GET", api.AdminRequiredHandler(listNodeHandler)) api.RegisterHandler("/node/apps/:appname/containers", "GET", api.AdminRequiredHandler(listContainersHandler)) api.RegisterHandler("/node/:address/containers", "GET", api.AdminRequiredHandler(listContainersHandler)) api.RegisterHandler("/node", "POST", api.AdminRequiredHandler(addNodeHandler)) api.RegisterHandler("/node", "DELETE", api.AdminRequiredHandler(removeNodeHandler)) api.RegisterAdminHandler("/container/:id/move", "POST", api.Handler(moveContainerHandler)) api.RegisterAdminHandler("/containers/move", "POST", api.Handler(moveContainersHandler)) api.RegisterAdminHandler("/containers/rebalance", "POST", api.Handler(rebalanceContainersHandler)) api.RegisterHandler("/pool", "GET", api.AdminRequiredHandler(listPoolHandler)) api.RegisterHandler("/pool", "POST", api.AdminRequiredHandler(addPoolHandler)) api.RegisterHandler("/pool", "DELETE", api.AdminRequiredHandler(removePoolHandler)) api.RegisterHandler("/pool/team", "POST", api.AdminRequiredHandler(addTeamToPoolHandler)) api.RegisterHandler("/pool/team", "DELETE", api.AdminRequiredHandler(removeTeamToPoolHandler)) }
func init() { api.RegisterHandler("/docker/node", "GET", api.AdminRequiredHandler(listNodeHandler)) api.RegisterHandler("/docker/node/apps/{appname}/containers", "GET", api.AdminRequiredHandler(listContainersHandler)) api.RegisterHandler("/docker/node/{address}/containers", "GET", api.AdminRequiredHandler(listContainersHandler)) api.RegisterHandler("/docker/node", "POST", api.AdminRequiredHandler(addNodeHandler)) api.RegisterHandler("/docker/node", "PUT", api.AdminRequiredHandler(updateNodeHandler)) api.RegisterHandler("/docker/node", "DELETE", api.AdminRequiredHandler(removeNodeHandler)) api.RegisterHandler("/docker/container/{id}/move", "POST", api.AdminRequiredHandler(moveContainerHandler)) api.RegisterHandler("/docker/containers/move", "POST", api.AdminRequiredHandler(moveContainersHandler)) api.RegisterHandler("/docker/containers/rebalance", "POST", api.AdminRequiredHandler(rebalanceContainersHandler)) api.RegisterHandler("/docker/fix-containers", "POST", api.AdminRequiredHandler(fixContainersHandler)) api.RegisterHandler("/docker/healing", "GET", api.AdminRequiredHandler(healingHistoryHandler)) api.RegisterHandler("/docker/autoscale", "GET", api.AdminRequiredHandler(autoScaleHistoryHandler)) api.RegisterHandler("/docker/autoscale/config", "GET", api.AdminRequiredHandler(autoScaleGetConfig)) api.RegisterHandler("/docker/autoscale/run", "POST", api.AdminRequiredHandler(autoScaleRunHandler)) api.RegisterHandler("/docker/autoscale/rules", "GET", api.AdminRequiredHandler(autoScaleListRules)) api.RegisterHandler("/docker/autoscale/rules", "POST", api.AdminRequiredHandler(autoScaleSetRule)) api.RegisterHandler("/docker/autoscale/rules/", "DELETE", api.AdminRequiredHandler(autoScaleDeleteRule)) api.RegisterHandler("/docker/autoscale/rules/{id}", "DELETE", api.AdminRequiredHandler(autoScaleDeleteRule)) api.RegisterHandler("/docker/bs/upgrade", "POST", api.AdminRequiredHandler(bsUpgradeHandler)) api.RegisterHandler("/docker/bs/env", "POST", api.AdminRequiredHandler(bsEnvSetHandler)) api.RegisterHandler("/docker/bs", "GET", api.AdminRequiredHandler(bsConfigGetHandler)) }
func init() { api.RegisterHandler("/docker/node", "GET", api.AdminRequiredHandler(listNodeHandler)) api.RegisterHandler("/docker/node/apps/{appname}/containers", "GET", api.AdminRequiredHandler(listContainersHandler)) api.RegisterHandler("/docker/node/{address}/containers", "GET", api.AdminRequiredHandler(listContainersHandler)) api.RegisterHandler("/docker/node", "POST", api.AdminRequiredHandler(addNodeHandler)) api.RegisterHandler("/docker/node", "DELETE", api.AdminRequiredHandler(removeNodeHandler)) api.RegisterHandler("/docker/container/{id}/move", "POST", api.AdminRequiredHandler(moveContainerHandler)) api.RegisterHandler("/docker/containers/move", "POST", api.AdminRequiredHandler(moveContainersHandler)) api.RegisterHandler("/docker/containers/rebalance", "POST", api.AdminRequiredHandler(rebalanceContainersHandler)) api.RegisterHandler("/docker/pool", "GET", api.AdminRequiredHandler(listPoolHandler)) api.RegisterHandler("/docker/pool", "POST", api.AdminRequiredHandler(addPoolHandler)) api.RegisterHandler("/docker/pool", "DELETE", api.AdminRequiredHandler(removePoolHandler)) api.RegisterHandler("/docker/pool/team", "POST", api.AdminRequiredHandler(addTeamToPoolHandler)) api.RegisterHandler("/docker/pool/team", "DELETE", api.AdminRequiredHandler(removeTeamToPoolHandler)) api.RegisterHandler("/docker/fix-containers", "POST", api.AdminRequiredHandler(fixContainersHandler)) api.RegisterHandler("/docker/ssh/{container_id}", "GET", api.AdminRequiredHandler(sshToContainerHandler)) }