Documentation ¶
Index ¶
- func CompactedMetaFileName(blockID uuid.UUID, tenantID string) string
- func FileExists(filename string) error
- func MetaFileName(blockID uuid.UUID, tenantID string) string
- func ObjectFileName(blockID uuid.UUID, tenantID string, name string) string
- func RootPath(blockID uuid.UUID, tenantID string) string
- type MockReader
- func (m *MockReader) BlockMeta(ctx context.Context, blockID uuid.UUID, tenantID string) (*backend.BlockMeta, error)
- func (m *MockReader) Blocks(ctx context.Context, tenantID string) ([]uuid.UUID, error)
- func (m *MockReader) Read(ctx context.Context, name string, blockID uuid.UUID, tenantID string) ([]byte, error)
- func (m *MockReader) ReadRange(ctx context.Context, name string, blockID uuid.UUID, tenantID string, ...) error
- func (m *MockReader) ReadReader(ctx context.Context, name string, blockID uuid.UUID, tenantID string) (io.ReadCloser, int64, error)
- func (m *MockReader) Shutdown()
- func (m *MockReader) Tenants(ctx context.Context) ([]string, error)
- type MockWriter
- func (m *MockWriter) Append(ctx context.Context, name string, blockID uuid.UUID, tenantID string, ...) (backend.AppendTracker, error)
- func (m *MockWriter) CloseAppend(ctx context.Context, tracker backend.AppendTracker) error
- func (m *MockWriter) Write(ctx context.Context, name string, blockID uuid.UUID, tenantID string, ...) error
- func (m *MockWriter) WriteBlockMeta(ctx context.Context, meta *backend.BlockMeta) error
- func (m *MockWriter) WriteReader(ctx context.Context, name string, blockID uuid.UUID, tenantID string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileExists ¶
Types ¶
type MockReader ¶ added in v0.5.0
type MockReader struct { T []string B []uuid.UUID // blocks M *backend.BlockMeta // meta R []byte // read Range []byte // ReadRange ReadFn func(name string, blockID uuid.UUID, tenantID string) ([]byte, error) }
func (*MockReader) ReadReader ¶ added in v0.7.0
func (*MockReader) Shutdown ¶ added in v0.5.0
func (m *MockReader) Shutdown()
type MockWriter ¶ added in v0.5.0
type MockWriter struct { }
func (*MockWriter) Append ¶ added in v0.5.0
func (m *MockWriter) Append(ctx context.Context, name string, blockID uuid.UUID, tenantID string, tracker backend.AppendTracker, buffer []byte) (backend.AppendTracker, error)
func (*MockWriter) CloseAppend ¶ added in v0.5.0
func (m *MockWriter) CloseAppend(ctx context.Context, tracker backend.AppendTracker) error
func (*MockWriter) WriteBlockMeta ¶ added in v0.5.0
Click to show internal directories.
Click to hide internal directories.