MCPcopy
hub / github.com/grafana/dskit / GetInstanceState

Method GetInstanceState

ring/util_test.go:68–71  ·  view source on GitHub ↗
(instanceID string)

Source from the content-addressed store, hash-verified

66}
67
68func (r *RingMock) GetInstanceState(instanceID string) (InstanceState, error) {
69 args := r.Called(instanceID)
70 return args.Get(0).(InstanceState), args.Error(1)
71}
72
73func (r *RingMock) ShuffleShardWithLookback(identifier string, size int, lookbackPeriod time.Duration, now time.Time) ReadRing {
74 args := r.Called(identifier, size, lookbackPeriod, now)

Callers

nothing calls this directly

Calls 2

GetMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected