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

Method ExistsNamespace

store/store.go:89–91  ·  view source on GitHub ↗

ExistsNamespace return an indicator whether the specified namespace exists

(ctx context.Context, ns string)

Source from the content-addressed store, hash-verified

87
88// ExistsNamespace return an indicator whether the specified namespace exists
89func (s *ClusterStore) ExistsNamespace(ctx context.Context, ns string) (bool, error) {
90 return s.e.Exists(ctx, appendPrefix(ns))
91}
92
93// CreateNamespace will create a namespace for clusters
94func (s *ClusterStore) CreateNamespace(ctx context.Context, ns string) error {

Callers 3

CreateNamespaceMethod · 0.95
RemoveNamespaceMethod · 0.95
TestClusterStoreFunction · 0.95

Calls 2

appendPrefixFunction · 0.85
ExistsMethod · 0.65

Tested by 1

TestClusterStoreFunction · 0.76