Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockCloud
- func (m *MockCloud) AttachDisk(volumeID, nodeID string) error
- func (m *MockCloud) CreateDisk(volumeName string, diskOptions *cloud.DiskOptions) (*cloud.Disk, error)
- func (m *MockCloud) DeleteDisk(volumeID string) error
- func (m *MockCloud) DetachDisk(volumeID, nodeID string) error
- func (m *MockCloud) EXPECT() *MockCloudMockRecorder
- func (m *MockCloud) GetDiskByID(volumeID string) (*cloud.Disk, error)
- func (m *MockCloud) GetDiskByName(name string) (*cloud.Disk, error)
- func (m *MockCloud) GetPVMInstanceByID(instanceID string) (*cloud.PVMInstance, error)
- func (m *MockCloud) GetPVMInstanceByName(instanceName string) (*cloud.PVMInstance, error)
- func (m *MockCloud) GetPVMInstanceDetails(instanceID string) (*models.PVMInstance, error)
- func (m *MockCloud) IsAttached(volumeID, nodeID string) error
- func (m *MockCloud) ResizeDisk(volumeID string, reqSize int64) (int64, error)
- func (m *MockCloud) UpdateStoragePoolAffinity(instanceID string) error
- func (m *MockCloud) WaitForVolumeState(volumeID, state string) error
- type MockCloudMockRecorder
- func (mr *MockCloudMockRecorder) AttachDisk(volumeID, nodeID any) *gomock.Call
- func (mr *MockCloudMockRecorder) CreateDisk(volumeName, diskOptions any) *gomock.Call
- func (mr *MockCloudMockRecorder) DeleteDisk(volumeID any) *gomock.Call
- func (mr *MockCloudMockRecorder) DetachDisk(volumeID, nodeID any) *gomock.Call
- func (mr *MockCloudMockRecorder) GetDiskByID(volumeID any) *gomock.Call
- func (mr *MockCloudMockRecorder) GetDiskByName(name any) *gomock.Call
- func (mr *MockCloudMockRecorder) GetPVMInstanceByID(instanceID any) *gomock.Call
- func (mr *MockCloudMockRecorder) GetPVMInstanceByName(instanceName any) *gomock.Call
- func (mr *MockCloudMockRecorder) GetPVMInstanceDetails(instanceID any) *gomock.Call
- func (mr *MockCloudMockRecorder) IsAttached(volumeID, nodeID any) *gomock.Call
- func (mr *MockCloudMockRecorder) ResizeDisk(volumeID, reqSize any) *gomock.Call
- func (mr *MockCloudMockRecorder) UpdateStoragePoolAffinity(instanceID any) *gomock.Call
- func (mr *MockCloudMockRecorder) WaitForVolumeState(volumeID, state any) *gomock.Call
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 ¶
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 ¶
DeleteDisk mocks base method.
func (*MockCloud) DetachDisk ¶
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 ¶
GetDiskByID mocks base method.
func (*MockCloud) GetDiskByName ¶
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 ¶
IsAttached mocks base method.
func (*MockCloud) ResizeDisk ¶
ResizeDisk mocks base method.
func (*MockCloud) UpdateStoragePoolAffinity ¶
UpdateStoragePoolAffinity mocks base method.
func (*MockCloud) WaitForVolumeState ¶
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.