 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- type MockStore
- func (_m *MockStore) CreateBuckets(_a0 *bbolt.Tx) error
- func (_m *MockStore) DeleteShard(tx *bbolt.Tx, p store.Partition, tenant string, shard uint32) error
- func (_m *MockStore) EXPECT() *MockStore_Expecter
- func (_m *MockStore) LoadShard(tx *bbolt.Tx, p store.Partition, tenant string, shard uint32) (*store.Shard, error)
- func (_m *MockStore) Partitions(tx *bbolt.Tx) iter.Seq[store.Partition]
 
- type MockStore_CreateBuckets_Call
- type MockStore_DeleteShard_Call
- func (_c *MockStore_DeleteShard_Call) Return(_a0 error) *MockStore_DeleteShard_Call
- func (_c *MockStore_DeleteShard_Call) Run(run func(tx *bbolt.Tx, p store.Partition, tenant string, shard uint32)) *MockStore_DeleteShard_Call
- func (_c *MockStore_DeleteShard_Call) RunAndReturn(run func(*bbolt.Tx, store.Partition, string, uint32) error) *MockStore_DeleteShard_Call
 
- type MockStore_Expecter
- func (_e *MockStore_Expecter) CreateBuckets(_a0 interface{}) *MockStore_CreateBuckets_Call
- func (_e *MockStore_Expecter) DeleteShard(tx interface{}, p interface{}, tenant interface{}, shard interface{}) *MockStore_DeleteShard_Call
- func (_e *MockStore_Expecter) LoadShard(tx interface{}, p interface{}, tenant interface{}, shard interface{}) *MockStore_LoadShard_Call
- func (_e *MockStore_Expecter) Partitions(tx interface{}) *MockStore_Partitions_Call
 
- type MockStore_LoadShard_Call
- func (_c *MockStore_LoadShard_Call) Return(_a0 *store.Shard, _a1 error) *MockStore_LoadShard_Call
- func (_c *MockStore_LoadShard_Call) Run(run func(tx *bbolt.Tx, p store.Partition, tenant string, shard uint32)) *MockStore_LoadShard_Call
- func (_c *MockStore_LoadShard_Call) RunAndReturn(run func(*bbolt.Tx, store.Partition, string, uint32) (*store.Shard, error)) *MockStore_LoadShard_Call
 
- type MockStore_Partitions_Call
- func (_c *MockStore_Partitions_Call) Return(_a0 iter.Seq[store.Partition]) *MockStore_Partitions_Call
- func (_c *MockStore_Partitions_Call) Run(run func(tx *bbolt.Tx)) *MockStore_Partitions_Call
- func (_c *MockStore_Partitions_Call) RunAndReturn(run func(*bbolt.Tx) iter.Seq[store.Partition]) *MockStore_Partitions_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) DeleteShard ¶ added in v1.15.0
func (_m *MockStore) DeleteShard(tx *bbolt.Tx, p store.Partition, tenant string, shard uint32) error
DeleteShard provides a mock function with given fields: tx, p, tenant, shard
func (*MockStore) EXPECT ¶
func (_m *MockStore) EXPECT() *MockStore_Expecter
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_DeleteShard_Call ¶ added in v1.15.0
MockStore_DeleteShard_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteShard'
func (*MockStore_DeleteShard_Call) Return ¶ added in v1.15.0
func (_c *MockStore_DeleteShard_Call) Return(_a0 error) *MockStore_DeleteShard_Call
func (*MockStore_DeleteShard_Call) Run ¶ added in v1.15.0
func (_c *MockStore_DeleteShard_Call) Run(run func(tx *bbolt.Tx, p store.Partition, tenant string, shard uint32)) *MockStore_DeleteShard_Call
func (*MockStore_DeleteShard_Call) RunAndReturn ¶ added in v1.15.0
func (_c *MockStore_DeleteShard_Call) RunAndReturn(run func(*bbolt.Tx, store.Partition, string, uint32) error) *MockStore_DeleteShard_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) DeleteShard ¶ added in v1.15.0
func (_e *MockStore_Expecter) DeleteShard(tx interface{}, p interface{}, tenant interface{}, shard interface{}) *MockStore_DeleteShard_Call
DeleteShard is a helper method to define mock.On call
- tx *bbolt.Tx
- p store.Partition
- tenant string
- shard uint32
func (*MockStore_Expecter) LoadShard ¶ added in v1.13.3
func (_e *MockStore_Expecter) LoadShard(tx interface{}, p interface{}, tenant interface{}, shard interface{}) *MockStore_LoadShard_Call
LoadShard is a helper method to define mock.On call
- tx *bbolt.Tx
- p store.Partition
- tenant string
- shard uint32
func (*MockStore_Expecter) Partitions ¶ added in v1.15.0
func (_e *MockStore_Expecter) Partitions(tx interface{}) *MockStore_Partitions_Call
Partitions is a helper method to define mock.On call
- tx *bbolt.Tx
type MockStore_LoadShard_Call ¶ added in v1.13.3
MockStore_LoadShard_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LoadShard'
func (*MockStore_LoadShard_Call) Return ¶ added in v1.13.3
func (_c *MockStore_LoadShard_Call) Return(_a0 *store.Shard, _a1 error) *MockStore_LoadShard_Call
func (*MockStore_LoadShard_Call) Run ¶ added in v1.13.3
func (_c *MockStore_LoadShard_Call) Run(run func(tx *bbolt.Tx, p store.Partition, tenant string, shard uint32)) *MockStore_LoadShard_Call
func (*MockStore_LoadShard_Call) RunAndReturn ¶ added in v1.13.3
type MockStore_Partitions_Call ¶ added in v1.15.0
MockStore_Partitions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Partitions'
func (*MockStore_Partitions_Call) Return ¶ added in v1.15.0
func (_c *MockStore_Partitions_Call) Return(_a0 iter.Seq[store.Partition]) *MockStore_Partitions_Call
func (*MockStore_Partitions_Call) Run ¶ added in v1.15.0
func (_c *MockStore_Partitions_Call) Run(run func(tx *bbolt.Tx)) *MockStore_Partitions_Call
func (*MockStore_Partitions_Call) RunAndReturn ¶ added in v1.15.0
func (_c *MockStore_Partitions_Call) RunAndReturn(run func(*bbolt.Tx) iter.Seq[store.Partition]) *MockStore_Partitions_Call