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