mocks

package
v0.8.1-rc.0 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2021 License: Apache-2.0 Imports: 7 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) GetSnapshotByID added in v0.5.0

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) GetSnapshotByID added in v0.5.0

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) GetOutpostArn added in v0.7.0

func (m *MockMetadataService) GetOutpostArn() arn.ARN

GetOutpostArn 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) GetOutpostArn added in v0.7.0

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

GetOutpostArn indicates an expected call of GetOutpostArn

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) Command added in v0.5.0

func (m *MockMounter) Command(arg0 string, arg1 ...string) exec.Cmd

Command mocks base method

func (*MockMounter) CommandContext added in v0.5.0

func (m *MockMounter) CommandContext(arg0 context.Context, arg1 string, arg2 ...string) exec.Cmd

CommandContext 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) 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) GetMountRefs

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

GetMountRefs mocks base method

func (*MockMounter) IsLikelyNotMountPoint

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

IsLikelyNotMountPoint mocks base method

func (*MockMounter) List

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

List mocks base method

func (*MockMounter) LookPath added in v0.5.0

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

LookPath 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) Mount

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

Mount 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) Command added in v0.5.0

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

Command indicates an expected call of Command

func (*MockMounterMockRecorder) CommandContext added in v0.5.0

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

CommandContext indicates an expected call of CommandContext

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

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

GetMountRefs indicates an expected call of GetMountRefs

func (*MockMounterMockRecorder) IsLikelyNotMountPoint

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

IsLikelyNotMountPoint indicates an expected call of IsLikelyNotMountPoint

func (*MockMounterMockRecorder) List

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

List indicates an expected call of List

func (*MockMounterMockRecorder) LookPath added in v0.5.0

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

LookPath indicates an expected call of LookPath

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

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

Mount indicates an expected call of Mount

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