mocks

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package mock_ah is a generated GoMock package.

Package mock_driver is a generated GoMock package.

Package mock_ah is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockInstancesAPI

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

MockInstancesAPI is a mock of InstancesAPI interface.

func NewMockInstancesAPI

func NewMockInstancesAPI(ctrl *gomock.Controller) *MockInstancesAPI

NewMockInstancesAPI creates a new mock instance.

func (*MockInstancesAPI) ActionInfo

func (m *MockInstancesAPI) ActionInfo(arg0 context.Context, arg1, arg2 string) (*ah.InstanceAction, error)

ActionInfo mocks base method.

func (*MockInstancesAPI) Actions

func (m *MockInstancesAPI) Actions(arg0 context.Context, arg1 string) ([]ah.InstanceAction, error)

Actions mocks base method.

func (*MockInstancesAPI) AttachVolume

func (m *MockInstancesAPI) AttachVolume(arg0 context.Context, arg1, arg2 string) (*ah.Action, error)

AttachVolume mocks base method.

func (*MockInstancesAPI) AvailableVolumes

func (m *MockInstancesAPI) AvailableVolumes(arg0 context.Context, arg1 string, arg2 *ah.ListOptions) ([]ah.Volume, *ah.Meta, error)

AvailableVolumes mocks base method.

func (*MockInstancesAPI) Create

Create mocks base method.

func (*MockInstancesAPI) CreateBackup

func (m *MockInstancesAPI) CreateBackup(arg0 context.Context, arg1, arg2 string) (*ah.InstanceAction, error)

CreateBackup mocks base method.

func (*MockInstancesAPI) Destroy

func (m *MockInstancesAPI) Destroy(arg0 context.Context, arg1 string) error

Destroy mocks base method.

func (*MockInstancesAPI) DetachVolume

func (m *MockInstancesAPI) DetachVolume(arg0 context.Context, arg1, arg2 string) (*ah.Action, error)

DetachVolume mocks base method.

func (*MockInstancesAPI) EXPECT

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

func (*MockInstancesAPI) Get

func (m *MockInstancesAPI) Get(arg0 context.Context, arg1 string) (*ah.Instance, error)

Get mocks base method.

func (*MockInstancesAPI) List

func (m *MockInstancesAPI) List(arg0 context.Context, arg1 *ah.ListOptions) ([]ah.Instance, *ah.Meta, error)

List mocks base method.

func (*MockInstancesAPI) PowerOff

func (m *MockInstancesAPI) PowerOff(arg0 context.Context, arg1 string) error

PowerOff mocks base method.

func (*MockInstancesAPI) Rename

func (m *MockInstancesAPI) Rename(arg0 context.Context, arg1, arg2 string) (*ah.Instance, error)

Rename mocks base method.

func (*MockInstancesAPI) SetPrimaryIP

func (m *MockInstancesAPI) SetPrimaryIP(arg0 context.Context, arg1, arg2 string) (*ah.Action, error)

SetPrimaryIP mocks base method.

func (*MockInstancesAPI) Shutdown

func (m *MockInstancesAPI) Shutdown(arg0 context.Context, arg1 string) error

Shutdown mocks base method.

func (*MockInstancesAPI) Upgrade

func (m *MockInstancesAPI) Upgrade(arg0 context.Context, arg1 string, arg2 *ah.InstanceUpgradeRequest) error

Upgrade mocks base method.

type MockInstancesAPIMockRecorder

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

MockInstancesAPIMockRecorder is the mock recorder for MockInstancesAPI.

func (*MockInstancesAPIMockRecorder) ActionInfo

func (mr *MockInstancesAPIMockRecorder) ActionInfo(arg0, arg1, arg2 interface{}) *gomock.Call

ActionInfo indicates an expected call of ActionInfo.

func (*MockInstancesAPIMockRecorder) Actions

func (mr *MockInstancesAPIMockRecorder) Actions(arg0, arg1 interface{}) *gomock.Call

Actions indicates an expected call of Actions.

func (*MockInstancesAPIMockRecorder) AttachVolume

func (mr *MockInstancesAPIMockRecorder) AttachVolume(arg0, arg1, arg2 interface{}) *gomock.Call

AttachVolume indicates an expected call of AttachVolume.

func (*MockInstancesAPIMockRecorder) AvailableVolumes

func (mr *MockInstancesAPIMockRecorder) AvailableVolumes(arg0, arg1, arg2 interface{}) *gomock.Call

AvailableVolumes indicates an expected call of AvailableVolumes.

func (*MockInstancesAPIMockRecorder) Create

func (mr *MockInstancesAPIMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockInstancesAPIMockRecorder) CreateBackup

func (mr *MockInstancesAPIMockRecorder) CreateBackup(arg0, arg1, arg2 interface{}) *gomock.Call

CreateBackup indicates an expected call of CreateBackup.

func (*MockInstancesAPIMockRecorder) Destroy

func (mr *MockInstancesAPIMockRecorder) Destroy(arg0, arg1 interface{}) *gomock.Call

Destroy indicates an expected call of Destroy.

func (*MockInstancesAPIMockRecorder) DetachVolume

func (mr *MockInstancesAPIMockRecorder) DetachVolume(arg0, arg1, arg2 interface{}) *gomock.Call

DetachVolume indicates an expected call of DetachVolume.

func (*MockInstancesAPIMockRecorder) Get

func (mr *MockInstancesAPIMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockInstancesAPIMockRecorder) List

func (mr *MockInstancesAPIMockRecorder) List(arg0, arg1 interface{}) *gomock.Call

List indicates an expected call of List.

func (*MockInstancesAPIMockRecorder) PowerOff

func (mr *MockInstancesAPIMockRecorder) PowerOff(arg0, arg1 interface{}) *gomock.Call

PowerOff indicates an expected call of PowerOff.

func (*MockInstancesAPIMockRecorder) Rename

func (mr *MockInstancesAPIMockRecorder) Rename(arg0, arg1, arg2 interface{}) *gomock.Call

Rename indicates an expected call of Rename.

func (*MockInstancesAPIMockRecorder) SetPrimaryIP

func (mr *MockInstancesAPIMockRecorder) SetPrimaryIP(arg0, arg1, arg2 interface{}) *gomock.Call

SetPrimaryIP indicates an expected call of SetPrimaryIP.

func (*MockInstancesAPIMockRecorder) Shutdown

func (mr *MockInstancesAPIMockRecorder) Shutdown(arg0, arg1 interface{}) *gomock.Call

Shutdown indicates an expected call of Shutdown.

func (*MockInstancesAPIMockRecorder) Upgrade

func (mr *MockInstancesAPIMockRecorder) Upgrade(arg0, arg1, arg2 interface{}) *gomock.Call

Upgrade indicates an expected call of Upgrade.

type MockMounter

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

MockMounter is a mock of Mounter interface.

func NewMockMounter

func NewMockMounter(ctrl *gomock.Controller) *MockMounter

NewMockMounter creates a new mock instance.

func (*MockMounter) BlockSize

func (m *MockMounter) BlockSize(arg0 string) (int64, error)

BlockSize mocks base method.

func (*MockMounter) BytesFSMetrics

func (m *MockMounter) BytesFSMetrics(arg0 string) (int64, int64, int64, error)

BytesFSMetrics mocks base method.

func (*MockMounter) CreateDir

func (m *MockMounter) CreateDir(arg0 string) error

CreateDir mocks base method.

func (*MockMounter) CreateFile

func (m *MockMounter) CreateFile(arg0 string) error

CreateFile mocks base method.

func (*MockMounter) DeviceNameFromMount

func (m *MockMounter) DeviceNameFromMount(arg0 string) (string, error)

DeviceNameFromMount mocks base method.

func (*MockMounter) DevicePath

func (m *MockMounter) DevicePath(arg0 string) (string, error)

DevicePath mocks base method.

func (*MockMounter) EXPECT

func (m *MockMounter) EXPECT() *MockMounterMockRecorder

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

func (*MockMounter) FormatAndMount

func (m *MockMounter) FormatAndMount(arg0, arg1, arg2 string, arg3 []string) error

FormatAndMount mocks base method.

func (*MockMounter) INodeFSMetrics

func (m *MockMounter) INodeFSMetrics(arg0 string) (int64, int64, int64, error)

INodeFSMetrics mocks base method.

func (*MockMounter) IsBlockDevice

func (m *MockMounter) IsBlockDevice(arg0 string) (bool, error)

IsBlockDevice mocks base method.

func (*MockMounter) IsDeviceMountedToTarget

func (m *MockMounter) IsDeviceMountedToTarget(arg0, arg1 string) (bool, error)

IsDeviceMountedToTarget mocks base method.

func (*MockMounter) IsPathExists

func (m *MockMounter) IsPathExists(arg0 string) (bool, error)

IsPathExists mocks base method.

func (*MockMounter) Mount

func (m *MockMounter) Mount(arg0, arg1, arg2 string, arg3 []string) error

Mount mocks base method.

func (*MockMounter) Resize

func (m *MockMounter) Resize(arg0, arg1 string) error

Resize mocks base method.

func (*MockMounter) Unmount

func (m *MockMounter) Unmount(arg0 string) error

Unmount mocks base method.

type MockMounterMockRecorder

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

MockMounterMockRecorder is the mock recorder for MockMounter.

func (*MockMounterMockRecorder) BlockSize

func (mr *MockMounterMockRecorder) BlockSize(arg0 interface{}) *gomock.Call

BlockSize indicates an expected call of BlockSize.

func (*MockMounterMockRecorder) BytesFSMetrics

func (mr *MockMounterMockRecorder) BytesFSMetrics(arg0 interface{}) *gomock.Call

BytesFSMetrics indicates an expected call of BytesFSMetrics.

func (*MockMounterMockRecorder) CreateDir

func (mr *MockMounterMockRecorder) CreateDir(arg0 interface{}) *gomock.Call

CreateDir indicates an expected call of CreateDir.

func (*MockMounterMockRecorder) CreateFile

func (mr *MockMounterMockRecorder) CreateFile(arg0 interface{}) *gomock.Call

CreateFile indicates an expected call of CreateFile.

func (*MockMounterMockRecorder) DeviceNameFromMount

func (mr *MockMounterMockRecorder) DeviceNameFromMount(arg0 interface{}) *gomock.Call

DeviceNameFromMount indicates an expected call of DeviceNameFromMount.

func (*MockMounterMockRecorder) DevicePath

func (mr *MockMounterMockRecorder) DevicePath(arg0 interface{}) *gomock.Call

DevicePath indicates an expected call of DevicePath.

func (*MockMounterMockRecorder) FormatAndMount

func (mr *MockMounterMockRecorder) FormatAndMount(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

FormatAndMount indicates an expected call of FormatAndMount.

func (*MockMounterMockRecorder) INodeFSMetrics

func (mr *MockMounterMockRecorder) INodeFSMetrics(arg0 interface{}) *gomock.Call

INodeFSMetrics indicates an expected call of INodeFSMetrics.

func (*MockMounterMockRecorder) IsBlockDevice

func (mr *MockMounterMockRecorder) IsBlockDevice(arg0 interface{}) *gomock.Call

IsBlockDevice indicates an expected call of IsBlockDevice.

func (*MockMounterMockRecorder) IsDeviceMountedToTarget

func (mr *MockMounterMockRecorder) IsDeviceMountedToTarget(arg0, arg1 interface{}) *gomock.Call

IsDeviceMountedToTarget indicates an expected call of IsDeviceMountedToTarget.

func (*MockMounterMockRecorder) IsPathExists

func (mr *MockMounterMockRecorder) IsPathExists(arg0 interface{}) *gomock.Call

IsPathExists indicates an expected call of IsPathExists.

func (*MockMounterMockRecorder) Mount

func (mr *MockMounterMockRecorder) Mount(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

Mount indicates an expected call of Mount.

func (*MockMounterMockRecorder) Resize

func (mr *MockMounterMockRecorder) Resize(arg0, arg1 interface{}) *gomock.Call

Resize indicates an expected call of Resize.

func (*MockMounterMockRecorder) Unmount

func (mr *MockMounterMockRecorder) Unmount(arg0 interface{}) *gomock.Call

Unmount indicates an expected call of Unmount.

type MockVolumesAPI

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

MockVolumesAPI is a mock of VolumesAPI interface.

func NewMockVolumesAPI

func NewMockVolumesAPI(ctrl *gomock.Controller) *MockVolumesAPI

NewMockVolumesAPI creates a new mock instance.

func (*MockVolumesAPI) ActionInfo

func (m *MockVolumesAPI) ActionInfo(arg0 context.Context, arg1, arg2 string) (*ah.VolumeAction, error)

ActionInfo mocks base method.

func (*MockVolumesAPI) Actions

func (m *MockVolumesAPI) Actions(arg0 context.Context, arg1 string) ([]ah.VolumeAction, error)

Actions mocks base method.

func (*MockVolumesAPI) Copy

Copy mocks base method.

func (*MockVolumesAPI) Create

func (m *MockVolumesAPI) Create(arg0 context.Context, arg1 *ah.VolumeCreateRequest) (*ah.Volume, error)

Create mocks base method.

func (*MockVolumesAPI) Delete

func (m *MockVolumesAPI) Delete(arg0 context.Context, arg1 string) error

Delete mocks base method.

func (*MockVolumesAPI) EXPECT

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

func (*MockVolumesAPI) Get

func (m *MockVolumesAPI) Get(arg0 context.Context, arg1 string) (*ah.Volume, error)

Get mocks base method.

func (*MockVolumesAPI) List

func (m *MockVolumesAPI) List(arg0 context.Context, arg1 *ah.ListOptions) ([]ah.Volume, *ah.Meta, error)

List mocks base method.

func (*MockVolumesAPI) Resize

func (m *MockVolumesAPI) Resize(arg0 context.Context, arg1 string, arg2 int) (*ah.Action, error)

Resize mocks base method.

func (*MockVolumesAPI) Update

func (m *MockVolumesAPI) Update(arg0 context.Context, arg1 string, arg2 *ah.VolumeUpdateRequest) (*ah.Volume, error)

Update mocks base method.

type MockVolumesAPIMockRecorder

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

MockVolumesAPIMockRecorder is the mock recorder for MockVolumesAPI.

func (*MockVolumesAPIMockRecorder) ActionInfo

func (mr *MockVolumesAPIMockRecorder) ActionInfo(arg0, arg1, arg2 interface{}) *gomock.Call

ActionInfo indicates an expected call of ActionInfo.

func (*MockVolumesAPIMockRecorder) Actions

func (mr *MockVolumesAPIMockRecorder) Actions(arg0, arg1 interface{}) *gomock.Call

Actions indicates an expected call of Actions.

func (*MockVolumesAPIMockRecorder) Copy

func (mr *MockVolumesAPIMockRecorder) Copy(arg0, arg1, arg2 interface{}) *gomock.Call

Copy indicates an expected call of Copy.

func (*MockVolumesAPIMockRecorder) Create

func (mr *MockVolumesAPIMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockVolumesAPIMockRecorder) Delete

func (mr *MockVolumesAPIMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockVolumesAPIMockRecorder) Get

func (mr *MockVolumesAPIMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockVolumesAPIMockRecorder) List

func (mr *MockVolumesAPIMockRecorder) List(arg0, arg1 interface{}) *gomock.Call

List indicates an expected call of List.

func (*MockVolumesAPIMockRecorder) Resize

func (mr *MockVolumesAPIMockRecorder) Resize(arg0, arg1, arg2 interface{}) *gomock.Call

Resize indicates an expected call of Resize.

func (*MockVolumesAPIMockRecorder) Update

func (mr *MockVolumesAPIMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call

Update indicates an expected call of Update.

Jump to

Keyboard shortcuts

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