Documentation ¶
Index ¶
- type MockStore
- func (_m *MockStore) CreateBuckets(_a0 *bbolt.Tx) error
- func (_m *MockStore) DeleteBlockList(_a0 *bbolt.Tx, _a1 store.PartitionKey, _a2 *metastorev1.BlockList) error
- func (_m *MockStore) EXPECT() *MockStore_Expecter
- func (_m *MockStore) ListPartitions(_a0 *bbolt.Tx) ([]*store.Partition, error)
- func (_m *MockStore) LoadTenantShard(_a0 *bbolt.Tx, _a1 store.PartitionKey, _a2 string, _a3 uint32) (*store.TenantShard, error)
- func (_m *MockStore) StoreBlock(tx *bbolt.Tx, shard *store.TenantShard, md *metastorev1.BlockMeta) error
- type MockStore_CreateBuckets_Call
- type MockStore_DeleteBlockList_Call
- func (_c *MockStore_DeleteBlockList_Call) Return(_a0 error) *MockStore_DeleteBlockList_Call
- func (_c *MockStore_DeleteBlockList_Call) Run(run func(_a0 *bbolt.Tx, _a1 store.PartitionKey, _a2 *metastorev1.BlockList)) *MockStore_DeleteBlockList_Call
- func (_c *MockStore_DeleteBlockList_Call) RunAndReturn(run func(*bbolt.Tx, store.PartitionKey, *metastorev1.BlockList) error) *MockStore_DeleteBlockList_Call
- type MockStore_Expecter
- func (_e *MockStore_Expecter) CreateBuckets(_a0 interface{}) *MockStore_CreateBuckets_Call
- func (_e *MockStore_Expecter) DeleteBlockList(_a0 interface{}, _a1 interface{}, _a2 interface{}) *MockStore_DeleteBlockList_Call
- func (_e *MockStore_Expecter) ListPartitions(_a0 interface{}) *MockStore_ListPartitions_Call
- func (_e *MockStore_Expecter) LoadTenantShard(_a0 interface{}, _a1 interface{}, _a2 interface{}, _a3 interface{}) *MockStore_LoadTenantShard_Call
- func (_e *MockStore_Expecter) StoreBlock(tx interface{}, shard interface{}, md interface{}) *MockStore_StoreBlock_Call
- type MockStore_ListPartitions_Call
- func (_c *MockStore_ListPartitions_Call) Return(_a0 []*store.Partition, _a1 error) *MockStore_ListPartitions_Call
- func (_c *MockStore_ListPartitions_Call) Run(run func(_a0 *bbolt.Tx)) *MockStore_ListPartitions_Call
- func (_c *MockStore_ListPartitions_Call) RunAndReturn(run func(*bbolt.Tx) ([]*store.Partition, error)) *MockStore_ListPartitions_Call
- type MockStore_LoadTenantShard_Call
- func (_c *MockStore_LoadTenantShard_Call) Return(_a0 *store.TenantShard, _a1 error) *MockStore_LoadTenantShard_Call
- func (_c *MockStore_LoadTenantShard_Call) Run(run func(_a0 *bbolt.Tx, _a1 store.PartitionKey, _a2 string, _a3 uint32)) *MockStore_LoadTenantShard_Call
- func (_c *MockStore_LoadTenantShard_Call) RunAndReturn(...) *MockStore_LoadTenantShard_Call
- type MockStore_StoreBlock_Call
- func (_c *MockStore_StoreBlock_Call) Return(_a0 error) *MockStore_StoreBlock_Call
- func (_c *MockStore_StoreBlock_Call) Run(run func(tx *bbolt.Tx, shard *store.TenantShard, md *metastorev1.BlockMeta)) *MockStore_StoreBlock_Call
- func (_c *MockStore_StoreBlock_Call) RunAndReturn(run func(*bbolt.Tx, *store.TenantShard, *metastorev1.BlockMeta) error) *MockStore_StoreBlock_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockStore ¶
MockStore is an autogenerated mock type for the Store type
func NewMockStore ¶
NewMockStore creates a new instance of MockStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockStore) CreateBuckets ¶ added in v1.11.0
CreateBuckets provides a mock function with given fields: _a0
func (*MockStore) DeleteBlockList ¶ added in v1.11.0
func (_m *MockStore) DeleteBlockList(_a0 *bbolt.Tx, _a1 store.PartitionKey, _a2 *metastorev1.BlockList) error
DeleteBlockList provides a mock function with given fields: _a0, _a1, _a2
func (*MockStore) EXPECT ¶
func (_m *MockStore) EXPECT() *MockStore_Expecter
func (*MockStore) ListPartitions ¶
ListPartitions provides a mock function with given fields: _a0
func (*MockStore) LoadTenantShard ¶ added in v1.11.0
func (_m *MockStore) LoadTenantShard(_a0 *bbolt.Tx, _a1 store.PartitionKey, _a2 string, _a3 uint32) (*store.TenantShard, error)
LoadTenantShard provides a mock function with given fields: _a0, _a1, _a2, _a3
func (*MockStore) StoreBlock ¶ added in v1.11.0
func (_m *MockStore) StoreBlock(tx *bbolt.Tx, shard *store.TenantShard, md *metastorev1.BlockMeta) error
StoreBlock provides a mock function with given fields: tx, shard, md
type MockStore_CreateBuckets_Call ¶ added in v1.11.0
MockStore_CreateBuckets_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateBuckets'
func (*MockStore_CreateBuckets_Call) Return ¶ added in v1.11.0
func (_c *MockStore_CreateBuckets_Call) Return(_a0 error) *MockStore_CreateBuckets_Call
func (*MockStore_CreateBuckets_Call) Run ¶ added in v1.11.0
func (_c *MockStore_CreateBuckets_Call) Run(run func(_a0 *bbolt.Tx)) *MockStore_CreateBuckets_Call
func (*MockStore_CreateBuckets_Call) RunAndReturn ¶ added in v1.11.0
func (_c *MockStore_CreateBuckets_Call) RunAndReturn(run func(*bbolt.Tx) error) *MockStore_CreateBuckets_Call
type MockStore_DeleteBlockList_Call ¶ added in v1.11.0
MockStore_DeleteBlockList_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteBlockList'
func (*MockStore_DeleteBlockList_Call) Return ¶ added in v1.11.0
func (_c *MockStore_DeleteBlockList_Call) Return(_a0 error) *MockStore_DeleteBlockList_Call
func (*MockStore_DeleteBlockList_Call) Run ¶ added in v1.11.0
func (_c *MockStore_DeleteBlockList_Call) Run(run func(_a0 *bbolt.Tx, _a1 store.PartitionKey, _a2 *metastorev1.BlockList)) *MockStore_DeleteBlockList_Call
func (*MockStore_DeleteBlockList_Call) RunAndReturn ¶ added in v1.11.0
func (_c *MockStore_DeleteBlockList_Call) RunAndReturn(run func(*bbolt.Tx, store.PartitionKey, *metastorev1.BlockList) error) *MockStore_DeleteBlockList_Call
type MockStore_Expecter ¶
type MockStore_Expecter struct {
// contains filtered or unexported fields
}
func (*MockStore_Expecter) CreateBuckets ¶ added in v1.11.0
func (_e *MockStore_Expecter) CreateBuckets(_a0 interface{}) *MockStore_CreateBuckets_Call
CreateBuckets is a helper method to define mock.On call
- _a0 *bbolt.Tx
func (*MockStore_Expecter) DeleteBlockList ¶ added in v1.11.0
func (_e *MockStore_Expecter) DeleteBlockList(_a0 interface{}, _a1 interface{}, _a2 interface{}) *MockStore_DeleteBlockList_Call
DeleteBlockList is a helper method to define mock.On call
- _a0 *bbolt.Tx
- _a1 store.PartitionKey
- _a2 *metastorev1.BlockList
func (*MockStore_Expecter) ListPartitions ¶
func (_e *MockStore_Expecter) ListPartitions(_a0 interface{}) *MockStore_ListPartitions_Call
ListPartitions is a helper method to define mock.On call
- _a0 *bbolt.Tx
func (*MockStore_Expecter) LoadTenantShard ¶ added in v1.11.0
func (_e *MockStore_Expecter) LoadTenantShard(_a0 interface{}, _a1 interface{}, _a2 interface{}, _a3 interface{}) *MockStore_LoadTenantShard_Call
LoadTenantShard is a helper method to define mock.On call
- _a0 *bbolt.Tx
- _a1 store.PartitionKey
- _a2 string
- _a3 uint32
func (*MockStore_Expecter) StoreBlock ¶ added in v1.11.0
func (_e *MockStore_Expecter) StoreBlock(tx interface{}, shard interface{}, md interface{}) *MockStore_StoreBlock_Call
StoreBlock is a helper method to define mock.On call
- tx *bbolt.Tx
- shard *store.TenantShard
- md *metastorev1.BlockMeta
type MockStore_ListPartitions_Call ¶
MockStore_ListPartitions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListPartitions'
func (*MockStore_ListPartitions_Call) Return ¶
func (_c *MockStore_ListPartitions_Call) Return(_a0 []*store.Partition, _a1 error) *MockStore_ListPartitions_Call
func (*MockStore_ListPartitions_Call) Run ¶
func (_c *MockStore_ListPartitions_Call) Run(run func(_a0 *bbolt.Tx)) *MockStore_ListPartitions_Call
func (*MockStore_ListPartitions_Call) RunAndReturn ¶
func (_c *MockStore_ListPartitions_Call) RunAndReturn(run func(*bbolt.Tx) ([]*store.Partition, error)) *MockStore_ListPartitions_Call
type MockStore_LoadTenantShard_Call ¶ added in v1.11.0
MockStore_LoadTenantShard_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LoadTenantShard'
func (*MockStore_LoadTenantShard_Call) Return ¶ added in v1.11.0
func (_c *MockStore_LoadTenantShard_Call) Return(_a0 *store.TenantShard, _a1 error) *MockStore_LoadTenantShard_Call
func (*MockStore_LoadTenantShard_Call) Run ¶ added in v1.11.0
func (_c *MockStore_LoadTenantShard_Call) Run(run func(_a0 *bbolt.Tx, _a1 store.PartitionKey, _a2 string, _a3 uint32)) *MockStore_LoadTenantShard_Call
func (*MockStore_LoadTenantShard_Call) RunAndReturn ¶ added in v1.11.0
func (_c *MockStore_LoadTenantShard_Call) RunAndReturn(run func(*bbolt.Tx, store.PartitionKey, string, uint32) (*store.TenantShard, error)) *MockStore_LoadTenantShard_Call
type MockStore_StoreBlock_Call ¶ added in v1.11.0
MockStore_StoreBlock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StoreBlock'
func (*MockStore_StoreBlock_Call) Return ¶ added in v1.11.0
func (_c *MockStore_StoreBlock_Call) Return(_a0 error) *MockStore_StoreBlock_Call
func (*MockStore_StoreBlock_Call) Run ¶ added in v1.11.0
func (_c *MockStore_StoreBlock_Call) Run(run func(tx *bbolt.Tx, shard *store.TenantShard, md *metastorev1.BlockMeta)) *MockStore_StoreBlock_Call
func (*MockStore_StoreBlock_Call) RunAndReturn ¶ added in v1.11.0
func (_c *MockStore_StoreBlock_Call) RunAndReturn(run func(*bbolt.Tx, *store.TenantShard, *metastorev1.BlockMeta) error) *MockStore_StoreBlock_Call