Documentation ¶
Overview ¶
Package mock_api is a generated GoMock package.
Index ¶
- type MockGCPClient
- func (m *MockGCPClient) ChangeVolumeUnixPermissions(arg0 context.Context, arg1 *api.Volume, arg2 string) (*api.Volume, error)
- func (m *MockGCPClient) CreateBackup(arg0 context.Context, arg1 *api.BackupCreateRequest) error
- func (m *MockGCPClient) CreateSnapshot(arg0 context.Context, arg1 *api.SnapshotCreateRequest) error
- func (m *MockGCPClient) CreateVolume(arg0 context.Context, arg1 *api.VolumeCreateRequest) error
- func (m *MockGCPClient) DeleteBackup(arg0 context.Context, arg1 *api.Volume, arg2 *api.Backup) error
- func (m *MockGCPClient) DeleteSnapshot(arg0 context.Context, arg1 *api.Volume, arg2 *api.Snapshot) error
- func (m *MockGCPClient) DeleteVolume(arg0 context.Context, arg1 *api.Volume) error
- func (m *MockGCPClient) EXPECT() *MockGCPClientMockRecorder
- func (m *MockGCPClient) GetBackupByID(arg0 context.Context, arg1 string) (*api.Backup, error)
- func (m *MockGCPClient) GetBackupForVolume(arg0 context.Context, arg1 *api.Volume, arg2 string) (*api.Backup, error)
- func (m *MockGCPClient) GetBackupsForVolume(arg0 context.Context, arg1 *api.Volume) (*[]api.Backup, error)
- func (m *MockGCPClient) GetServiceLevels(arg0 context.Context) (map[string]string, error)
- func (m *MockGCPClient) GetSnapshotByID(arg0 context.Context, arg1 string) (*api.Snapshot, error)
- func (m *MockGCPClient) GetSnapshotForVolume(arg0 context.Context, arg1 *api.Volume, arg2 string) (*api.Snapshot, error)
- func (m *MockGCPClient) GetSnapshotsForVolume(arg0 context.Context, arg1 *api.Volume) (*[]api.Snapshot, error)
- func (m *MockGCPClient) GetVersion(arg0 context.Context) (*utils.Version, *utils.Version, error)
- func (m *MockGCPClient) GetVolumeByCreationToken(arg0 context.Context, arg1 string) (*api.Volume, error)
- func (m *MockGCPClient) GetVolumeByID(arg0 context.Context, arg1 string) (*api.Volume, error)
- func (m *MockGCPClient) GetVolumeByName(arg0 context.Context, arg1 string) (*api.Volume, error)
- func (m *MockGCPClient) GetVolumes(arg0 context.Context) (*[]api.Volume, error)
- func (m *MockGCPClient) InvokeAPI(arg0 context.Context, arg1 []byte, arg2, arg3 string) (*http.Response, []byte, error)
- func (m *MockGCPClient) RelabelVolume(arg0 context.Context, arg1 *api.Volume, arg2 []string) (*api.Volume, error)
- func (m *MockGCPClient) RenameRelabelVolume(arg0 context.Context, arg1 *api.Volume, arg2 string, arg3 []string) (*api.Volume, error)
- func (m *MockGCPClient) RenameVolume(arg0 context.Context, arg1 *api.Volume, arg2 string) (*api.Volume, error)
- func (m *MockGCPClient) ResizeVolume(arg0 context.Context, arg1 *api.Volume, arg2 int64) (*api.Volume, error)
- func (m *MockGCPClient) RestoreSnapshot(arg0 context.Context, arg1 *api.Volume, arg2 *api.Snapshot) error
- func (m *MockGCPClient) VolumeExistsByCreationToken(arg0 context.Context, arg1 string) (bool, *api.Volume, error)
- func (m *MockGCPClient) WaitForBackupStates(arg0 context.Context, arg1 *api.Backup, arg2, arg3 []string, ...) error
- func (m *MockGCPClient) WaitForSnapshotState(arg0 context.Context, arg1 *api.Snapshot, arg2 string, arg3 []string, ...) error
- func (m *MockGCPClient) WaitForVolumeStates(arg0 context.Context, arg1 *api.Volume, arg2, arg3 []string, ...) (string, error)
- type MockGCPClientMockRecorder
- func (mr *MockGCPClientMockRecorder) ChangeVolumeUnixPermissions(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockGCPClientMockRecorder) CreateBackup(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockGCPClientMockRecorder) CreateSnapshot(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockGCPClientMockRecorder) CreateVolume(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockGCPClientMockRecorder) DeleteBackup(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockGCPClientMockRecorder) DeleteSnapshot(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockGCPClientMockRecorder) DeleteVolume(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockGCPClientMockRecorder) GetBackupByID(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockGCPClientMockRecorder) GetBackupForVolume(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockGCPClientMockRecorder) GetBackupsForVolume(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockGCPClientMockRecorder) GetServiceLevels(arg0 interface{}) *gomock.Call
- func (mr *MockGCPClientMockRecorder) GetSnapshotByID(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockGCPClientMockRecorder) GetSnapshotForVolume(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockGCPClientMockRecorder) GetSnapshotsForVolume(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockGCPClientMockRecorder) GetVersion(arg0 interface{}) *gomock.Call
- func (mr *MockGCPClientMockRecorder) GetVolumeByCreationToken(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockGCPClientMockRecorder) GetVolumeByID(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockGCPClientMockRecorder) GetVolumeByName(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockGCPClientMockRecorder) GetVolumes(arg0 interface{}) *gomock.Call
- func (mr *MockGCPClientMockRecorder) InvokeAPI(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockGCPClientMockRecorder) RelabelVolume(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockGCPClientMockRecorder) RenameRelabelVolume(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockGCPClientMockRecorder) RenameVolume(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockGCPClientMockRecorder) ResizeVolume(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockGCPClientMockRecorder) RestoreSnapshot(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockGCPClientMockRecorder) VolumeExistsByCreationToken(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockGCPClientMockRecorder) WaitForBackupStates(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
- func (mr *MockGCPClientMockRecorder) WaitForSnapshotState(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
- func (mr *MockGCPClientMockRecorder) WaitForVolumeStates(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockGCPClient ¶
type MockGCPClient struct {
// contains filtered or unexported fields
}
MockGCPClient is a mock of GCPClient interface.
func NewMockGCPClient ¶
func NewMockGCPClient(ctrl *gomock.Controller) *MockGCPClient
NewMockGCPClient creates a new mock instance.
func (*MockGCPClient) ChangeVolumeUnixPermissions ¶
func (m *MockGCPClient) ChangeVolumeUnixPermissions(arg0 context.Context, arg1 *api.Volume, arg2 string) (*api.Volume, error)
ChangeVolumeUnixPermissions mocks base method.
func (*MockGCPClient) CreateBackup ¶
func (m *MockGCPClient) CreateBackup(arg0 context.Context, arg1 *api.BackupCreateRequest) error
CreateBackup mocks base method.
func (*MockGCPClient) CreateSnapshot ¶
func (m *MockGCPClient) CreateSnapshot(arg0 context.Context, arg1 *api.SnapshotCreateRequest) error
CreateSnapshot mocks base method.
func (*MockGCPClient) CreateVolume ¶
func (m *MockGCPClient) CreateVolume(arg0 context.Context, arg1 *api.VolumeCreateRequest) error
CreateVolume mocks base method.
func (*MockGCPClient) DeleteBackup ¶
func (m *MockGCPClient) DeleteBackup(arg0 context.Context, arg1 *api.Volume, arg2 *api.Backup) error
DeleteBackup mocks base method.
func (*MockGCPClient) DeleteSnapshot ¶
func (m *MockGCPClient) DeleteSnapshot(arg0 context.Context, arg1 *api.Volume, arg2 *api.Snapshot) error
DeleteSnapshot mocks base method.
func (*MockGCPClient) DeleteVolume ¶
DeleteVolume mocks base method.
func (*MockGCPClient) EXPECT ¶
func (m *MockGCPClient) EXPECT() *MockGCPClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockGCPClient) GetBackupByID ¶
GetBackupByID mocks base method.
func (*MockGCPClient) GetBackupForVolume ¶
func (m *MockGCPClient) GetBackupForVolume(arg0 context.Context, arg1 *api.Volume, arg2 string) (*api.Backup, error)
GetBackupForVolume mocks base method.
func (*MockGCPClient) GetBackupsForVolume ¶
func (m *MockGCPClient) GetBackupsForVolume(arg0 context.Context, arg1 *api.Volume) (*[]api.Backup, error)
GetBackupsForVolume mocks base method.
func (*MockGCPClient) GetServiceLevels ¶
GetServiceLevels mocks base method.
func (*MockGCPClient) GetSnapshotByID ¶
GetSnapshotByID mocks base method.
func (*MockGCPClient) GetSnapshotForVolume ¶
func (m *MockGCPClient) GetSnapshotForVolume(arg0 context.Context, arg1 *api.Volume, arg2 string) (*api.Snapshot, error)
GetSnapshotForVolume mocks base method.
func (*MockGCPClient) GetSnapshotsForVolume ¶
func (m *MockGCPClient) GetSnapshotsForVolume(arg0 context.Context, arg1 *api.Volume) (*[]api.Snapshot, error)
GetSnapshotsForVolume mocks base method.
func (*MockGCPClient) GetVersion ¶
GetVersion mocks base method.
func (*MockGCPClient) GetVolumeByCreationToken ¶
func (m *MockGCPClient) GetVolumeByCreationToken(arg0 context.Context, arg1 string) (*api.Volume, error)
GetVolumeByCreationToken mocks base method.
func (*MockGCPClient) GetVolumeByID ¶
GetVolumeByID mocks base method.
func (*MockGCPClient) GetVolumeByName ¶
GetVolumeByName mocks base method.
func (*MockGCPClient) GetVolumes ¶
GetVolumes mocks base method.
func (*MockGCPClient) InvokeAPI ¶
func (m *MockGCPClient) InvokeAPI(arg0 context.Context, arg1 []byte, arg2, arg3 string) (*http.Response, []byte, error)
InvokeAPI mocks base method.
func (*MockGCPClient) RelabelVolume ¶
func (m *MockGCPClient) RelabelVolume(arg0 context.Context, arg1 *api.Volume, arg2 []string) (*api.Volume, error)
RelabelVolume mocks base method.
func (*MockGCPClient) RenameRelabelVolume ¶
func (m *MockGCPClient) RenameRelabelVolume(arg0 context.Context, arg1 *api.Volume, arg2 string, arg3 []string) (*api.Volume, error)
RenameRelabelVolume mocks base method.
func (*MockGCPClient) RenameVolume ¶
func (m *MockGCPClient) RenameVolume(arg0 context.Context, arg1 *api.Volume, arg2 string) (*api.Volume, error)
RenameVolume mocks base method.
func (*MockGCPClient) ResizeVolume ¶
func (m *MockGCPClient) ResizeVolume(arg0 context.Context, arg1 *api.Volume, arg2 int64) (*api.Volume, error)
ResizeVolume mocks base method.
func (*MockGCPClient) RestoreSnapshot ¶
func (m *MockGCPClient) RestoreSnapshot(arg0 context.Context, arg1 *api.Volume, arg2 *api.Snapshot) error
RestoreSnapshot mocks base method.
func (*MockGCPClient) VolumeExistsByCreationToken ¶
func (m *MockGCPClient) VolumeExistsByCreationToken(arg0 context.Context, arg1 string) (bool, *api.Volume, error)
VolumeExistsByCreationToken mocks base method.
func (*MockGCPClient) WaitForBackupStates ¶
func (m *MockGCPClient) WaitForBackupStates(arg0 context.Context, arg1 *api.Backup, arg2, arg3 []string, arg4 time.Duration) error
WaitForBackupStates mocks base method.
type MockGCPClientMockRecorder ¶
type MockGCPClientMockRecorder struct {
// contains filtered or unexported fields
}
MockGCPClientMockRecorder is the mock recorder for MockGCPClient.
func (*MockGCPClientMockRecorder) ChangeVolumeUnixPermissions ¶
func (mr *MockGCPClientMockRecorder) ChangeVolumeUnixPermissions(arg0, arg1, arg2 interface{}) *gomock.Call
ChangeVolumeUnixPermissions indicates an expected call of ChangeVolumeUnixPermissions.
func (*MockGCPClientMockRecorder) CreateBackup ¶
func (mr *MockGCPClientMockRecorder) CreateBackup(arg0, arg1 interface{}) *gomock.Call
CreateBackup indicates an expected call of CreateBackup.
func (*MockGCPClientMockRecorder) CreateSnapshot ¶
func (mr *MockGCPClientMockRecorder) CreateSnapshot(arg0, arg1 interface{}) *gomock.Call
CreateSnapshot indicates an expected call of CreateSnapshot.
func (*MockGCPClientMockRecorder) CreateVolume ¶
func (mr *MockGCPClientMockRecorder) CreateVolume(arg0, arg1 interface{}) *gomock.Call
CreateVolume indicates an expected call of CreateVolume.
func (*MockGCPClientMockRecorder) DeleteBackup ¶
func (mr *MockGCPClientMockRecorder) DeleteBackup(arg0, arg1, arg2 interface{}) *gomock.Call
DeleteBackup indicates an expected call of DeleteBackup.
func (*MockGCPClientMockRecorder) DeleteSnapshot ¶
func (mr *MockGCPClientMockRecorder) DeleteSnapshot(arg0, arg1, arg2 interface{}) *gomock.Call
DeleteSnapshot indicates an expected call of DeleteSnapshot.
func (*MockGCPClientMockRecorder) DeleteVolume ¶
func (mr *MockGCPClientMockRecorder) DeleteVolume(arg0, arg1 interface{}) *gomock.Call
DeleteVolume indicates an expected call of DeleteVolume.
func (*MockGCPClientMockRecorder) GetBackupByID ¶
func (mr *MockGCPClientMockRecorder) GetBackupByID(arg0, arg1 interface{}) *gomock.Call
GetBackupByID indicates an expected call of GetBackupByID.
func (*MockGCPClientMockRecorder) GetBackupForVolume ¶
func (mr *MockGCPClientMockRecorder) GetBackupForVolume(arg0, arg1, arg2 interface{}) *gomock.Call
GetBackupForVolume indicates an expected call of GetBackupForVolume.
func (*MockGCPClientMockRecorder) GetBackupsForVolume ¶
func (mr *MockGCPClientMockRecorder) GetBackupsForVolume(arg0, arg1 interface{}) *gomock.Call
GetBackupsForVolume indicates an expected call of GetBackupsForVolume.
func (*MockGCPClientMockRecorder) GetServiceLevels ¶
func (mr *MockGCPClientMockRecorder) GetServiceLevels(arg0 interface{}) *gomock.Call
GetServiceLevels indicates an expected call of GetServiceLevels.
func (*MockGCPClientMockRecorder) GetSnapshotByID ¶
func (mr *MockGCPClientMockRecorder) GetSnapshotByID(arg0, arg1 interface{}) *gomock.Call
GetSnapshotByID indicates an expected call of GetSnapshotByID.
func (*MockGCPClientMockRecorder) GetSnapshotForVolume ¶
func (mr *MockGCPClientMockRecorder) GetSnapshotForVolume(arg0, arg1, arg2 interface{}) *gomock.Call
GetSnapshotForVolume indicates an expected call of GetSnapshotForVolume.
func (*MockGCPClientMockRecorder) GetSnapshotsForVolume ¶
func (mr *MockGCPClientMockRecorder) GetSnapshotsForVolume(arg0, arg1 interface{}) *gomock.Call
GetSnapshotsForVolume indicates an expected call of GetSnapshotsForVolume.
func (*MockGCPClientMockRecorder) GetVersion ¶
func (mr *MockGCPClientMockRecorder) GetVersion(arg0 interface{}) *gomock.Call
GetVersion indicates an expected call of GetVersion.
func (*MockGCPClientMockRecorder) GetVolumeByCreationToken ¶
func (mr *MockGCPClientMockRecorder) GetVolumeByCreationToken(arg0, arg1 interface{}) *gomock.Call
GetVolumeByCreationToken indicates an expected call of GetVolumeByCreationToken.
func (*MockGCPClientMockRecorder) GetVolumeByID ¶
func (mr *MockGCPClientMockRecorder) GetVolumeByID(arg0, arg1 interface{}) *gomock.Call
GetVolumeByID indicates an expected call of GetVolumeByID.
func (*MockGCPClientMockRecorder) GetVolumeByName ¶
func (mr *MockGCPClientMockRecorder) GetVolumeByName(arg0, arg1 interface{}) *gomock.Call
GetVolumeByName indicates an expected call of GetVolumeByName.
func (*MockGCPClientMockRecorder) GetVolumes ¶
func (mr *MockGCPClientMockRecorder) GetVolumes(arg0 interface{}) *gomock.Call
GetVolumes indicates an expected call of GetVolumes.
func (*MockGCPClientMockRecorder) InvokeAPI ¶
func (mr *MockGCPClientMockRecorder) InvokeAPI(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
InvokeAPI indicates an expected call of InvokeAPI.
func (*MockGCPClientMockRecorder) RelabelVolume ¶
func (mr *MockGCPClientMockRecorder) RelabelVolume(arg0, arg1, arg2 interface{}) *gomock.Call
RelabelVolume indicates an expected call of RelabelVolume.
func (*MockGCPClientMockRecorder) RenameRelabelVolume ¶
func (mr *MockGCPClientMockRecorder) RenameRelabelVolume(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
RenameRelabelVolume indicates an expected call of RenameRelabelVolume.
func (*MockGCPClientMockRecorder) RenameVolume ¶
func (mr *MockGCPClientMockRecorder) RenameVolume(arg0, arg1, arg2 interface{}) *gomock.Call
RenameVolume indicates an expected call of RenameVolume.
func (*MockGCPClientMockRecorder) ResizeVolume ¶
func (mr *MockGCPClientMockRecorder) ResizeVolume(arg0, arg1, arg2 interface{}) *gomock.Call
ResizeVolume indicates an expected call of ResizeVolume.
func (*MockGCPClientMockRecorder) RestoreSnapshot ¶
func (mr *MockGCPClientMockRecorder) RestoreSnapshot(arg0, arg1, arg2 interface{}) *gomock.Call
RestoreSnapshot indicates an expected call of RestoreSnapshot.
func (*MockGCPClientMockRecorder) VolumeExistsByCreationToken ¶
func (mr *MockGCPClientMockRecorder) VolumeExistsByCreationToken(arg0, arg1 interface{}) *gomock.Call
VolumeExistsByCreationToken indicates an expected call of VolumeExistsByCreationToken.
func (*MockGCPClientMockRecorder) WaitForBackupStates ¶
func (mr *MockGCPClientMockRecorder) WaitForBackupStates(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
WaitForBackupStates indicates an expected call of WaitForBackupStates.
func (*MockGCPClientMockRecorder) WaitForSnapshotState ¶
func (mr *MockGCPClientMockRecorder) WaitForSnapshotState(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
WaitForSnapshotState indicates an expected call of WaitForSnapshotState.
func (*MockGCPClientMockRecorder) WaitForVolumeStates ¶
func (mr *MockGCPClientMockRecorder) WaitForVolumeStates(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
WaitForVolumeStates indicates an expected call of WaitForVolumeStates.