Documentation
¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockCloud
- func (m *MockCloud) AttachDisk(ctx context.Context, volumeID, nodeID string) (string, error)
- func (m *MockCloud) CreateDisk(ctx context.Context, volumeName string, diskOptions *cloud.DiskOptions) (cloud.Disk, error)
- func (m *MockCloud) CreateSnapshot(ctx context.Context, volumeID string, snapshotOptions *cloud.SnapshotOptions) (cloud.Snapshot, error)
- func (m *MockCloud) DeleteDisk(ctx context.Context, volumeID string) (bool, error)
- func (m *MockCloud) DeleteSnapshot(ctx context.Context, snapshotID string) (bool, error)
- func (m *MockCloud) DetachDisk(ctx context.Context, volumeID, nodeID string) error
- func (m *MockCloud) EXPECT() *MockCloudMockRecorder
- func (m *MockCloud) GetDiskByID(ctx context.Context, volumeID string) (cloud.Disk, error)
- func (m *MockCloud) GetDiskByName(ctx context.Context, name string, capacityBytes int64) (cloud.Disk, error)
- func (m *MockCloud) GetMetadata() cloud.MetadataService
- func (m *MockCloud) GetSnapshotByID(ctx context.Context, snapshotID string) (cloud.Snapshot, error)
- func (m *MockCloud) GetSnapshotByName(ctx context.Context, name string) (cloud.Snapshot, error)
- func (m *MockCloud) IsExistInstance(ctx context.Context, nodeID string) bool
- func (m *MockCloud) ListSnapshots(ctx context.Context, volumeID string, maxResults int64, nextToken string) (cloud.ListSnapshotsResponse, error)
- func (m *MockCloud) ResizeDisk(ctx context.Context, volumeID string, reqSize int64) (int64, error)
- func (m *MockCloud) WaitForAttachmentState(ctx context.Context, volumeID, state string) error
- type MockCloudMockRecorder
- func (mr *MockCloudMockRecorder) AttachDisk(ctx, volumeID, nodeID interface{}) *gomock.Call
- func (mr *MockCloudMockRecorder) CreateDisk(ctx, volumeName, diskOptions interface{}) *gomock.Call
- func (mr *MockCloudMockRecorder) CreateSnapshot(ctx, volumeID, snapshotOptions interface{}) *gomock.Call
- func (mr *MockCloudMockRecorder) DeleteDisk(ctx, volumeID interface{}) *gomock.Call
- func (mr *MockCloudMockRecorder) DeleteSnapshot(ctx, snapshotID interface{}) *gomock.Call
- func (mr *MockCloudMockRecorder) DetachDisk(ctx, volumeID, nodeID interface{}) *gomock.Call
- func (mr *MockCloudMockRecorder) GetDiskByID(ctx, volumeID interface{}) *gomock.Call
- func (mr *MockCloudMockRecorder) GetDiskByName(ctx, name, capacityBytes interface{}) *gomock.Call
- func (mr *MockCloudMockRecorder) GetMetadata() *gomock.Call
- func (mr *MockCloudMockRecorder) GetSnapshotByID(ctx, snapshotID interface{}) *gomock.Call
- func (mr *MockCloudMockRecorder) GetSnapshotByName(ctx, name interface{}) *gomock.Call
- func (mr *MockCloudMockRecorder) IsExistInstance(ctx, nodeID interface{}) *gomock.Call
- func (mr *MockCloudMockRecorder) ListSnapshots(ctx, volumeID, maxResults, nextToken interface{}) *gomock.Call
- func (mr *MockCloudMockRecorder) ResizeDisk(ctx, volumeID, reqSize interface{}) *gomock.Call
- func (mr *MockCloudMockRecorder) WaitForAttachmentState(ctx, volumeID, state interface{}) *gomock.Call
- type MockCmd
- func (m *MockCmd) CombinedOutput() ([]byte, error)
- func (m *MockCmd) EXPECT() *MockCmdMockRecorder
- func (m *MockCmd) Output() ([]byte, error)
- func (m *MockCmd) Run() error
- func (m *MockCmd) SetDir(dir string)
- func (m *MockCmd) SetEnv(env []string)
- func (m *MockCmd) SetStderr(out io.Writer)
- func (m *MockCmd) SetStdin(in io.Reader)
- func (m *MockCmd) SetStdout(out io.Writer)
- func (m *MockCmd) Start() error
- func (m *MockCmd) StderrPipe() (io.ReadCloser, error)
- func (m *MockCmd) StdoutPipe() (io.ReadCloser, error)
- func (m *MockCmd) Stop()
- func (m *MockCmd) Wait() error
- type MockCmdMockRecorder
- func (mr *MockCmdMockRecorder) CombinedOutput() *gomock.Call
- func (mr *MockCmdMockRecorder) Output() *gomock.Call
- func (mr *MockCmdMockRecorder) Run() *gomock.Call
- func (mr *MockCmdMockRecorder) SetDir(dir interface{}) *gomock.Call
- func (mr *MockCmdMockRecorder) SetEnv(env interface{}) *gomock.Call
- func (mr *MockCmdMockRecorder) SetStderr(out interface{}) *gomock.Call
- func (mr *MockCmdMockRecorder) SetStdin(in interface{}) *gomock.Call
- func (mr *MockCmdMockRecorder) SetStdout(out interface{}) *gomock.Call
- func (mr *MockCmdMockRecorder) Start() *gomock.Call
- func (mr *MockCmdMockRecorder) StderrPipe() *gomock.Call
- func (mr *MockCmdMockRecorder) StdoutPipe() *gomock.Call
- func (mr *MockCmdMockRecorder) Stop() *gomock.Call
- func (mr *MockCmdMockRecorder) Wait() *gomock.Call
- type MockExitError
- type MockExitErrorMockRecorder
- type MockInterface
- type MockInterfaceMockRecorder
- type MockMetadataService
- type MockMetadataServiceMockRecorder
- type MockMounter
- func (m *MockMounter) CheckLuksPassphrase(devicePath, passphrase string) bool
- func (m *MockMounter) Command(cmd string, args ...string) exec.Cmd
- func (m *MockMounter) CommandContext(ctx context.Context, cmd string, args ...string) exec.Cmd
- func (m *MockMounter) EXPECT() *MockMounterMockRecorder
- func (m *MockMounter) ExistsPath(filename string) (bool, error)
- func (m *MockMounter) FormatAndMount(source, target, fstype string, options []string) error
- func (m *MockMounter) GetDeviceName(mountPath string) (string, int, error)
- func (m *MockMounter) GetDiskFormat(disk string) (string, error)
- func (m *MockMounter) GetMountRefs(pathname string) ([]string, error)
- func (m *MockMounter) IsCorruptedMnt(arg0 error) bool
- func (m *MockMounter) IsLikelyNotMountPoint(file string) (bool, error)
- func (m *MockMounter) IsLuks(devicePath string) bool
- func (m *MockMounter) IsLuksMapping(devicePath string) (bool, string, error)
- func (m *MockMounter) List() ([]mount.MountPoint, error)
- func (m *MockMounter) LookPath(file string) (string, error)
- func (m *MockMounter) LuksClose(deviceName string) error
- func (m *MockMounter) LuksFormat(devicePath, passphrase string, context luks.LuksContext) error
- func (m *MockMounter) LuksOpen(devicePath, encryptedDeviceName, passphrase string) (bool, error)
- func (m *MockMounter) LuksResize(deviceName string) error
- func (m *MockMounter) MakeDir(pathname string) error
- func (m *MockMounter) MakeFile(pathname string) error
- func (m *MockMounter) Mount(source, target, fstype string, options []string) error
- func (m *MockMounter) MountSensitive(source, target, fstype string, options, sensitiveOptions []string) error
- func (m *MockMounter) Unmount(target string) error
- type MockMounterMockRecorder
- func (mr *MockMounterMockRecorder) CheckLuksPassphrase(devicePath, passphrase interface{}) *gomock.Call
- func (mr *MockMounterMockRecorder) Command(cmd interface{}, args ...interface{}) *gomock.Call
- func (mr *MockMounterMockRecorder) CommandContext(ctx, cmd interface{}, args ...interface{}) *gomock.Call
- func (mr *MockMounterMockRecorder) ExistsPath(filename interface{}) *gomock.Call
- func (mr *MockMounterMockRecorder) FormatAndMount(source, target, fstype, options interface{}) *gomock.Call
- func (mr *MockMounterMockRecorder) GetDeviceName(mountPath interface{}) *gomock.Call
- func (mr *MockMounterMockRecorder) GetDiskFormat(disk interface{}) *gomock.Call
- func (mr *MockMounterMockRecorder) GetMountRefs(pathname interface{}) *gomock.Call
- func (mr *MockMounterMockRecorder) IsCorruptedMnt(arg0 interface{}) *gomock.Call
- func (mr *MockMounterMockRecorder) IsLikelyNotMountPoint(file interface{}) *gomock.Call
- func (mr *MockMounterMockRecorder) IsLuks(devicePath interface{}) *gomock.Call
- func (mr *MockMounterMockRecorder) IsLuksMapping(devicePath interface{}) *gomock.Call
- func (mr *MockMounterMockRecorder) List() *gomock.Call
- func (mr *MockMounterMockRecorder) LookPath(file interface{}) *gomock.Call
- func (mr *MockMounterMockRecorder) LuksClose(deviceName interface{}) *gomock.Call
- func (mr *MockMounterMockRecorder) LuksFormat(devicePath, passphrase, context interface{}) *gomock.Call
- func (mr *MockMounterMockRecorder) LuksOpen(devicePath, encryptedDeviceName, passphrase interface{}) *gomock.Call
- func (mr *MockMounterMockRecorder) LuksResize(deviceName interface{}) *gomock.Call
- func (mr *MockMounterMockRecorder) MakeDir(pathname interface{}) *gomock.Call
- func (mr *MockMounterMockRecorder) MakeFile(pathname interface{}) *gomock.Call
- func (mr *MockMounterMockRecorder) Mount(source, target, fstype, options interface{}) *gomock.Call
- func (mr *MockMounterMockRecorder) MountSensitive(source, target, fstype, options, sensitiveOptions interface{}) *gomock.Call
- func (mr *MockMounterMockRecorder) Unmount(target interface{}) *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(ctx context.Context, volumeName string, diskOptions *cloud.DiskOptions) (cloud.Disk, error)
CreateDisk mocks base method.
func (*MockCloud) CreateSnapshot ¶
func (m *MockCloud) CreateSnapshot(ctx context.Context, volumeID string, snapshotOptions *cloud.SnapshotOptions) (cloud.Snapshot, error)
CreateSnapshot mocks base method.
func (*MockCloud) DeleteDisk ¶
DeleteDisk mocks base method.
func (*MockCloud) DeleteSnapshot ¶
DeleteSnapshot 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 ¶
func (m *MockCloud) GetDiskByName(ctx context.Context, name string, capacityBytes int64) (cloud.Disk, error)
GetDiskByName mocks base method.
func (*MockCloud) GetMetadata ¶
func (m *MockCloud) GetMetadata() cloud.MetadataService
GetMetadata mocks base method.
func (*MockCloud) GetSnapshotByID ¶
GetSnapshotByID mocks base method.
func (*MockCloud) GetSnapshotByName ¶
GetSnapshotByName mocks base method.
func (*MockCloud) IsExistInstance ¶
IsExistInstance mocks base method.
func (*MockCloud) ListSnapshots ¶
func (m *MockCloud) ListSnapshots(ctx context.Context, volumeID string, maxResults int64, nextToken string) (cloud.ListSnapshotsResponse, error)
ListSnapshots mocks base method.
func (*MockCloud) ResizeDisk ¶
ResizeDisk 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(ctx, volumeID, nodeID interface{}) *gomock.Call
AttachDisk indicates an expected call of AttachDisk.
func (*MockCloudMockRecorder) CreateDisk ¶
func (mr *MockCloudMockRecorder) CreateDisk(ctx, volumeName, diskOptions interface{}) *gomock.Call
CreateDisk indicates an expected call of CreateDisk.
func (*MockCloudMockRecorder) CreateSnapshot ¶
func (mr *MockCloudMockRecorder) CreateSnapshot(ctx, volumeID, snapshotOptions interface{}) *gomock.Call
CreateSnapshot indicates an expected call of CreateSnapshot.
func (*MockCloudMockRecorder) DeleteDisk ¶
func (mr *MockCloudMockRecorder) DeleteDisk(ctx, volumeID interface{}) *gomock.Call
DeleteDisk indicates an expected call of DeleteDisk.
func (*MockCloudMockRecorder) DeleteSnapshot ¶
func (mr *MockCloudMockRecorder) DeleteSnapshot(ctx, snapshotID interface{}) *gomock.Call
DeleteSnapshot indicates an expected call of DeleteSnapshot.
func (*MockCloudMockRecorder) DetachDisk ¶
func (mr *MockCloudMockRecorder) DetachDisk(ctx, volumeID, nodeID interface{}) *gomock.Call
DetachDisk indicates an expected call of DetachDisk.
func (*MockCloudMockRecorder) GetDiskByID ¶
func (mr *MockCloudMockRecorder) GetDiskByID(ctx, volumeID interface{}) *gomock.Call
GetDiskByID indicates an expected call of GetDiskByID.
func (*MockCloudMockRecorder) GetDiskByName ¶
func (mr *MockCloudMockRecorder) GetDiskByName(ctx, name, capacityBytes 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(ctx, snapshotID interface{}) *gomock.Call
GetSnapshotByID indicates an expected call of GetSnapshotByID.
func (*MockCloudMockRecorder) GetSnapshotByName ¶
func (mr *MockCloudMockRecorder) GetSnapshotByName(ctx, name interface{}) *gomock.Call
GetSnapshotByName indicates an expected call of GetSnapshotByName.
func (*MockCloudMockRecorder) IsExistInstance ¶
func (mr *MockCloudMockRecorder) IsExistInstance(ctx, nodeID interface{}) *gomock.Call
IsExistInstance indicates an expected call of IsExistInstance.
func (*MockCloudMockRecorder) ListSnapshots ¶
func (mr *MockCloudMockRecorder) ListSnapshots(ctx, volumeID, maxResults, nextToken interface{}) *gomock.Call
ListSnapshots indicates an expected call of ListSnapshots.
func (*MockCloudMockRecorder) ResizeDisk ¶
func (mr *MockCloudMockRecorder) ResizeDisk(ctx, volumeID, reqSize interface{}) *gomock.Call
ResizeDisk indicates an expected call of ResizeDisk.
func (*MockCloudMockRecorder) WaitForAttachmentState ¶
func (mr *MockCloudMockRecorder) WaitForAttachmentState(ctx, volumeID, state interface{}) *gomock.Call
WaitForAttachmentState indicates an expected call of WaitForAttachmentState.
type MockCmd ¶ added in v1.1.0
type MockCmd struct {
// contains filtered or unexported fields
}
MockCmd is a mock of Cmd interface.
func NewMockCmd ¶ added in v1.1.0
func NewMockCmd(ctrl *gomock.Controller) *MockCmd
NewMockCmd creates a new mock instance.
func (*MockCmd) CombinedOutput ¶ added in v1.1.0
CombinedOutput mocks base method.
func (*MockCmd) EXPECT ¶ added in v1.1.0
func (m *MockCmd) EXPECT() *MockCmdMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCmd) StderrPipe ¶ added in v1.1.0
func (m *MockCmd) StderrPipe() (io.ReadCloser, error)
StderrPipe mocks base method.
func (*MockCmd) StdoutPipe ¶ added in v1.1.0
func (m *MockCmd) StdoutPipe() (io.ReadCloser, error)
StdoutPipe mocks base method.
type MockCmdMockRecorder ¶ added in v1.1.0
type MockCmdMockRecorder struct {
// contains filtered or unexported fields
}
MockCmdMockRecorder is the mock recorder for MockCmd.
func (*MockCmdMockRecorder) CombinedOutput ¶ added in v1.1.0
func (mr *MockCmdMockRecorder) CombinedOutput() *gomock.Call
CombinedOutput indicates an expected call of CombinedOutput.
func (*MockCmdMockRecorder) Output ¶ added in v1.1.0
func (mr *MockCmdMockRecorder) Output() *gomock.Call
Output indicates an expected call of Output.
func (*MockCmdMockRecorder) Run ¶ added in v1.1.0
func (mr *MockCmdMockRecorder) Run() *gomock.Call
Run indicates an expected call of Run.
func (*MockCmdMockRecorder) SetDir ¶ added in v1.1.0
func (mr *MockCmdMockRecorder) SetDir(dir interface{}) *gomock.Call
SetDir indicates an expected call of SetDir.
func (*MockCmdMockRecorder) SetEnv ¶ added in v1.1.0
func (mr *MockCmdMockRecorder) SetEnv(env interface{}) *gomock.Call
SetEnv indicates an expected call of SetEnv.
func (*MockCmdMockRecorder) SetStderr ¶ added in v1.1.0
func (mr *MockCmdMockRecorder) SetStderr(out interface{}) *gomock.Call
SetStderr indicates an expected call of SetStderr.
func (*MockCmdMockRecorder) SetStdin ¶ added in v1.1.0
func (mr *MockCmdMockRecorder) SetStdin(in interface{}) *gomock.Call
SetStdin indicates an expected call of SetStdin.
func (*MockCmdMockRecorder) SetStdout ¶ added in v1.1.0
func (mr *MockCmdMockRecorder) SetStdout(out interface{}) *gomock.Call
SetStdout indicates an expected call of SetStdout.
func (*MockCmdMockRecorder) Start ¶ added in v1.1.0
func (mr *MockCmdMockRecorder) Start() *gomock.Call
Start indicates an expected call of Start.
func (*MockCmdMockRecorder) StderrPipe ¶ added in v1.1.0
func (mr *MockCmdMockRecorder) StderrPipe() *gomock.Call
StderrPipe indicates an expected call of StderrPipe.
func (*MockCmdMockRecorder) StdoutPipe ¶ added in v1.1.0
func (mr *MockCmdMockRecorder) StdoutPipe() *gomock.Call
StdoutPipe indicates an expected call of StdoutPipe.
func (*MockCmdMockRecorder) Stop ¶ added in v1.1.0
func (mr *MockCmdMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop.
func (*MockCmdMockRecorder) Wait ¶ added in v1.1.0
func (mr *MockCmdMockRecorder) Wait() *gomock.Call
Wait indicates an expected call of Wait.
type MockExitError ¶ added in v1.1.0
type MockExitError struct {
// contains filtered or unexported fields
}
MockExitError is a mock of ExitError interface.
func NewMockExitError ¶ added in v1.1.0
func NewMockExitError(ctrl *gomock.Controller) *MockExitError
NewMockExitError creates a new mock instance.
func (*MockExitError) EXPECT ¶ added in v1.1.0
func (m *MockExitError) EXPECT() *MockExitErrorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockExitError) Error ¶ added in v1.1.0
func (m *MockExitError) Error() string
Error mocks base method.
func (*MockExitError) ExitStatus ¶ added in v1.1.0
func (m *MockExitError) ExitStatus() int
ExitStatus mocks base method.
func (*MockExitError) Exited ¶ added in v1.1.0
func (m *MockExitError) Exited() bool
Exited mocks base method.
func (*MockExitError) String ¶ added in v1.1.0
func (m *MockExitError) String() string
String mocks base method.
type MockExitErrorMockRecorder ¶ added in v1.1.0
type MockExitErrorMockRecorder struct {
// contains filtered or unexported fields
}
MockExitErrorMockRecorder is the mock recorder for MockExitError.
func (*MockExitErrorMockRecorder) Error ¶ added in v1.1.0
func (mr *MockExitErrorMockRecorder) Error() *gomock.Call
Error indicates an expected call of Error.
func (*MockExitErrorMockRecorder) ExitStatus ¶ added in v1.1.0
func (mr *MockExitErrorMockRecorder) ExitStatus() *gomock.Call
ExitStatus indicates an expected call of ExitStatus.
func (*MockExitErrorMockRecorder) Exited ¶ added in v1.1.0
func (mr *MockExitErrorMockRecorder) Exited() *gomock.Call
Exited indicates an expected call of Exited.
func (*MockExitErrorMockRecorder) String ¶ added in v1.1.0
func (mr *MockExitErrorMockRecorder) String() *gomock.Call
String indicates an expected call of String.
type MockInterface ¶ added in v1.1.0
type MockInterface struct {
// contains filtered or unexported fields
}
MockInterface is a mock of Interface interface.
func NewMockInterface ¶ added in v1.1.0
func NewMockInterface(ctrl *gomock.Controller) *MockInterface
NewMockInterface creates a new mock instance.
func (*MockInterface) Command ¶ added in v1.1.0
func (m *MockInterface) Command(cmd string, args ...string) exec.Cmd
Command mocks base method.
func (*MockInterface) CommandContext ¶ added in v1.1.0
CommandContext mocks base method.
func (*MockInterface) EXPECT ¶ added in v1.1.0
func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockInterfaceMockRecorder ¶ added in v1.1.0
type MockInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockInterfaceMockRecorder is the mock recorder for MockInterface.
func (*MockInterfaceMockRecorder) Command ¶ added in v1.1.0
func (mr *MockInterfaceMockRecorder) Command(cmd interface{}, args ...interface{}) *gomock.Call
Command indicates an expected call of Command.
func (*MockInterfaceMockRecorder) CommandContext ¶ added in v1.1.0
func (mr *MockInterfaceMockRecorder) CommandContext(ctx, cmd interface{}, args ...interface{}) *gomock.Call
CommandContext indicates an expected call of CommandContext.
func (*MockInterfaceMockRecorder) LookPath ¶ added in v1.1.0
func (mr *MockInterfaceMockRecorder) LookPath(file interface{}) *gomock.Call
LookPath indicates an expected call of LookPath.
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 ¶
func (m *MockMetadataService) EXPECT() *MockMetadataServiceMockRecorder
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) CheckLuksPassphrase ¶ added in v1.1.0
func (m *MockMounter) CheckLuksPassphrase(devicePath, passphrase string) bool
CheckLuksPassphrase mocks base method.
func (*MockMounter) Command ¶
func (m *MockMounter) Command(cmd string, args ...string) exec.Cmd
Command mocks base method.
func (*MockMounter) CommandContext ¶
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(filename string) (bool, error)
ExistsPath mocks base method.
func (*MockMounter) FormatAndMount ¶
func (m *MockMounter) FormatAndMount(source, target, fstype string, options []string) error
FormatAndMount mocks base method.
func (*MockMounter) GetDeviceName ¶
func (m *MockMounter) GetDeviceName(mountPath string) (string, int, error)
GetDeviceName mocks base method.
func (*MockMounter) GetDiskFormat ¶
func (m *MockMounter) GetDiskFormat(disk string) (string, error)
GetDiskFormat mocks base method.
func (*MockMounter) GetMountRefs ¶
func (m *MockMounter) GetMountRefs(pathname string) ([]string, error)
GetMountRefs mocks base method.
func (*MockMounter) IsCorruptedMnt ¶
func (m *MockMounter) IsCorruptedMnt(arg0 error) bool
IsCorruptedMnt mocks base method.
func (*MockMounter) IsLikelyNotMountPoint ¶
func (m *MockMounter) IsLikelyNotMountPoint(file string) (bool, error)
IsLikelyNotMountPoint mocks base method.
func (*MockMounter) IsLuks ¶ added in v1.1.0
func (m *MockMounter) IsLuks(devicePath string) bool
IsLuks mocks base method.
func (*MockMounter) IsLuksMapping ¶ added in v1.1.0
func (m *MockMounter) IsLuksMapping(devicePath string) (bool, string, error)
IsLuksMapping mocks base method.
func (*MockMounter) List ¶
func (m *MockMounter) List() ([]mount.MountPoint, error)
List mocks base method.
func (*MockMounter) LookPath ¶
func (m *MockMounter) LookPath(file string) (string, error)
LookPath mocks base method.
func (*MockMounter) LuksClose ¶ added in v1.1.0
func (m *MockMounter) LuksClose(deviceName string) error
LuksClose mocks base method.
func (*MockMounter) LuksFormat ¶ added in v1.1.0
func (m *MockMounter) LuksFormat(devicePath, passphrase string, context luks.LuksContext) error
LuksFormat mocks base method.
func (*MockMounter) LuksOpen ¶ added in v1.1.0
func (m *MockMounter) LuksOpen(devicePath, encryptedDeviceName, passphrase string) (bool, error)
LuksOpen mocks base method.
func (*MockMounter) LuksResize ¶ added in v1.1.0
func (m *MockMounter) LuksResize(deviceName string) error
LuksResize mocks base method.
func (*MockMounter) MakeDir ¶
func (m *MockMounter) MakeDir(pathname string) error
MakeDir mocks base method.
func (*MockMounter) MakeFile ¶
func (m *MockMounter) MakeFile(pathname string) error
MakeFile mocks base method.
func (*MockMounter) Mount ¶
func (m *MockMounter) Mount(source, target, fstype string, options []string) error
Mount mocks base method.
func (*MockMounter) MountSensitive ¶
func (m *MockMounter) MountSensitive(source, target, fstype string, options, sensitiveOptions []string) error
MountSensitive mocks base method.
func (*MockMounter) Unmount ¶
func (m *MockMounter) Unmount(target 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) CheckLuksPassphrase ¶ added in v1.1.0
func (mr *MockMounterMockRecorder) CheckLuksPassphrase(devicePath, passphrase interface{}) *gomock.Call
CheckLuksPassphrase indicates an expected call of CheckLuksPassphrase.
func (*MockMounterMockRecorder) Command ¶
func (mr *MockMounterMockRecorder) Command(cmd interface{}, args ...interface{}) *gomock.Call
Command indicates an expected call of Command.
func (*MockMounterMockRecorder) CommandContext ¶
func (mr *MockMounterMockRecorder) CommandContext(ctx, cmd interface{}, args ...interface{}) *gomock.Call
CommandContext indicates an expected call of CommandContext.
func (*MockMounterMockRecorder) ExistsPath ¶
func (mr *MockMounterMockRecorder) ExistsPath(filename interface{}) *gomock.Call
ExistsPath indicates an expected call of ExistsPath.
func (*MockMounterMockRecorder) FormatAndMount ¶
func (mr *MockMounterMockRecorder) FormatAndMount(source, target, fstype, options interface{}) *gomock.Call
FormatAndMount indicates an expected call of FormatAndMount.
func (*MockMounterMockRecorder) GetDeviceName ¶
func (mr *MockMounterMockRecorder) GetDeviceName(mountPath interface{}) *gomock.Call
GetDeviceName indicates an expected call of GetDeviceName.
func (*MockMounterMockRecorder) GetDiskFormat ¶
func (mr *MockMounterMockRecorder) GetDiskFormat(disk interface{}) *gomock.Call
GetDiskFormat indicates an expected call of GetDiskFormat.
func (*MockMounterMockRecorder) GetMountRefs ¶
func (mr *MockMounterMockRecorder) GetMountRefs(pathname interface{}) *gomock.Call
GetMountRefs indicates an expected call of GetMountRefs.
func (*MockMounterMockRecorder) IsCorruptedMnt ¶
func (mr *MockMounterMockRecorder) IsCorruptedMnt(arg0 interface{}) *gomock.Call
IsCorruptedMnt indicates an expected call of IsCorruptedMnt.
func (*MockMounterMockRecorder) IsLikelyNotMountPoint ¶
func (mr *MockMounterMockRecorder) IsLikelyNotMountPoint(file interface{}) *gomock.Call
IsLikelyNotMountPoint indicates an expected call of IsLikelyNotMountPoint.
func (*MockMounterMockRecorder) IsLuks ¶ added in v1.1.0
func (mr *MockMounterMockRecorder) IsLuks(devicePath interface{}) *gomock.Call
IsLuks indicates an expected call of IsLuks.
func (*MockMounterMockRecorder) IsLuksMapping ¶ added in v1.1.0
func (mr *MockMounterMockRecorder) IsLuksMapping(devicePath interface{}) *gomock.Call
IsLuksMapping indicates an expected call of IsLuksMapping.
func (*MockMounterMockRecorder) List ¶
func (mr *MockMounterMockRecorder) List() *gomock.Call
List indicates an expected call of List.
func (*MockMounterMockRecorder) LookPath ¶
func (mr *MockMounterMockRecorder) LookPath(file interface{}) *gomock.Call
LookPath indicates an expected call of LookPath.
func (*MockMounterMockRecorder) LuksClose ¶ added in v1.1.0
func (mr *MockMounterMockRecorder) LuksClose(deviceName interface{}) *gomock.Call
LuksClose indicates an expected call of LuksClose.
func (*MockMounterMockRecorder) LuksFormat ¶ added in v1.1.0
func (mr *MockMounterMockRecorder) LuksFormat(devicePath, passphrase, context interface{}) *gomock.Call
LuksFormat indicates an expected call of LuksFormat.
func (*MockMounterMockRecorder) LuksOpen ¶ added in v1.1.0
func (mr *MockMounterMockRecorder) LuksOpen(devicePath, encryptedDeviceName, passphrase interface{}) *gomock.Call
LuksOpen indicates an expected call of LuksOpen.
func (*MockMounterMockRecorder) LuksResize ¶ added in v1.1.0
func (mr *MockMounterMockRecorder) LuksResize(deviceName interface{}) *gomock.Call
LuksResize indicates an expected call of LuksResize.
func (*MockMounterMockRecorder) MakeDir ¶
func (mr *MockMounterMockRecorder) MakeDir(pathname interface{}) *gomock.Call
MakeDir indicates an expected call of MakeDir.
func (*MockMounterMockRecorder) MakeFile ¶
func (mr *MockMounterMockRecorder) MakeFile(pathname interface{}) *gomock.Call
MakeFile indicates an expected call of MakeFile.
func (*MockMounterMockRecorder) Mount ¶
func (mr *MockMounterMockRecorder) Mount(source, target, fstype, options interface{}) *gomock.Call
Mount indicates an expected call of Mount.
func (*MockMounterMockRecorder) MountSensitive ¶
func (mr *MockMounterMockRecorder) MountSensitive(source, target, fstype, options, sensitiveOptions interface{}) *gomock.Call
MountSensitive indicates an expected call of MountSensitive.
func (*MockMounterMockRecorder) Unmount ¶
func (mr *MockMounterMockRecorder) Unmount(target interface{}) *gomock.Call
Unmount indicates an expected call of Unmount.