Documentation
¶
Index ¶
- func RegisterRoutes(r chi.Router)
- type Controller
- func (cc *Controller) BatchRestart(c *response.Context)
- func (cc *Controller) BatchRestore(c *response.Context)
- func (cc *Controller) BatchStop(c *response.Context)
- func (cc *Controller) Event(c *response.Context)
- func (cc *Controller) HPA(c *response.Context)
- func (cc *Controller) Restart(c *response.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterRoutes ¶ added in v0.0.145
Types ¶
type Controller ¶ added in v0.0.145
type Controller struct{}
func (*Controller) BatchRestart ¶ added in v0.0.145
func (cc *Controller) BatchRestart(c *response.Context)
BatchRestart 批量重启ReplicaSet @Summary 批量重启ReplicaSet @Security BearerAuth @Param cluster path string true "集群名称" @Param body body object true "包含name_list和ns_list的请求体" @Success 200 {object} string @Router /k8s/cluster/{cluster}/replicaset/batch/restart [post]
func (*Controller) BatchRestore ¶ added in v0.0.145
func (cc *Controller) BatchRestore(c *response.Context)
BatchRestore 批量恢复ReplicaSet @Summary 批量恢复ReplicaSet @Security BearerAuth @Param cluster path string true "集群名称" @Param body body object true "包含name_list和ns_list的请求体" @Success 200 {object} string @Router /k8s/cluster/{cluster}/replicaset/batch/restore [post]
func (*Controller) BatchStop ¶ added in v0.0.145
func (cc *Controller) BatchStop(c *response.Context)
BatchStop 批量停止ReplicaSet @Summary 批量停止ReplicaSet @Security BearerAuth @Param cluster path string true "集群名称" @Param body body object true "包含name_list和ns_list的请求体" @Success 200 {object} string @Router /k8s/cluster/{cluster}/replicaset/batch/stop [post]
func (*Controller) Event ¶ added in v0.0.145
func (cc *Controller) Event(c *response.Context)
Event 获取ReplicaSet相关事件列表 @Summary 获取ReplicaSet相关事件列表 @Security BearerAuth @Param cluster path string true "集群名称" @Param ns path string true "命名空间" @Param name path string true "ReplicaSet名称" @Success 200 {object} string @Router /k8s/cluster/{cluster}/replicaset/ns/{ns}/name/{name}/events/all [get]
func (*Controller) HPA ¶ added in v0.0.145
func (cc *Controller) HPA(c *response.Context)
HPA 获取ReplicaSet相关HPA列表 @Summary 获取ReplicaSet相关HPA列表 @Security BearerAuth @Param cluster path string true "集群名称" @Param ns path string true "命名空间" @Param name path string true "ReplicaSet名称" @Success 200 {object} string @Router /k8s/cluster/{cluster}/replicaset/ns/{ns}/name/{name}/hpa [get]
func (*Controller) Restart ¶ added in v0.0.145
func (cc *Controller) Restart(c *response.Context)
Restart 重启指定的ReplicaSet @Summary 重启指定的ReplicaSet @Security BearerAuth @Param cluster path string true "集群名称" @Param ns path string true "命名空间" @Param name path string true "ReplicaSet名称" @Success 200 {object} string @Router /k8s/cluster/{cluster}/replicaset/ns/{ns}/name/{name}/restart [post]