MCPcopy Create free account
hub / github.com/cortexproject/cortex / PrefixClient

Function PrefixClient

pkg/ring/kv/prefix.go:16–18  ·  view source on GitHub ↗

PrefixClient takes a KVClient and forces a prefix on all its operations.

(client Client, prefix string)

Source from the content-addressed store, hash-verified

14
15// PrefixClient takes a KVClient and forces a prefix on all its operations.
16func PrefixClient(client Client, prefix string) Client {
17 return &prefixedKVClient{prefix, client}
18}
19
20// List returns a list of keys under a given prefix.
21func (c *prefixedKVClient) List(ctx context.Context, prefix string) ([]string, error) {

Callers 10

TestHAClustersLimitFunction · 0.92
TestCheckReplicaCleanupFunction · 0.92
prepareFunction · 0.92
createClientFunction · 0.85

Calls

no outgoing calls