Documentation ¶
Overview ¶
Package mock_nodestorage is a generated GoMock package.
Index ¶
- type MockNodeStorage
- func (m *MockNodeStorage) AllSpaceIds() ([]string, error)
- func (m *MockNodeStorage) CreateSpaceStorage(arg0 spacestorage.SpaceStorageCreatePayload) (spacestorage.SpaceStorage, error)
- func (m *MockNodeStorage) DeleteSpaceStorage(arg0 context.Context, arg1 string) error
- func (m *MockNodeStorage) DeletionStorage() nodestorage.DeletionStorage
- func (m *MockNodeStorage) EXPECT() *MockNodeStorageMockRecorder
- func (m *MockNodeStorage) Init(arg0 *app.App) error
- func (m *MockNodeStorage) Name() string
- func (m *MockNodeStorage) OnDeleteStorage(arg0 func(context.Context, string))
- func (m *MockNodeStorage) OnWriteHash(arg0 func(context.Context, string, string))
- func (m *MockNodeStorage) OnWriteOldHash(arg0 func(context.Context, string, string))
- func (m *MockNodeStorage) SpaceExists(arg0 string) bool
- func (m *MockNodeStorage) SpaceStorage(arg0 string) (spacestorage.SpaceStorage, error)
- func (m *MockNodeStorage) StoreDir(arg0 string) string
- func (m *MockNodeStorage) TryLockAndDo(arg0 string, arg1 func() error) error
- func (m *MockNodeStorage) WaitSpaceStorage(arg0 context.Context, arg1 string) (spacestorage.SpaceStorage, error)
- type MockNodeStorageMockRecorder
- func (mr *MockNodeStorageMockRecorder) AllSpaceIds() *gomock.Call
- func (mr *MockNodeStorageMockRecorder) CreateSpaceStorage(arg0 any) *gomock.Call
- func (mr *MockNodeStorageMockRecorder) DeleteSpaceStorage(arg0, arg1 any) *gomock.Call
- func (mr *MockNodeStorageMockRecorder) DeletionStorage() *gomock.Call
- func (mr *MockNodeStorageMockRecorder) Init(arg0 any) *gomock.Call
- func (mr *MockNodeStorageMockRecorder) Name() *gomock.Call
- func (mr *MockNodeStorageMockRecorder) OnDeleteStorage(arg0 any) *gomock.Call
- func (mr *MockNodeStorageMockRecorder) OnWriteHash(arg0 any) *gomock.Call
- func (mr *MockNodeStorageMockRecorder) OnWriteOldHash(arg0 any) *gomock.Call
- func (mr *MockNodeStorageMockRecorder) SpaceExists(arg0 any) *gomock.Call
- func (mr *MockNodeStorageMockRecorder) SpaceStorage(arg0 any) *gomock.Call
- func (mr *MockNodeStorageMockRecorder) StoreDir(arg0 any) *gomock.Call
- func (mr *MockNodeStorageMockRecorder) TryLockAndDo(arg0, arg1 any) *gomock.Call
- func (mr *MockNodeStorageMockRecorder) WaitSpaceStorage(arg0, arg1 any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockNodeStorage ¶
type MockNodeStorage struct {
// contains filtered or unexported fields
}
MockNodeStorage is a mock of NodeStorage interface.
func NewMockNodeStorage ¶
func NewMockNodeStorage(ctrl *gomock.Controller) *MockNodeStorage
NewMockNodeStorage creates a new mock instance.
func (*MockNodeStorage) AllSpaceIds ¶
func (m *MockNodeStorage) AllSpaceIds() ([]string, error)
AllSpaceIds mocks base method.
func (*MockNodeStorage) CreateSpaceStorage ¶
func (m *MockNodeStorage) CreateSpaceStorage(arg0 spacestorage.SpaceStorageCreatePayload) (spacestorage.SpaceStorage, error)
CreateSpaceStorage mocks base method.
func (*MockNodeStorage) DeleteSpaceStorage ¶ added in v0.3.1
func (m *MockNodeStorage) DeleteSpaceStorage(arg0 context.Context, arg1 string) error
DeleteSpaceStorage mocks base method.
func (*MockNodeStorage) DeletionStorage ¶ added in v0.3.1
func (m *MockNodeStorage) DeletionStorage() nodestorage.DeletionStorage
DeletionStorage mocks base method.
func (*MockNodeStorage) EXPECT ¶
func (m *MockNodeStorage) EXPECT() *MockNodeStorageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockNodeStorage) Init ¶
func (m *MockNodeStorage) Init(arg0 *app.App) error
Init mocks base method.
func (*MockNodeStorage) OnDeleteStorage ¶ added in v0.3.9
func (m *MockNodeStorage) OnDeleteStorage(arg0 func(context.Context, string))
OnDeleteStorage mocks base method.
func (*MockNodeStorage) OnWriteHash ¶
func (m *MockNodeStorage) OnWriteHash(arg0 func(context.Context, string, string))
OnWriteHash mocks base method.
func (*MockNodeStorage) OnWriteOldHash ¶ added in v0.3.9
func (m *MockNodeStorage) OnWriteOldHash(arg0 func(context.Context, string, string))
OnWriteOldHash mocks base method.
func (*MockNodeStorage) SpaceExists ¶
func (m *MockNodeStorage) SpaceExists(arg0 string) bool
SpaceExists mocks base method.
func (*MockNodeStorage) SpaceStorage ¶
func (m *MockNodeStorage) SpaceStorage(arg0 string) (spacestorage.SpaceStorage, error)
SpaceStorage mocks base method.
func (*MockNodeStorage) StoreDir ¶
func (m *MockNodeStorage) StoreDir(arg0 string) string
StoreDir mocks base method.
func (*MockNodeStorage) TryLockAndDo ¶
func (m *MockNodeStorage) TryLockAndDo(arg0 string, arg1 func() error) error
TryLockAndDo mocks base method.
func (*MockNodeStorage) WaitSpaceStorage ¶
func (m *MockNodeStorage) WaitSpaceStorage(arg0 context.Context, arg1 string) (spacestorage.SpaceStorage, error)
WaitSpaceStorage mocks base method.
type MockNodeStorageMockRecorder ¶
type MockNodeStorageMockRecorder struct {
// contains filtered or unexported fields
}
MockNodeStorageMockRecorder is the mock recorder for MockNodeStorage.
func (*MockNodeStorageMockRecorder) AllSpaceIds ¶
func (mr *MockNodeStorageMockRecorder) AllSpaceIds() *gomock.Call
AllSpaceIds indicates an expected call of AllSpaceIds.
func (*MockNodeStorageMockRecorder) CreateSpaceStorage ¶
func (mr *MockNodeStorageMockRecorder) CreateSpaceStorage(arg0 any) *gomock.Call
CreateSpaceStorage indicates an expected call of CreateSpaceStorage.
func (*MockNodeStorageMockRecorder) DeleteSpaceStorage ¶ added in v0.3.1
func (mr *MockNodeStorageMockRecorder) DeleteSpaceStorage(arg0, arg1 any) *gomock.Call
DeleteSpaceStorage indicates an expected call of DeleteSpaceStorage.
func (*MockNodeStorageMockRecorder) DeletionStorage ¶ added in v0.3.1
func (mr *MockNodeStorageMockRecorder) DeletionStorage() *gomock.Call
DeletionStorage indicates an expected call of DeletionStorage.
func (*MockNodeStorageMockRecorder) Init ¶
func (mr *MockNodeStorageMockRecorder) Init(arg0 any) *gomock.Call
Init indicates an expected call of Init.
func (*MockNodeStorageMockRecorder) Name ¶
func (mr *MockNodeStorageMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name.
func (*MockNodeStorageMockRecorder) OnDeleteStorage ¶ added in v0.3.9
func (mr *MockNodeStorageMockRecorder) OnDeleteStorage(arg0 any) *gomock.Call
OnDeleteStorage indicates an expected call of OnDeleteStorage.
func (*MockNodeStorageMockRecorder) OnWriteHash ¶
func (mr *MockNodeStorageMockRecorder) OnWriteHash(arg0 any) *gomock.Call
OnWriteHash indicates an expected call of OnWriteHash.
func (*MockNodeStorageMockRecorder) OnWriteOldHash ¶ added in v0.3.9
func (mr *MockNodeStorageMockRecorder) OnWriteOldHash(arg0 any) *gomock.Call
OnWriteOldHash indicates an expected call of OnWriteOldHash.
func (*MockNodeStorageMockRecorder) SpaceExists ¶
func (mr *MockNodeStorageMockRecorder) SpaceExists(arg0 any) *gomock.Call
SpaceExists indicates an expected call of SpaceExists.
func (*MockNodeStorageMockRecorder) SpaceStorage ¶
func (mr *MockNodeStorageMockRecorder) SpaceStorage(arg0 any) *gomock.Call
SpaceStorage indicates an expected call of SpaceStorage.
func (*MockNodeStorageMockRecorder) StoreDir ¶
func (mr *MockNodeStorageMockRecorder) StoreDir(arg0 any) *gomock.Call
StoreDir indicates an expected call of StoreDir.
func (*MockNodeStorageMockRecorder) TryLockAndDo ¶
func (mr *MockNodeStorageMockRecorder) TryLockAndDo(arg0, arg1 any) *gomock.Call
TryLockAndDo indicates an expected call of TryLockAndDo.
func (*MockNodeStorageMockRecorder) WaitSpaceStorage ¶
func (mr *MockNodeStorageMockRecorder) WaitSpaceStorage(arg0, arg1 any) *gomock.Call
WaitSpaceStorage indicates an expected call of WaitSpaceStorage.