Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- func NewMockLogger() domain.LogDriver
- func NewMockLoggerRepo() domain.LogRepository
- type MockBackupListUsecase
- type MockBackupListUsecaseMockRecorder
- type MockBackupRepository
- func (m *MockBackupRepository) Create(ctx context.Context, p *domain.BackupCreate) (*domain.UploadResponse, error)
- func (m *MockBackupRepository) Delete(ctx context.Context, bd *domain.BackupDelete) error
- func (m *MockBackupRepository) EXPECT() *MockBackupRepositoryMockRecorder
- func (m *MockBackupRepository) Restore(ctx context.Context, p *domain.BackupRestore) error
- type MockBackupRepositoryMockRecorder
- type MockBackupStateRepo
- func (m *MockBackupStateRepo) Download(ctx context.Context, key string) (*domain.BackupState, error)
- func (m *MockBackupStateRepo) DownloadOrDefault(ctx context.Context, key string) (*domain.BackupState, error)
- func (m *MockBackupStateRepo) EXPECT() *MockBackupStateRepoMockRecorder
- func (m *MockBackupStateRepo) UpdateState(ctx context.Context, stateFileKey string, f func(*domain.BackupState) error) error
- func (m *MockBackupStateRepo) Upload(ctx context.Context, key string, state *domain.BackupState) error
- type MockBackupStateRepoMockRecorder
- func (mr *MockBackupStateRepoMockRecorder) Download(ctx, key any) *gomock.Call
- func (mr *MockBackupStateRepoMockRecorder) DownloadOrDefault(ctx, key any) *gomock.Call
- func (mr *MockBackupStateRepoMockRecorder) UpdateState(ctx, stateFileKey, f any) *gomock.Call
- func (mr *MockBackupStateRepoMockRecorder) Upload(ctx, key, state any) *gomock.Call
- type MockBackupSyncUsecase
- type MockBackupSyncUsecaseMockRecorder
- type MockBackupUsecase
- func (m *MockBackupUsecase) BackupFull(ctx context.Context, fullSnapName string, updateHead bool) error
- func (m *MockBackupUsecase) BackupIncremental(ctx context.Context, baseSnapName, newSnapName string, updateHead bool) error
- func (m *MockBackupUsecase) EXPECT() *MockBackupUsecaseMockRecorder
- func (m *MockBackupUsecase) Restore(ctx context.Context, params *domain.RestoreParams) error
- type MockBackupUsecaseMockRecorder
- type MockRenderDriver
- type MockRenderDriverMockRecorder
- type MockRenderRepository
- type MockRenderRepositoryMockRecorder
- type MockSnapshotNamestrategy
- type MockSnapshotNamestrategyMockRecorder
- type MockSnapshotRepository
- func (m *MockSnapshotRepository) Create(v *domain.ZfsVolume) (string, error)
- func (m *MockSnapshotRepository) CreateWithType(v *domain.ZfsVolume, t domain.BackupType) (string, error)
- func (m *MockSnapshotRepository) Delete(snap *domain.ZfsSnapshot) error
- func (m *MockSnapshotRepository) EXPECT() *MockSnapshotRepositoryMockRecorder
- func (m *MockSnapshotRepository) GetType(zfsEntity string) (domain.BackupType, error)
- func (m *MockSnapshotRepository) List() ([]*domain.ZfsSnapshot, error)
- func (m *MockSnapshotRepository) ListFilter(filter *domain.FilterCriteria) ([]*domain.ZfsSnapshot, error)
- type MockSnapshotRepositoryMockRecorder
- func (mr *MockSnapshotRepositoryMockRecorder) Create(v any) *gomock.Call
- func (mr *MockSnapshotRepositoryMockRecorder) CreateWithType(v, t any) *gomock.Call
- func (mr *MockSnapshotRepositoryMockRecorder) Delete(snap any) *gomock.Call
- func (mr *MockSnapshotRepositoryMockRecorder) GetType(zfsEntity any) *gomock.Call
- func (mr *MockSnapshotRepositoryMockRecorder) List() *gomock.Call
- func (mr *MockSnapshotRepositoryMockRecorder) ListFilter(filter any) *gomock.Call
- type MockSnapshotUsecase
- type MockSnapshotUsecaseMockRecorder
- type MockStorageDriver
- func (m *MockStorageDriver) Delete(ctx context.Context, dp *domain.DeleteParameters) error
- func (m *MockStorageDriver) Download(ctx context.Context, dp *domain.DownloadParameters, writer io.Writer) error
- func (m *MockStorageDriver) EXPECT() *MockStorageDriverMockRecorder
- func (m *MockStorageDriver) Upload(ctx context.Context, up *domain.UploadParameters, reader io.Reader) (*domain.UploadResponse, error)
- type MockStorageDriverMockRecorder
- type MockVolumeRepository
- func (m *MockVolumeRepository) EXPECT() *MockVolumeRepositoryMockRecorder
- func (m *MockVolumeRepository) ListVolumes() ([]*domain.ZfsVolume, error)
- func (m *MockVolumeRepository) ListVolumesByGroup(groupName string) ([]*domain.ZfsVolume, error)
- func (m *MockVolumeRepository) TagVolumeWithGroup(volume *domain.ZfsVolume) error
- type MockVolumeRepositoryMockRecorder
- type MockVolumeUsecase
- type MockVolumeUsecaseMockRecorder
- type MockZfsDriver
- func (m *MockZfsDriver) Destroy(zfsEntity string) error
- func (m *MockZfsDriver) EXPECT() *MockZfsDriverMockRecorder
- func (m *MockZfsDriver) GetField(fieldName, zfsEntity string) *exec.Cmd
- func (m *MockZfsDriver) List(p *domain.ListParameters) *exec.Cmd
- func (m *MockZfsDriver) Receive(p *domain.ReceiveParameters) *exec.Cmd
- func (m *MockZfsDriver) Send(p *domain.SendParameters) *exec.Cmd
- func (m *MockZfsDriver) SetField(fieldName, value, zfsEntity string) error
- func (m *MockZfsDriver) Snapshot(name string) *exec.Cmd
- type MockZfsDriverMockRecorder
- func (mr *MockZfsDriverMockRecorder) Destroy(zfsEntity any) *gomock.Call
- func (mr *MockZfsDriverMockRecorder) GetField(fieldName, zfsEntity any) *gomock.Call
- func (mr *MockZfsDriverMockRecorder) List(p any) *gomock.Call
- func (mr *MockZfsDriverMockRecorder) Receive(p any) *gomock.Call
- func (mr *MockZfsDriverMockRecorder) Send(p any) *gomock.Call
- func (mr *MockZfsDriverMockRecorder) SetField(fieldName, value, zfsEntity any) *gomock.Call
- func (mr *MockZfsDriverMockRecorder) Snapshot(name any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMockLogger ¶
func NewMockLoggerRepo ¶
func NewMockLoggerRepo() domain.LogRepository
Types ¶
type MockBackupListUsecase ¶
type MockBackupListUsecase struct {
// contains filtered or unexported fields
}
MockBackupListUsecase is a mock of BackupListUsecase interface.
func NewMockBackupListUsecase ¶
func NewMockBackupListUsecase(ctrl *gomock.Controller) *MockBackupListUsecase
NewMockBackupListUsecase creates a new mock instance.
func (*MockBackupListUsecase) EXPECT ¶
func (m *MockBackupListUsecase) EXPECT() *MockBackupListUsecaseMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockBackupListUsecaseMockRecorder ¶
type MockBackupListUsecaseMockRecorder struct {
// contains filtered or unexported fields
}
MockBackupListUsecaseMockRecorder is the mock recorder for MockBackupListUsecase.
type MockBackupRepository ¶
type MockBackupRepository struct {
// contains filtered or unexported fields
}
MockBackupRepository is a mock of BackupRepository interface.
func NewMockBackupRepository ¶
func NewMockBackupRepository(ctrl *gomock.Controller) *MockBackupRepository
NewMockBackupRepository creates a new mock instance.
func (*MockBackupRepository) Create ¶
func (m *MockBackupRepository) Create(ctx context.Context, p *domain.BackupCreate) (*domain.UploadResponse, error)
Create mocks base method.
func (*MockBackupRepository) Delete ¶
func (m *MockBackupRepository) Delete(ctx context.Context, bd *domain.BackupDelete) error
Delete mocks base method.
func (*MockBackupRepository) EXPECT ¶
func (m *MockBackupRepository) EXPECT() *MockBackupRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockBackupRepository) Restore ¶
func (m *MockBackupRepository) Restore(ctx context.Context, p *domain.BackupRestore) error
Restore mocks base method.
type MockBackupRepositoryMockRecorder ¶
type MockBackupRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockBackupRepositoryMockRecorder is the mock recorder for MockBackupRepository.
func (*MockBackupRepositoryMockRecorder) Create ¶
func (mr *MockBackupRepositoryMockRecorder) Create(ctx, p any) *gomock.Call
Create indicates an expected call of Create.
type MockBackupStateRepo ¶
type MockBackupStateRepo struct {
// contains filtered or unexported fields
}
MockBackupStateRepo is a mock of BackupStateRepo interface.
func NewMockBackupStateRepo ¶
func NewMockBackupStateRepo(ctrl *gomock.Controller) *MockBackupStateRepo
NewMockBackupStateRepo creates a new mock instance.
func (*MockBackupStateRepo) Download ¶
func (m *MockBackupStateRepo) Download(ctx context.Context, key string) (*domain.BackupState, error)
Download mocks base method.
func (*MockBackupStateRepo) DownloadOrDefault ¶
func (m *MockBackupStateRepo) DownloadOrDefault(ctx context.Context, key string) (*domain.BackupState, error)
DownloadOrDefault mocks base method.
func (*MockBackupStateRepo) EXPECT ¶
func (m *MockBackupStateRepo) EXPECT() *MockBackupStateRepoMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockBackupStateRepo) UpdateState ¶
func (m *MockBackupStateRepo) UpdateState(ctx context.Context, stateFileKey string, f func(*domain.BackupState) error) error
UpdateState mocks base method.
func (*MockBackupStateRepo) Upload ¶
func (m *MockBackupStateRepo) Upload(ctx context.Context, key string, state *domain.BackupState) error
Upload mocks base method.
type MockBackupStateRepoMockRecorder ¶
type MockBackupStateRepoMockRecorder struct {
// contains filtered or unexported fields
}
MockBackupStateRepoMockRecorder is the mock recorder for MockBackupStateRepo.
func (*MockBackupStateRepoMockRecorder) Download ¶
func (mr *MockBackupStateRepoMockRecorder) Download(ctx, key any) *gomock.Call
Download indicates an expected call of Download.
func (*MockBackupStateRepoMockRecorder) DownloadOrDefault ¶
func (mr *MockBackupStateRepoMockRecorder) DownloadOrDefault(ctx, key any) *gomock.Call
DownloadOrDefault indicates an expected call of DownloadOrDefault.
func (*MockBackupStateRepoMockRecorder) UpdateState ¶
func (mr *MockBackupStateRepoMockRecorder) UpdateState(ctx, stateFileKey, f any) *gomock.Call
UpdateState indicates an expected call of UpdateState.
type MockBackupSyncUsecase ¶
type MockBackupSyncUsecase struct {
// contains filtered or unexported fields
}
MockBackupSyncUsecase is a mock of BackupSyncUsecase interface.
func NewMockBackupSyncUsecase ¶
func NewMockBackupSyncUsecase(ctrl *gomock.Controller) *MockBackupSyncUsecase
NewMockBackupSyncUsecase creates a new mock instance.
func (*MockBackupSyncUsecase) Backup ¶
func (m *MockBackupSyncUsecase) Backup(ctx context.Context, groupName string) error
Backup mocks base method.
func (*MockBackupSyncUsecase) CalcSnapsToBackup ¶
func (m *MockBackupSyncUsecase) CalcSnapsToBackup(bs *domain.BackupState, snaps []*domain.ZfsSnapshot) ([]*domain.BackupRequest, error)
CalcSnapsToBackup mocks base method.
func (*MockBackupSyncUsecase) EXPECT ¶
func (m *MockBackupSyncUsecase) EXPECT() *MockBackupSyncUsecaseMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockBackupSyncUsecaseMockRecorder ¶
type MockBackupSyncUsecaseMockRecorder struct {
// contains filtered or unexported fields
}
MockBackupSyncUsecaseMockRecorder is the mock recorder for MockBackupSyncUsecase.
func (*MockBackupSyncUsecaseMockRecorder) Backup ¶
func (mr *MockBackupSyncUsecaseMockRecorder) Backup(ctx, groupName any) *gomock.Call
Backup indicates an expected call of Backup.
func (*MockBackupSyncUsecaseMockRecorder) CalcSnapsToBackup ¶
func (mr *MockBackupSyncUsecaseMockRecorder) CalcSnapsToBackup(bs, snaps any) *gomock.Call
CalcSnapsToBackup indicates an expected call of CalcSnapsToBackup.
type MockBackupUsecase ¶
type MockBackupUsecase struct {
// contains filtered or unexported fields
}
MockBackupUsecase is a mock of BackupUsecase interface.
func NewMockBackupUsecase ¶
func NewMockBackupUsecase(ctrl *gomock.Controller) *MockBackupUsecase
NewMockBackupUsecase creates a new mock instance.
func (*MockBackupUsecase) BackupFull ¶
func (m *MockBackupUsecase) BackupFull(ctx context.Context, fullSnapName string, updateHead bool) error
BackupFull mocks base method.
func (*MockBackupUsecase) BackupIncremental ¶
func (m *MockBackupUsecase) BackupIncremental(ctx context.Context, baseSnapName, newSnapName string, updateHead bool) error
BackupIncremental mocks base method.
func (*MockBackupUsecase) EXPECT ¶
func (m *MockBackupUsecase) EXPECT() *MockBackupUsecaseMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockBackupUsecase) Restore ¶
func (m *MockBackupUsecase) Restore(ctx context.Context, params *domain.RestoreParams) error
Restore mocks base method.
type MockBackupUsecaseMockRecorder ¶
type MockBackupUsecaseMockRecorder struct {
// contains filtered or unexported fields
}
MockBackupUsecaseMockRecorder is the mock recorder for MockBackupUsecase.
func (*MockBackupUsecaseMockRecorder) BackupFull ¶
func (mr *MockBackupUsecaseMockRecorder) BackupFull(ctx, fullSnapName, updateHead any) *gomock.Call
BackupFull indicates an expected call of BackupFull.
func (*MockBackupUsecaseMockRecorder) BackupIncremental ¶
func (mr *MockBackupUsecaseMockRecorder) BackupIncremental(ctx, baseSnapName, newSnapName, updateHead any) *gomock.Call
BackupIncremental indicates an expected call of BackupIncremental.
type MockRenderDriver ¶
type MockRenderDriver struct {
// contains filtered or unexported fields
}
MockRenderDriver is a mock of RenderDriver interface.
func NewMockRenderDriver ¶
func NewMockRenderDriver(ctrl *gomock.Controller) *MockRenderDriver
NewMockRenderDriver creates a new mock instance.
func (*MockRenderDriver) EXPECT ¶
func (m *MockRenderDriver) EXPECT() *MockRenderDriverMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRenderDriver) RenderTable ¶
func (m *MockRenderDriver) RenderTable(writer io.Writer, headerRow []any, rows [][]any)
RenderTable mocks base method.
type MockRenderDriverMockRecorder ¶
type MockRenderDriverMockRecorder struct {
// contains filtered or unexported fields
}
MockRenderDriverMockRecorder is the mock recorder for MockRenderDriver.
func (*MockRenderDriverMockRecorder) RenderTable ¶
func (mr *MockRenderDriverMockRecorder) RenderTable(writer, headerRow, rows any) *gomock.Call
RenderTable indicates an expected call of RenderTable.
type MockRenderRepository ¶
type MockRenderRepository struct {
// contains filtered or unexported fields
}
MockRenderRepository is a mock of RenderRepository interface.
func NewMockRenderRepository ¶
func NewMockRenderRepository(ctrl *gomock.Controller) *MockRenderRepository
NewMockRenderRepository creates a new mock instance.
func (*MockRenderRepository) EXPECT ¶
func (m *MockRenderRepository) EXPECT() *MockRenderRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRenderRepository) RenderBackupTable ¶
func (m *MockRenderRepository) RenderBackupTable(writer io.Writer, backups []domain.BackupRecordWithKey)
RenderBackupTable mocks base method.
func (*MockRenderRepository) RenderVolumeTable ¶
func (m *MockRenderRepository) RenderVolumeTable(writer io.Writer, volumes []*domain.ZfsVolume)
RenderVolumeTable mocks base method.
type MockRenderRepositoryMockRecorder ¶
type MockRenderRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockRenderRepositoryMockRecorder is the mock recorder for MockRenderRepository.
func (*MockRenderRepositoryMockRecorder) RenderBackupTable ¶
func (mr *MockRenderRepositoryMockRecorder) RenderBackupTable(writer, backups any) *gomock.Call
RenderBackupTable indicates an expected call of RenderBackupTable.
func (*MockRenderRepositoryMockRecorder) RenderVolumeTable ¶
func (mr *MockRenderRepositoryMockRecorder) RenderVolumeTable(writer, volumes any) *gomock.Call
RenderVolumeTable indicates an expected call of RenderVolumeTable.
type MockSnapshotNamestrategy ¶
type MockSnapshotNamestrategy struct {
// contains filtered or unexported fields
}
MockSnapshotNamestrategy is a mock of SnapshotNamestrategy interface.
func NewMockSnapshotNamestrategy ¶
func NewMockSnapshotNamestrategy(ctrl *gomock.Controller) *MockSnapshotNamestrategy
NewMockSnapshotNamestrategy creates a new mock instance.
func (*MockSnapshotNamestrategy) EXPECT ¶
func (m *MockSnapshotNamestrategy) EXPECT() *MockSnapshotNamestrategyMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSnapshotNamestrategy) GetName ¶
func (m *MockSnapshotNamestrategy) GetName() string
GetName mocks base method.
func (*MockSnapshotNamestrategy) IsGreater ¶
func (m *MockSnapshotNamestrategy) IsGreater(snapNameA, snapNameB string) bool
IsGreater mocks base method.
func (*MockSnapshotNamestrategy) IsMatching ¶
func (m *MockSnapshotNamestrategy) IsMatching(snapshotName string) bool
IsMatching mocks base method.
type MockSnapshotNamestrategyMockRecorder ¶
type MockSnapshotNamestrategyMockRecorder struct {
// contains filtered or unexported fields
}
MockSnapshotNamestrategyMockRecorder is the mock recorder for MockSnapshotNamestrategy.
func (*MockSnapshotNamestrategyMockRecorder) GetName ¶
func (mr *MockSnapshotNamestrategyMockRecorder) GetName() *gomock.Call
GetName indicates an expected call of GetName.
func (*MockSnapshotNamestrategyMockRecorder) IsGreater ¶
func (mr *MockSnapshotNamestrategyMockRecorder) IsGreater(snapNameA, snapNameB any) *gomock.Call
IsGreater indicates an expected call of IsGreater.
func (*MockSnapshotNamestrategyMockRecorder) IsMatching ¶
func (mr *MockSnapshotNamestrategyMockRecorder) IsMatching(snapshotName any) *gomock.Call
IsMatching indicates an expected call of IsMatching.
type MockSnapshotRepository ¶
type MockSnapshotRepository struct {
// contains filtered or unexported fields
}
MockSnapshotRepository is a mock of SnapshotRepository interface.
func NewMockSnapshotRepository ¶
func NewMockSnapshotRepository(ctrl *gomock.Controller) *MockSnapshotRepository
NewMockSnapshotRepository creates a new mock instance.
func (*MockSnapshotRepository) Create ¶
func (m *MockSnapshotRepository) Create(v *domain.ZfsVolume) (string, error)
Create mocks base method.
func (*MockSnapshotRepository) CreateWithType ¶
func (m *MockSnapshotRepository) CreateWithType(v *domain.ZfsVolume, t domain.BackupType) (string, error)
CreateWithType mocks base method.
func (*MockSnapshotRepository) Delete ¶
func (m *MockSnapshotRepository) Delete(snap *domain.ZfsSnapshot) error
Delete mocks base method.
func (*MockSnapshotRepository) EXPECT ¶
func (m *MockSnapshotRepository) EXPECT() *MockSnapshotRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSnapshotRepository) GetType ¶
func (m *MockSnapshotRepository) GetType(zfsEntity string) (domain.BackupType, error)
GetType mocks base method.
func (*MockSnapshotRepository) List ¶
func (m *MockSnapshotRepository) List() ([]*domain.ZfsSnapshot, error)
List mocks base method.
func (*MockSnapshotRepository) ListFilter ¶
func (m *MockSnapshotRepository) ListFilter(filter *domain.FilterCriteria) ([]*domain.ZfsSnapshot, error)
ListFilter mocks base method.
type MockSnapshotRepositoryMockRecorder ¶
type MockSnapshotRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockSnapshotRepositoryMockRecorder is the mock recorder for MockSnapshotRepository.
func (*MockSnapshotRepositoryMockRecorder) Create ¶
func (mr *MockSnapshotRepositoryMockRecorder) Create(v any) *gomock.Call
Create indicates an expected call of Create.
func (*MockSnapshotRepositoryMockRecorder) CreateWithType ¶
func (mr *MockSnapshotRepositoryMockRecorder) CreateWithType(v, t any) *gomock.Call
CreateWithType indicates an expected call of CreateWithType.
func (*MockSnapshotRepositoryMockRecorder) Delete ¶
func (mr *MockSnapshotRepositoryMockRecorder) Delete(snap any) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockSnapshotRepositoryMockRecorder) GetType ¶
func (mr *MockSnapshotRepositoryMockRecorder) GetType(zfsEntity any) *gomock.Call
GetType indicates an expected call of GetType.
func (*MockSnapshotRepositoryMockRecorder) List ¶
func (mr *MockSnapshotRepositoryMockRecorder) List() *gomock.Call
List indicates an expected call of List.
func (*MockSnapshotRepositoryMockRecorder) ListFilter ¶
func (mr *MockSnapshotRepositoryMockRecorder) ListFilter(filter any) *gomock.Call
ListFilter indicates an expected call of ListFilter.
type MockSnapshotUsecase ¶
type MockSnapshotUsecase struct {
// contains filtered or unexported fields
}
MockSnapshotUsecase is a mock of SnapshotUsecase interface.
func NewMockSnapshotUsecase ¶
func NewMockSnapshotUsecase(ctrl *gomock.Controller) *MockSnapshotUsecase
NewMockSnapshotUsecase creates a new mock instance.
func (*MockSnapshotUsecase) CreateByGroup ¶
func (m *MockSnapshotUsecase) CreateByGroup(groupName, backupType string) error
CreateByGroup mocks base method.
func (*MockSnapshotUsecase) CreateByVolume ¶
func (m *MockSnapshotUsecase) CreateByVolume(volume *domain.ZfsVolume, backupType domain.BackupType) error
CreateByVolume mocks base method.
func (*MockSnapshotUsecase) EXPECT ¶
func (m *MockSnapshotUsecase) EXPECT() *MockSnapshotUsecaseMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockSnapshotUsecaseMockRecorder ¶
type MockSnapshotUsecaseMockRecorder struct {
// contains filtered or unexported fields
}
MockSnapshotUsecaseMockRecorder is the mock recorder for MockSnapshotUsecase.
func (*MockSnapshotUsecaseMockRecorder) CreateByGroup ¶
func (mr *MockSnapshotUsecaseMockRecorder) CreateByGroup(groupName, backupType any) *gomock.Call
CreateByGroup indicates an expected call of CreateByGroup.
func (*MockSnapshotUsecaseMockRecorder) CreateByVolume ¶
func (mr *MockSnapshotUsecaseMockRecorder) CreateByVolume(volume, backupType any) *gomock.Call
CreateByVolume indicates an expected call of CreateByVolume.
type MockStorageDriver ¶
type MockStorageDriver struct {
// contains filtered or unexported fields
}
MockStorageDriver is a mock of StorageDriver interface.
func NewMockStorageDriver ¶
func NewMockStorageDriver(ctrl *gomock.Controller) *MockStorageDriver
NewMockStorageDriver creates a new mock instance.
func (*MockStorageDriver) Delete ¶
func (m *MockStorageDriver) Delete(ctx context.Context, dp *domain.DeleteParameters) error
Delete mocks base method.
func (*MockStorageDriver) Download ¶
func (m *MockStorageDriver) Download(ctx context.Context, dp *domain.DownloadParameters, writer io.Writer) error
Download mocks base method.
func (*MockStorageDriver) EXPECT ¶
func (m *MockStorageDriver) EXPECT() *MockStorageDriverMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockStorageDriver) Upload ¶
func (m *MockStorageDriver) Upload(ctx context.Context, up *domain.UploadParameters, reader io.Reader) (*domain.UploadResponse, error)
Upload mocks base method.
type MockStorageDriverMockRecorder ¶
type MockStorageDriverMockRecorder struct {
// contains filtered or unexported fields
}
MockStorageDriverMockRecorder is the mock recorder for MockStorageDriver.
func (*MockStorageDriverMockRecorder) Delete ¶
func (mr *MockStorageDriverMockRecorder) Delete(ctx, dp any) *gomock.Call
Delete indicates an expected call of Delete.
type MockVolumeRepository ¶
type MockVolumeRepository struct {
// contains filtered or unexported fields
}
MockVolumeRepository is a mock of VolumeRepository interface.
func NewMockVolumeRepository ¶
func NewMockVolumeRepository(ctrl *gomock.Controller) *MockVolumeRepository
NewMockVolumeRepository creates a new mock instance.
func (*MockVolumeRepository) EXPECT ¶
func (m *MockVolumeRepository) EXPECT() *MockVolumeRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockVolumeRepository) ListVolumes ¶
func (m *MockVolumeRepository) ListVolumes() ([]*domain.ZfsVolume, error)
ListVolumes mocks base method.
func (*MockVolumeRepository) ListVolumesByGroup ¶
func (m *MockVolumeRepository) ListVolumesByGroup(groupName string) ([]*domain.ZfsVolume, error)
ListVolumesByGroup mocks base method.
func (*MockVolumeRepository) TagVolumeWithGroup ¶
func (m *MockVolumeRepository) TagVolumeWithGroup(volume *domain.ZfsVolume) error
TagVolumeWithGroup mocks base method.
type MockVolumeRepositoryMockRecorder ¶
type MockVolumeRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockVolumeRepositoryMockRecorder is the mock recorder for MockVolumeRepository.
func (*MockVolumeRepositoryMockRecorder) ListVolumes ¶
func (mr *MockVolumeRepositoryMockRecorder) ListVolumes() *gomock.Call
ListVolumes indicates an expected call of ListVolumes.
func (*MockVolumeRepositoryMockRecorder) ListVolumesByGroup ¶
func (mr *MockVolumeRepositoryMockRecorder) ListVolumesByGroup(groupName any) *gomock.Call
ListVolumesByGroup indicates an expected call of ListVolumesByGroup.
func (*MockVolumeRepositoryMockRecorder) TagVolumeWithGroup ¶
func (mr *MockVolumeRepositoryMockRecorder) TagVolumeWithGroup(volume any) *gomock.Call
TagVolumeWithGroup indicates an expected call of TagVolumeWithGroup.
type MockVolumeUsecase ¶
type MockVolumeUsecase struct {
// contains filtered or unexported fields
}
MockVolumeUsecase is a mock of VolumeUsecase interface.
func NewMockVolumeUsecase ¶
func NewMockVolumeUsecase(ctrl *gomock.Controller) *MockVolumeUsecase
NewMockVolumeUsecase creates a new mock instance.
func (*MockVolumeUsecase) AddToGroup ¶
func (m *MockVolumeUsecase) AddToGroup(volumeName, groupName string) error
AddToGroup mocks base method.
func (*MockVolumeUsecase) EXPECT ¶
func (m *MockVolumeUsecase) EXPECT() *MockVolumeUsecaseMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockVolumeUsecaseMockRecorder ¶
type MockVolumeUsecaseMockRecorder struct {
// contains filtered or unexported fields
}
MockVolumeUsecaseMockRecorder is the mock recorder for MockVolumeUsecase.
func (*MockVolumeUsecaseMockRecorder) AddToGroup ¶
func (mr *MockVolumeUsecaseMockRecorder) AddToGroup(volumeName, groupName any) *gomock.Call
AddToGroup indicates an expected call of AddToGroup.
type MockZfsDriver ¶
type MockZfsDriver struct {
// contains filtered or unexported fields
}
MockZfsDriver is a mock of ZfsDriver interface.
func NewMockZfsDriver ¶
func NewMockZfsDriver(ctrl *gomock.Controller) *MockZfsDriver
NewMockZfsDriver creates a new mock instance.
func (*MockZfsDriver) Destroy ¶
func (m *MockZfsDriver) Destroy(zfsEntity string) error
Destroy mocks base method.
func (*MockZfsDriver) EXPECT ¶
func (m *MockZfsDriver) EXPECT() *MockZfsDriverMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockZfsDriver) GetField ¶
func (m *MockZfsDriver) GetField(fieldName, zfsEntity string) *exec.Cmd
GetField mocks base method.
func (*MockZfsDriver) List ¶
func (m *MockZfsDriver) List(p *domain.ListParameters) *exec.Cmd
List mocks base method.
func (*MockZfsDriver) Receive ¶
func (m *MockZfsDriver) Receive(p *domain.ReceiveParameters) *exec.Cmd
Receive mocks base method.
func (*MockZfsDriver) Send ¶
func (m *MockZfsDriver) Send(p *domain.SendParameters) *exec.Cmd
Send mocks base method.
func (*MockZfsDriver) SetField ¶
func (m *MockZfsDriver) SetField(fieldName, value, zfsEntity string) error
SetField mocks base method.
type MockZfsDriverMockRecorder ¶
type MockZfsDriverMockRecorder struct {
// contains filtered or unexported fields
}
MockZfsDriverMockRecorder is the mock recorder for MockZfsDriver.
func (*MockZfsDriverMockRecorder) Destroy ¶
func (mr *MockZfsDriverMockRecorder) Destroy(zfsEntity any) *gomock.Call
Destroy indicates an expected call of Destroy.
func (*MockZfsDriverMockRecorder) GetField ¶
func (mr *MockZfsDriverMockRecorder) GetField(fieldName, zfsEntity any) *gomock.Call
GetField indicates an expected call of GetField.
func (*MockZfsDriverMockRecorder) List ¶
func (mr *MockZfsDriverMockRecorder) List(p any) *gomock.Call
List indicates an expected call of List.
func (*MockZfsDriverMockRecorder) Receive ¶
func (mr *MockZfsDriverMockRecorder) Receive(p any) *gomock.Call
Receive indicates an expected call of Receive.
func (*MockZfsDriverMockRecorder) Send ¶
func (mr *MockZfsDriverMockRecorder) Send(p any) *gomock.Call
Send indicates an expected call of Send.