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