MCPcopy
hub / github.com/grafana/tempo / MockRawReader

Struct MockRawReader

tempodb/backend/mocks.go:24–35  ·  view source on GitHub ↗

MockRawReader

Source from the content-addressed store, hash-verified

22
23// MockRawReader
24type MockRawReader struct {
25 L []string
26 ListFn func(ctx context.Context, keypath KeyPath) ([]string, error)
27 ListBlocksFn func(ctx context.Context, tenant string) ([]uuid.UUID, []uuid.UUID, error)
28 R []byte // read
29 Range []byte // ReadRange
30 ReadFn func(ctx context.Context, name string, keypath KeyPath, cacheInfo *CacheInfo) (io.ReadCloser, int64, error)
31 DeleteResult []string
32
33 BlockIDs []uuid.UUID
34 CompactedBlockIDs []uuid.UUID
35}
36
37func (m *MockRawReader) List(ctx context.Context, keypath KeyPath) ([]string, error) {
38 if m.ListFn != nil {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected