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