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

Method Get

pkg/ring/ring.go:45–45  ·  view source on GitHub ↗

Get returns n (or more) instances which form the replicas for the given key. bufDescs, bufHosts and bufZones are slices to be overwritten for the return value to avoid memory allocation; can be nil, or created with ring.MakeBuffersForGet().

(key uint32, op Operation, bufDescs []InstanceDesc, bufHosts []string, bufZones map[string]int)

Source from the content-addressed store, hash-verified

43 // bufDescs, bufHosts and bufZones are slices to be overwritten for the return value
44 // to avoid memory allocation; can be nil, or created with ring.MakeBuffersForGet().
45 Get(key uint32, op Operation, bufDescs []InstanceDesc, bufHosts []string, bufZones map[string]int) (ReplicationSet, error)
46
47 // GetAllHealthy returns all healthy instances in the ring, for the given operation.
48 // This function doesn't check if the quorum is honored, so doesn't fail if the number

Callers 15

GetClientsForMethod · 0.95
mockBucketFunction · 0.65
createBackendRequestMethod · 0.65
TestProxy_PassthroughFunction · 0.65
getFieldNameFunction · 0.65
isFieldInlineFunction · 0.65
parseDocTagFunction · 0.65
TestRulerAPIFunction · 0.65
TestKVDeleteFunction · 0.65

Implementers 2

Ringpkg/ring/ring.go
RingMockpkg/ring/mock.go

Calls

no outgoing calls

Tested by 15

mockBucketFunction · 0.52
TestProxy_PassthroughFunction · 0.52
TestRulerAPIFunction · 0.52
TestKVDeleteFunction · 0.52
testMinioWorkingFunction · 0.52
TestScenarioFunction · 0.52
GetMethod · 0.52
getInstanceFromStoreFunction · 0.52
TestAutoForgetDelegateFunction · 0.52