mock_api

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package mock_api is a generated GoMock package.

Index

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

func (m *MockGCPClient) DeleteVolume(arg0 context.Context, arg1 *api.Volume) error

DeleteVolume mocks base method.

func (*MockGCPClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockGCPClient) GetBackupByID

func (m *MockGCPClient) GetBackupByID(arg0 context.Context, arg1 string) (*api.Backup, error)

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

func (m *MockGCPClient) GetServiceLevels(arg0 context.Context) (map[string]string, error)

GetServiceLevels mocks base method.

func (*MockGCPClient) GetSnapshotByID

func (m *MockGCPClient) GetSnapshotByID(arg0 context.Context, arg1 string) (*api.Snapshot, error)

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

func (m *MockGCPClient) GetVersion(arg0 context.Context) (*utils.Version, *utils.Version, error)

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

func (m *MockGCPClient) GetVolumeByID(arg0 context.Context, arg1 string) (*api.Volume, error)

GetVolumeByID mocks base method.

func (*MockGCPClient) GetVolumeByName

func (m *MockGCPClient) GetVolumeByName(arg0 context.Context, arg1 string) (*api.Volume, error)

GetVolumeByName mocks base method.

func (*MockGCPClient) GetVolumes

func (m *MockGCPClient) GetVolumes(arg0 context.Context) (*[]api.Volume, error)

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.

func (*MockGCPClient) WaitForSnapshotState

func (m *MockGCPClient) WaitForSnapshotState(arg0 context.Context, arg1 *api.Snapshot, arg2 string, arg3 []string, arg4 time.Duration) error

WaitForSnapshotState mocks base method.

func (*MockGCPClient) WaitForVolumeStates

func (m *MockGCPClient) WaitForVolumeStates(arg0 context.Context, arg1 *api.Volume, arg2, arg3 []string, arg4 time.Duration) (string, error)

WaitForVolumeStates 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL