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

Method SetCluster

controller/cluster_test.go:72–77  ·  view source on GitHub ↗
(ctx context.Context, ns string, cluster *store.Cluster)

Source from the content-addressed store, hash-verified

70}
71
72func (s *MockClusterStore) SetCluster(ctx context.Context, ns string, cluster *store.Cluster) error {
73 s.mu.Lock()
74 defer s.mu.Unlock()
75 s.clusters[cluster.Name] = cluster
76 return nil
77}
78
79func (s *MockClusterStore) RemoveCluster(ctx context.Context, ns, cluster string) error {
80 s.mu.Lock()

Callers 1

UpdateClusterMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected