mocks

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockCloud

type MockCloud struct {
	// contains filtered or unexported fields
}

MockCloud is a mock of Cloud interface.

func NewMockCloud

func NewMockCloud(ctrl *gomock.Controller) *MockCloud

NewMockCloud creates a new mock instance.

func (*MockCloud) AttachDisk

func (m *MockCloud) AttachDisk(volumeID, nodeID string) error

AttachDisk mocks base method.

func (*MockCloud) CreateDisk

func (m *MockCloud) CreateDisk(volumeName string, diskOptions *cloud.DiskOptions) (*cloud.Disk, error)

CreateDisk mocks base method.

func (*MockCloud) DeleteDisk

func (m *MockCloud) DeleteDisk(volumeID string) error

DeleteDisk mocks base method.

func (*MockCloud) DetachDisk

func (m *MockCloud) DetachDisk(volumeID, nodeID string) error

DetachDisk mocks base method.

func (*MockCloud) EXPECT

func (m *MockCloud) EXPECT() *MockCloudMockRecorder

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

func (*MockCloud) GetDiskByID

func (m *MockCloud) GetDiskByID(volumeID string) (*cloud.Disk, error)

GetDiskByID mocks base method.

func (*MockCloud) GetDiskByName

func (m *MockCloud) GetDiskByName(name string) (*cloud.Disk, error)

GetDiskByName mocks base method.

func (*MockCloud) GetPVMInstanceByID

func (m *MockCloud) GetPVMInstanceByID(instanceID string) (*cloud.PVMInstance, error)

GetPVMInstanceByID mocks base method.

func (*MockCloud) GetPVMInstanceByName

func (m *MockCloud) GetPVMInstanceByName(instanceName string) (*cloud.PVMInstance, error)

GetPVMInstanceByName mocks base method.

func (*MockCloud) GetPVMInstanceDetails

func (m *MockCloud) GetPVMInstanceDetails(instanceID string) (*models.PVMInstance, error)

GetPVMInstanceDetails mocks base method.

func (*MockCloud) IsAttached

func (m *MockCloud) IsAttached(volumeID, nodeID string) error

IsAttached mocks base method.

func (*MockCloud) ResizeDisk

func (m *MockCloud) ResizeDisk(volumeID string, reqSize int64) (int64, error)

ResizeDisk mocks base method.

func (*MockCloud) UpdateStoragePoolAffinity

func (m *MockCloud) UpdateStoragePoolAffinity(instanceID string) error

UpdateStoragePoolAffinity mocks base method.

func (*MockCloud) WaitForVolumeState

func (m *MockCloud) WaitForVolumeState(volumeID, state string) error

WaitForVolumeState mocks base method.

type MockCloudMockRecorder

type MockCloudMockRecorder struct {
	// contains filtered or unexported fields
}

MockCloudMockRecorder is the mock recorder for MockCloud.

func (*MockCloudMockRecorder) AttachDisk

func (mr *MockCloudMockRecorder) AttachDisk(volumeID, nodeID any) *gomock.Call

AttachDisk indicates an expected call of AttachDisk.

func (*MockCloudMockRecorder) CreateDisk

func (mr *MockCloudMockRecorder) CreateDisk(volumeName, diskOptions any) *gomock.Call

CreateDisk indicates an expected call of CreateDisk.

func (*MockCloudMockRecorder) DeleteDisk

func (mr *MockCloudMockRecorder) DeleteDisk(volumeID any) *gomock.Call

DeleteDisk indicates an expected call of DeleteDisk.

func (*MockCloudMockRecorder) DetachDisk

func (mr *MockCloudMockRecorder) DetachDisk(volumeID, nodeID any) *gomock.Call

DetachDisk indicates an expected call of DetachDisk.

func (*MockCloudMockRecorder) GetDiskByID

func (mr *MockCloudMockRecorder) GetDiskByID(volumeID any) *gomock.Call

GetDiskByID indicates an expected call of GetDiskByID.

func (*MockCloudMockRecorder) GetDiskByName

func (mr *MockCloudMockRecorder) GetDiskByName(name any) *gomock.Call

GetDiskByName indicates an expected call of GetDiskByName.

func (*MockCloudMockRecorder) GetPVMInstanceByID

func (mr *MockCloudMockRecorder) GetPVMInstanceByID(instanceID any) *gomock.Call

GetPVMInstanceByID indicates an expected call of GetPVMInstanceByID.

func (*MockCloudMockRecorder) GetPVMInstanceByName

func (mr *MockCloudMockRecorder) GetPVMInstanceByName(instanceName any) *gomock.Call

GetPVMInstanceByName indicates an expected call of GetPVMInstanceByName.

func (*MockCloudMockRecorder) GetPVMInstanceDetails

func (mr *MockCloudMockRecorder) GetPVMInstanceDetails(instanceID any) *gomock.Call

GetPVMInstanceDetails indicates an expected call of GetPVMInstanceDetails.

func (*MockCloudMockRecorder) IsAttached

func (mr *MockCloudMockRecorder) IsAttached(volumeID, nodeID any) *gomock.Call

IsAttached indicates an expected call of IsAttached.

func (*MockCloudMockRecorder) ResizeDisk

func (mr *MockCloudMockRecorder) ResizeDisk(volumeID, reqSize any) *gomock.Call

ResizeDisk indicates an expected call of ResizeDisk.

func (*MockCloudMockRecorder) UpdateStoragePoolAffinity

func (mr *MockCloudMockRecorder) UpdateStoragePoolAffinity(instanceID any) *gomock.Call

UpdateStoragePoolAffinity indicates an expected call of UpdateStoragePoolAffinity.

func (*MockCloudMockRecorder) WaitForVolumeState

func (mr *MockCloudMockRecorder) WaitForVolumeState(volumeID, state any) *gomock.Call

WaitForVolumeState indicates an expected call of WaitForVolumeState.

Jump to

Keyboard shortcuts

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