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