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

Method Get

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

Source from the content-addressed store, hash-verified

68}
69
70func (handler *ClusterHandler) Get(c *gin.Context) {
71 cluster, _ := c.MustGet(consts.ContextKeyCluster).(*store.Cluster)
72 helper.ResponseOK(c, gin.H{"cluster": cluster})
73}
74
75func (handler *ClusterHandler) Create(c *gin.Context) {
76 namespace := c.Param("namespace")

Callers 1

TestClusterBasicsFunction · 0.95

Calls 1

ResponseOKFunction · 0.92

Tested by 1

TestClusterBasicsFunction · 0.76