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

Method existsCluster

store/store.go:151–153  ·  view source on GitHub ↗
(ctx context.Context, ns, cluster string)

Source from the content-addressed store, hash-verified

149}
150
151func (s *ClusterStore) existsCluster(ctx context.Context, ns, cluster string) (bool, error) {
152 return s.e.Exists(ctx, buildClusterKey(ns, cluster))
153}
154
155func (s *ClusterStore) GetCluster(ctx context.Context, ns, cluster string) (*Cluster, error) {
156 lock := s.getLock(ns, cluster)

Callers 2

CreateClusterMethod · 0.95
RemoveClusterMethod · 0.95

Calls 2

buildClusterKeyFunction · 0.85
ExistsMethod · 0.65

Tested by

no test coverage detected