Documentation ¶
Index ¶
- type KubeNamespaceController
- func (c *KubeNamespaceController) Create()
- func (c *KubeNamespaceController) Get()
- func (c *KubeNamespaceController) List()
- func (c *KubeNamespaceController) Prepare()
- func (c *KubeNamespaceController) Resources()
- func (c *KubeNamespaceController) Statistics()
- func (c *KubeNamespaceController) URLMapping()
- func (c *KubeNamespaceController) Update()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KubeNamespaceController ¶
type KubeNamespaceController struct {
base.APIController
}
func (*KubeNamespaceController) Create ¶ added in v1.2.0
func (c *KubeNamespaceController) Create()
@Title Create @Description create the namespace @router /:name/clusters/:cluster [post]
func (*KubeNamespaceController) Get ¶ added in v1.2.0
func (c *KubeNamespaceController) Get()
@Title Get namespace info @Description get one namespace detail @Param cluster path string true "the cluster name" @Param namespace path string true "the namespace name" @Success 200 {object} common.Page success @router /:name/clusters/:cluster [get]
func (*KubeNamespaceController) List ¶ added in v1.2.0
func (c *KubeNamespaceController) List()
@Title List namespace @Description get all namespace @Param cluster path string true "the cluster name" @Success 200 {object} common.Page success @router /clusters/:cluster [get]
func (*KubeNamespaceController) Prepare ¶
func (c *KubeNamespaceController) Prepare()
func (*KubeNamespaceController) Resources ¶
func (c *KubeNamespaceController) Resources()
@Title Get namespace resource statistics @Description Get namespace resource statistics @Param app query string false "The app Name" @Param nid path string true "The namespace id" @Success 200 return ok success @router /:id([0-9]+)/resources [get]
func (*KubeNamespaceController) Statistics ¶
func (c *KubeNamespaceController) Statistics()
@Title Get namespace resource statistics 2.0 @Description Get namespace resource statistics for report @Param app query string false "The app Name" @Param nid path string true "The namespace id" @Success 200 return ok success @router /:id([0-9]+)/statistics [get]
func (*KubeNamespaceController) URLMapping ¶
func (c *KubeNamespaceController) URLMapping()
func (*KubeNamespaceController) Update ¶ added in v1.2.0
func (c *KubeNamespaceController) Update()
@Title Update @Description update the Namespace @router /:name/clusters/:cluster [put]