MCPcopy Create free account
hub / github.com/apache/kvrocks-controller / Remove

Method Remove

server/api/cluster.go:118–127  ·  view source on GitHub ↗
(c *gin.Context)

Source from the content-addressed store, hash-verified

116}
117
118func (handler *ClusterHandler) Remove(c *gin.Context) {
119 namespace := c.Param("namespace")
120 cluster := c.Param("cluster")
121 err := handler.s.RemoveCluster(c, namespace, cluster)
122 if err != nil {
123 helper.ResponseError(c, err)
124 return
125 }
126 helper.ResponseNoContent(c)
127}
128
129func (handler *ClusterHandler) MigrateSlot(c *gin.Context) {
130 namespace := c.Param("namespace")

Callers 1

TestClusterBasicsFunction · 0.95

Calls 3

ResponseErrorFunction · 0.92
ResponseNoContentFunction · 0.92
RemoveClusterMethod · 0.65

Tested by 1

TestClusterBasicsFunction · 0.76