Documentation ¶
Index ¶
- type MockStore
- func (_m *MockStore) EXPECT() *MockStore_Expecter
- func (_m *MockStore) ListBlocks(p index.PartitionKey, shard uint32, tenant string) []*metastorev1.BlockMeta
- func (_m *MockStore) ListPartitions() []index.PartitionKey
- func (_m *MockStore) ListShards(p index.PartitionKey) []uint32
- func (_m *MockStore) ListTenants(p index.PartitionKey, shard uint32) []string
- type MockStore_Expecter
- func (_e *MockStore_Expecter) ListBlocks(p interface{}, shard interface{}, tenant interface{}) *MockStore_ListBlocks_Call
- func (_e *MockStore_Expecter) ListPartitions() *MockStore_ListPartitions_Call
- func (_e *MockStore_Expecter) ListShards(p interface{}) *MockStore_ListShards_Call
- func (_e *MockStore_Expecter) ListTenants(p interface{}, shard interface{}) *MockStore_ListTenants_Call
- type MockStore_ListBlocks_Call
- func (_c *MockStore_ListBlocks_Call) Return(_a0 []*metastorev1.BlockMeta) *MockStore_ListBlocks_Call
- func (_c *MockStore_ListBlocks_Call) Run(run func(p index.PartitionKey, shard uint32, tenant string)) *MockStore_ListBlocks_Call
- func (_c *MockStore_ListBlocks_Call) RunAndReturn(run func(index.PartitionKey, uint32, string) []*metastorev1.BlockMeta) *MockStore_ListBlocks_Call
- type MockStore_ListPartitions_Call
- func (_c *MockStore_ListPartitions_Call) Return(_a0 []index.PartitionKey) *MockStore_ListPartitions_Call
- func (_c *MockStore_ListPartitions_Call) Run(run func()) *MockStore_ListPartitions_Call
- func (_c *MockStore_ListPartitions_Call) RunAndReturn(run func() []index.PartitionKey) *MockStore_ListPartitions_Call
- type MockStore_ListShards_Call
- func (_c *MockStore_ListShards_Call) Return(_a0 []uint32) *MockStore_ListShards_Call
- func (_c *MockStore_ListShards_Call) Run(run func(p index.PartitionKey)) *MockStore_ListShards_Call
- func (_c *MockStore_ListShards_Call) RunAndReturn(run func(index.PartitionKey) []uint32) *MockStore_ListShards_Call
- type MockStore_ListTenants_Call
- func (_c *MockStore_ListTenants_Call) Return(_a0 []string) *MockStore_ListTenants_Call
- func (_c *MockStore_ListTenants_Call) Run(run func(p index.PartitionKey, shard uint32)) *MockStore_ListTenants_Call
- func (_c *MockStore_ListTenants_Call) RunAndReturn(run func(index.PartitionKey, uint32) []string) *MockStore_ListTenants_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) EXPECT ¶
func (_m *MockStore) EXPECT() *MockStore_Expecter
func (*MockStore) ListBlocks ¶
func (_m *MockStore) ListBlocks(p index.PartitionKey, shard uint32, tenant string) []*metastorev1.BlockMeta
ListBlocks provides a mock function with given fields: p, shard, tenant
func (*MockStore) ListPartitions ¶
func (_m *MockStore) ListPartitions() []index.PartitionKey
ListPartitions provides a mock function with given fields:
func (*MockStore) ListShards ¶
func (_m *MockStore) ListShards(p index.PartitionKey) []uint32
ListShards provides a mock function with given fields: p
func (*MockStore) ListTenants ¶
func (_m *MockStore) ListTenants(p index.PartitionKey, shard uint32) []string
ListTenants provides a mock function with given fields: p, shard
type MockStore_Expecter ¶
type MockStore_Expecter struct {
// contains filtered or unexported fields
}
func (*MockStore_Expecter) ListBlocks ¶
func (_e *MockStore_Expecter) ListBlocks(p interface{}, shard interface{}, tenant interface{}) *MockStore_ListBlocks_Call
ListBlocks is a helper method to define mock.On call
- p index.PartitionKey
- shard uint32
- tenant string
func (*MockStore_Expecter) ListPartitions ¶
func (_e *MockStore_Expecter) ListPartitions() *MockStore_ListPartitions_Call
ListPartitions is a helper method to define mock.On call
func (*MockStore_Expecter) ListShards ¶
func (_e *MockStore_Expecter) ListShards(p interface{}) *MockStore_ListShards_Call
ListShards is a helper method to define mock.On call
- p index.PartitionKey
func (*MockStore_Expecter) ListTenants ¶
func (_e *MockStore_Expecter) ListTenants(p interface{}, shard interface{}) *MockStore_ListTenants_Call
ListTenants is a helper method to define mock.On call
- p index.PartitionKey
- shard uint32
type MockStore_ListBlocks_Call ¶
MockStore_ListBlocks_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListBlocks'
func (*MockStore_ListBlocks_Call) Return ¶
func (_c *MockStore_ListBlocks_Call) Return(_a0 []*metastorev1.BlockMeta) *MockStore_ListBlocks_Call
func (*MockStore_ListBlocks_Call) Run ¶
func (_c *MockStore_ListBlocks_Call) Run(run func(p index.PartitionKey, shard uint32, tenant string)) *MockStore_ListBlocks_Call
func (*MockStore_ListBlocks_Call) RunAndReturn ¶
func (_c *MockStore_ListBlocks_Call) RunAndReturn(run func(index.PartitionKey, uint32, string) []*metastorev1.BlockMeta) *MockStore_ListBlocks_Call
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 []index.PartitionKey) *MockStore_ListPartitions_Call
func (*MockStore_ListPartitions_Call) Run ¶
func (_c *MockStore_ListPartitions_Call) Run(run func()) *MockStore_ListPartitions_Call
func (*MockStore_ListPartitions_Call) RunAndReturn ¶
func (_c *MockStore_ListPartitions_Call) RunAndReturn(run func() []index.PartitionKey) *MockStore_ListPartitions_Call
type MockStore_ListShards_Call ¶
MockStore_ListShards_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListShards'
func (*MockStore_ListShards_Call) Return ¶
func (_c *MockStore_ListShards_Call) Return(_a0 []uint32) *MockStore_ListShards_Call
func (*MockStore_ListShards_Call) Run ¶
func (_c *MockStore_ListShards_Call) Run(run func(p index.PartitionKey)) *MockStore_ListShards_Call
func (*MockStore_ListShards_Call) RunAndReturn ¶
func (_c *MockStore_ListShards_Call) RunAndReturn(run func(index.PartitionKey) []uint32) *MockStore_ListShards_Call
type MockStore_ListTenants_Call ¶
MockStore_ListTenants_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListTenants'
func (*MockStore_ListTenants_Call) Return ¶
func (_c *MockStore_ListTenants_Call) Return(_a0 []string) *MockStore_ListTenants_Call
func (*MockStore_ListTenants_Call) Run ¶
func (_c *MockStore_ListTenants_Call) Run(run func(p index.PartitionKey, shard uint32)) *MockStore_ListTenants_Call
func (*MockStore_ListTenants_Call) RunAndReturn ¶
func (_c *MockStore_ListTenants_Call) RunAndReturn(run func(index.PartitionKey, uint32) []string) *MockStore_ListTenants_Call