mocks

package
v0.4.1-0...-cd68a4a Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

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(arg0 context.Context, arg1, arg2 string) (string, error)

AttachDisk mocks base method

func (*MockCloud) CreateDisk

func (m *MockCloud) CreateDisk(arg0 context.Context, arg1 string, arg2 *cloud.DiskOptions) (*cloud.Disk, error)

CreateDisk mocks base method

func (*MockCloud) CreateSnapshot

func (m *MockCloud) CreateSnapshot(arg0 context.Context, arg1 string, arg2 *cloud.SnapshotOptions) (*cloud.Snapshot, error)

CreateSnapshot mocks base method

func (*MockCloud) DeleteDisk

func (m *MockCloud) DeleteDisk(arg0 context.Context, arg1 string) (bool, error)

DeleteDisk mocks base method

func (*MockCloud) DeleteSnapshot

func (m *MockCloud) DeleteSnapshot(arg0 context.Context, arg1 string) (bool, error)

DeleteSnapshot mocks base method

func (*MockCloud) DetachDisk

func (m *MockCloud) DetachDisk(arg0 context.Context, arg1, arg2 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(arg0 context.Context, arg1 string) (*cloud.Disk, error)

GetDiskByID mocks base method

func (*MockCloud) GetDiskByName

func (m *MockCloud) GetDiskByName(arg0 context.Context, arg1 string, arg2 int64) (*cloud.Disk, error)

GetDiskByName mocks base method

func (*MockCloud) GetMetadata

func (m *MockCloud) GetMetadata() cloud.MetadataService

GetMetadata mocks base method

func (*MockCloud) GetSnapshotById

func (m *MockCloud) GetSnapshotById(arg0 context.Context, arg1 string) (*cloud.Snapshot, error)

GetSnapshotById mocks base method

func (*MockCloud) GetSnapshotByName

func (m *MockCloud) GetSnapshotByName(arg0 context.Context, arg1 string) (*cloud.Snapshot, error)

GetSnapshotByName mocks base method

func (*MockCloud) IsExistInstance

func (m *MockCloud) IsExistInstance(arg0 context.Context, arg1 string) bool

IsExistInstance mocks base method

func (*MockCloud) ListSnapshots

func (m *MockCloud) ListSnapshots(arg0 context.Context, arg1 string, arg2 int64, arg3 string) (*cloud.ListSnapshotsResponse, error)

ListSnapshots mocks base method

func (*MockCloud) ResizeDisk

func (m *MockCloud) ResizeDisk(arg0 context.Context, arg1 string, arg2 int64) (int64, error)

ResizeDisk mocks base method

func (*MockCloud) WaitForAttachmentState

func (m *MockCloud) WaitForAttachmentState(arg0 context.Context, arg1, arg2 string) error

WaitForAttachmentState 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(arg0, arg1, arg2 interface{}) *gomock.Call

AttachDisk indicates an expected call of AttachDisk

func (*MockCloudMockRecorder) CreateDisk

func (mr *MockCloudMockRecorder) CreateDisk(arg0, arg1, arg2 interface{}) *gomock.Call

CreateDisk indicates an expected call of CreateDisk

func (*MockCloudMockRecorder) CreateSnapshot

func (mr *MockCloudMockRecorder) CreateSnapshot(arg0, arg1, arg2 interface{}) *gomock.Call

CreateSnapshot indicates an expected call of CreateSnapshot

func (*MockCloudMockRecorder) DeleteDisk

func (mr *MockCloudMockRecorder) DeleteDisk(arg0, arg1 interface{}) *gomock.Call

DeleteDisk indicates an expected call of DeleteDisk

func (*MockCloudMockRecorder) DeleteSnapshot

func (mr *MockCloudMockRecorder) DeleteSnapshot(arg0, arg1 interface{}) *gomock.Call

DeleteSnapshot indicates an expected call of DeleteSnapshot

func (*MockCloudMockRecorder) DetachDisk

func (mr *MockCloudMockRecorder) DetachDisk(arg0, arg1, arg2 interface{}) *gomock.Call

DetachDisk indicates an expected call of DetachDisk

func (*MockCloudMockRecorder) GetDiskByID

func (mr *MockCloudMockRecorder) GetDiskByID(arg0, arg1 interface{}) *gomock.Call

GetDiskByID indicates an expected call of GetDiskByID

func (*MockCloudMockRecorder) GetDiskByName

func (mr *MockCloudMockRecorder) GetDiskByName(arg0, arg1, arg2 interface{}) *gomock.Call

GetDiskByName indicates an expected call of GetDiskByName

func (*MockCloudMockRecorder) GetMetadata

func (mr *MockCloudMockRecorder) GetMetadata() *gomock.Call

GetMetadata indicates an expected call of GetMetadata

func (*MockCloudMockRecorder) GetSnapshotById

func (mr *MockCloudMockRecorder) GetSnapshotById(arg0, arg1 interface{}) *gomock.Call

GetSnapshotById indicates an expected call of GetSnapshotById

func (*MockCloudMockRecorder) GetSnapshotByName

func (mr *MockCloudMockRecorder) GetSnapshotByName(arg0, arg1 interface{}) *gomock.Call

GetSnapshotByName indicates an expected call of GetSnapshotByName

func (*MockCloudMockRecorder) IsExistInstance

func (mr *MockCloudMockRecorder) IsExistInstance(arg0, arg1 interface{}) *gomock.Call

IsExistInstance indicates an expected call of IsExistInstance

func (*MockCloudMockRecorder) ListSnapshots

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

ListSnapshots indicates an expected call of ListSnapshots

func (*MockCloudMockRecorder) ResizeDisk

func (mr *MockCloudMockRecorder) ResizeDisk(arg0, arg1, arg2 interface{}) *gomock.Call

ResizeDisk indicates an expected call of ResizeDisk

func (*MockCloudMockRecorder) WaitForAttachmentState

func (mr *MockCloudMockRecorder) WaitForAttachmentState(arg0, arg1, arg2 interface{}) *gomock.Call

WaitForAttachmentState indicates an expected call of WaitForAttachmentState

type MockMetadataService

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

MockMetadataService is a mock of MetadataService interface

func NewMockMetadataService

func NewMockMetadataService(ctrl *gomock.Controller) *MockMetadataService

NewMockMetadataService creates a new mock instance

func (*MockMetadataService) EXPECT

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

func (*MockMetadataService) GetAvailabilityZone

func (m *MockMetadataService) GetAvailabilityZone() string

GetAvailabilityZone mocks base method

func (*MockMetadataService) GetInstanceID

func (m *MockMetadataService) GetInstanceID() string

GetInstanceID mocks base method

func (*MockMetadataService) GetInstanceType

func (m *MockMetadataService) GetInstanceType() string

GetInstanceType mocks base method

func (*MockMetadataService) GetRegion

func (m *MockMetadataService) GetRegion() string

GetRegion mocks base method

type MockMetadataServiceMockRecorder

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

MockMetadataServiceMockRecorder is the mock recorder for MockMetadataService

func (*MockMetadataServiceMockRecorder) GetAvailabilityZone

func (mr *MockMetadataServiceMockRecorder) GetAvailabilityZone() *gomock.Call

GetAvailabilityZone indicates an expected call of GetAvailabilityZone

func (*MockMetadataServiceMockRecorder) GetInstanceID

func (mr *MockMetadataServiceMockRecorder) GetInstanceID() *gomock.Call

GetInstanceID indicates an expected call of GetInstanceID

func (*MockMetadataServiceMockRecorder) GetInstanceType

func (mr *MockMetadataServiceMockRecorder) GetInstanceType() *gomock.Call

GetInstanceType indicates an expected call of GetInstanceType

func (*MockMetadataServiceMockRecorder) GetRegion

func (mr *MockMetadataServiceMockRecorder) GetRegion() *gomock.Call

GetRegion indicates an expected call of GetRegion

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) CleanSubPaths

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

CleanSubPaths mocks base method

func (*MockMounter) DeviceOpened

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

DeviceOpened mocks base method

func (*MockMounter) EXPECT

func (m *MockMounter) EXPECT() *MockMounterMockRecorder

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

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

EvalHostSymlinks mocks base method

func (*MockMounter) ExistsPath

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

ExistsPath mocks base method

func (*MockMounter) FormatAndMount

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

FormatAndMount mocks base method

func (*MockMounter) GetDeviceName

func (m *MockMounter) GetDeviceName(arg0 string) (string, int, error)

GetDeviceName mocks base method

func (*MockMounter) GetDeviceNameFromMount

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

GetDeviceNameFromMount mocks base method

func (*MockMounter) GetFSGroup

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

GetFSGroup mocks base method

func (*MockMounter) GetFileType

func (m *MockMounter) GetFileType(arg0 string) (mount.FileType, error)

GetFileType mocks base method

func (*MockMounter) GetMode

func (m *MockMounter) GetMode(arg0 string) (os.FileMode, error)

GetMode mocks base method

func (*MockMounter) GetMountRefs

func (m *MockMounter) GetMountRefs(arg0 string) ([]string, error)

GetMountRefs mocks base method

func (*MockMounter) GetSELinuxSupport

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

GetSELinuxSupport mocks base method

func (*MockMounter) IsLikelyNotMountPoint

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

IsLikelyNotMountPoint mocks base method

func (*MockMounter) IsMountPointMatch

func (m *MockMounter) IsMountPointMatch(arg0 mount.MountPoint, arg1 string) bool

IsMountPointMatch mocks base method

func (*MockMounter) IsNotMountPoint

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

IsNotMountPoint mocks base method

func (*MockMounter) List

func (m *MockMounter) List() ([]mount.MountPoint, error)

List mocks base method

func (*MockMounter) MakeDir

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

MakeDir mocks base method

func (*MockMounter) MakeFile

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

MakeFile mocks base method

func (*MockMounter) MakeRShared

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

MakeRShared mocks base method

func (*MockMounter) Mount

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

Mount mocks base method

func (*MockMounter) PathIsDevice

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

PathIsDevice mocks base method

func (*MockMounter) PrepareSafeSubpath

func (m *MockMounter) PrepareSafeSubpath(arg0 mount.Subpath) (string, func(), error)

PrepareSafeSubpath mocks base method

func (*MockMounter) Run

func (m *MockMounter) Run(arg0 string, arg1 ...string) ([]byte, error)

Run mocks base method

func (*MockMounter) SafeMakeDir

func (m *MockMounter) SafeMakeDir(arg0, arg1 string, arg2 os.FileMode) error

SafeMakeDir 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) CleanSubPaths

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

CleanSubPaths indicates an expected call of CleanSubPaths

func (*MockMounterMockRecorder) DeviceOpened

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

DeviceOpened indicates an expected call of DeviceOpened

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

EvalHostSymlinks indicates an expected call of EvalHostSymlinks

func (*MockMounterMockRecorder) ExistsPath

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

ExistsPath indicates an expected call of ExistsPath

func (*MockMounterMockRecorder) FormatAndMount

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

FormatAndMount indicates an expected call of FormatAndMount

func (*MockMounterMockRecorder) GetDeviceName

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

GetDeviceName indicates an expected call of GetDeviceName

func (*MockMounterMockRecorder) GetDeviceNameFromMount

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

GetDeviceNameFromMount indicates an expected call of GetDeviceNameFromMount

func (*MockMounterMockRecorder) GetFSGroup

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

GetFSGroup indicates an expected call of GetFSGroup

func (*MockMounterMockRecorder) GetFileType

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

GetFileType indicates an expected call of GetFileType

func (*MockMounterMockRecorder) GetMode

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

GetMode indicates an expected call of GetMode

func (*MockMounterMockRecorder) GetMountRefs

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

GetMountRefs indicates an expected call of GetMountRefs

func (*MockMounterMockRecorder) GetSELinuxSupport

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

GetSELinuxSupport indicates an expected call of GetSELinuxSupport

func (*MockMounterMockRecorder) IsLikelyNotMountPoint

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

IsLikelyNotMountPoint indicates an expected call of IsLikelyNotMountPoint

func (*MockMounterMockRecorder) IsMountPointMatch

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

IsMountPointMatch indicates an expected call of IsMountPointMatch

func (*MockMounterMockRecorder) IsNotMountPoint

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

IsNotMountPoint indicates an expected call of IsNotMountPoint

func (*MockMounterMockRecorder) List

func (mr *MockMounterMockRecorder) List() *gomock.Call

List indicates an expected call of List

func (*MockMounterMockRecorder) MakeDir

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

MakeDir indicates an expected call of MakeDir

func (*MockMounterMockRecorder) MakeFile

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

MakeFile indicates an expected call of MakeFile

func (*MockMounterMockRecorder) MakeRShared

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

MakeRShared indicates an expected call of MakeRShared

func (*MockMounterMockRecorder) Mount

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

Mount indicates an expected call of Mount

func (*MockMounterMockRecorder) PathIsDevice

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

PathIsDevice indicates an expected call of PathIsDevice

func (*MockMounterMockRecorder) PrepareSafeSubpath

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

PrepareSafeSubpath indicates an expected call of PrepareSafeSubpath

func (*MockMounterMockRecorder) Run

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

Run indicates an expected call of Run

func (*MockMounterMockRecorder) SafeMakeDir

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

SafeMakeDir indicates an expected call of SafeMakeDir

func (*MockMounterMockRecorder) Unmount

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

Unmount indicates an expected call of Unmount

Jump to

Keyboard shortcuts

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