Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KubeDeploymentController ¶
type KubeDeploymentController struct {
base.APIController
}
func (*KubeDeploymentController) Deploy ¶
func (c *KubeDeploymentController) Deploy()
@Title deploy @Description deploy tpl @Param body body string true "The tpl content" @Success 200 return ok success @router /:deploymentId([0-9]+)/tpls/:tplId([0-9]+)/clusters/:cluster [post]
func (*KubeDeploymentController) Get ¶
func (c *KubeDeploymentController) Get()
@Title Get @Description find Deployment by cluster @Success 200 {object} models.Deployment success @router /:deployment/namespaces/:namespace/clusters/:cluster [get]
func (*KubeDeploymentController) Offline ¶
func (c *KubeDeploymentController) Offline()
@Title Delete @Description delete the Deployment @Param cluster path string true "the cluster want to delete" @Param namespace path string true "the namespace want to delete" @Param deployment path string true "the deployment name want to delete" @Success 200 {string} delete success! @router /:deployment/namespaces/:namespace/clusters/:cluster [delete]
func (*KubeDeploymentController) Prepare ¶
func (c *KubeDeploymentController) Prepare()
func (*KubeDeploymentController) URLMapping ¶
func (c *KubeDeploymentController) URLMapping()