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

Method List

pkg/ring/kv/multi.go:287–290  ·  view source on GitHub ↗

List is a part of the kv.Client interface.

(ctx context.Context, prefix string)

Source from the content-addressed store, hash-verified

285
286// List is a part of the kv.Client interface.
287func (m *MultiClient) List(ctx context.Context, prefix string) ([]string, error) {
288 _, kv := m.getPrimaryClient()
289 return kv.client.List(ctx, prefix)
290}
291
292// Get is a part of kv.Client interface.
293func (m *MultiClient) Get(ctx context.Context, key string) (any, error) {

Callers

nothing calls this directly

Calls 2

getPrimaryClientMethod · 0.95
ListMethod · 0.65

Tested by

no test coverage detected