Documentation ¶
Overview ¶
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) 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, ...) (*ec2.VolumeAttachment, 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) 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(...) *gomock.Call
- type MockMetadataService
- func (m *MockMetadataService) EXPECT() *MockMetadataServiceMockRecorder
- func (m *MockMetadataService) GetAvailabilityZone() string
- func (m *MockMetadataService) GetInstanceID() string
- func (m *MockMetadataService) GetInstanceType() string
- func (m *MockMetadataService) GetOutpostArn() arn.ARN
- func (m *MockMetadataService) GetRegion() string
- type MockMetadataServiceMockRecorder
- func (mr *MockMetadataServiceMockRecorder) GetAvailabilityZone() *gomock.Call
- func (mr *MockMetadataServiceMockRecorder) GetInstanceID() *gomock.Call
- func (mr *MockMetadataServiceMockRecorder) GetInstanceType() *gomock.Call
- func (mr *MockMetadataServiceMockRecorder) GetOutpostArn() *gomock.Call
- func (mr *MockMetadataServiceMockRecorder) GetRegion() *gomock.Call
- type MockMounter
- 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) FormatAndMount(source, target, fstype string, options []string) error
- func (m *MockMounter) GetDeviceNameFromMount(mountPath string) (string, int, error)
- func (m *MockMounter) GetMountRefs(pathname string) ([]string, error)
- func (m *MockMounter) IsLikelyNotMountPoint(file string) (bool, error)
- func (m *MockMounter) List() ([]mount.MountPoint, error)
- func (m *MockMounter) LookPath(file string) (string, error)
- func (m *MockMounter) MakeDir(path string) error
- func (m *MockMounter) MakeFile(path 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) MountSensitiveWithoutSystemd(source, target, fstype string, options, sensitiveOptions []string) error
- func (m *MockMounter) NeedResize(devicePath, deviceMountPath string) (bool, error)
- func (m *MockMounter) PathExists(path string) (bool, error)
- func (m *MockMounter) Unmount(target string) error
- type MockMounterMockRecorder
- func (mr *MockMounterMockRecorder) Command(cmd interface{}, args ...interface{}) *gomock.Call
- func (mr *MockMounterMockRecorder) CommandContext(ctx, cmd interface{}, args ...interface{}) *gomock.Call
- func (mr *MockMounterMockRecorder) FormatAndMount(source, target, fstype, options interface{}) *gomock.Call
- func (mr *MockMounterMockRecorder) GetDeviceNameFromMount(mountPath interface{}) *gomock.Call
- func (mr *MockMounterMockRecorder) GetMountRefs(pathname interface{}) *gomock.Call
- func (mr *MockMounterMockRecorder) IsLikelyNotMountPoint(file interface{}) *gomock.Call
- func (mr *MockMounterMockRecorder) List() *gomock.Call
- func (mr *MockMounterMockRecorder) LookPath(file interface{}) *gomock.Call
- func (mr *MockMounterMockRecorder) MakeDir(path interface{}) *gomock.Call
- func (mr *MockMounterMockRecorder) MakeFile(path 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) MountSensitiveWithoutSystemd(source, target, fstype, options, sensitiveOptions interface{}) *gomock.Call
- func (mr *MockMounterMockRecorder) NeedResize(devicePath, deviceMountPath interface{}) *gomock.Call
- func (mr *MockMounterMockRecorder) PathExists(path 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) GetSnapshotByID ¶ added in v0.5.0
func (m *MockCloud) GetSnapshotByID(ctx context.Context, snapshotID string) (*cloud.Snapshot, error)
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.
func (*MockCloud) WaitForAttachmentState ¶
func (m *MockCloud) WaitForAttachmentState(ctx context.Context, volumeID, expectedState, expectedInstance, expectedDevice string, alreadyAssigned bool) (*ec2.VolumeAttachment, 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(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) GetSnapshotByID ¶ added in v0.5.0
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, expectedState, expectedInstance, expectedDevice, alreadyAssigned 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 ¶
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) 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(cmd string, args ...string) exec.Cmd
Command mocks base method.
func (*MockMounter) CommandContext ¶ added in v0.5.0
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) FormatAndMount ¶
func (m *MockMounter) FormatAndMount(source, target, fstype string, options []string) error
FormatAndMount mocks base method.
func (*MockMounter) GetDeviceNameFromMount ¶
func (m *MockMounter) GetDeviceNameFromMount(mountPath string) (string, int, error)
GetDeviceNameFromMount mocks base method.
func (*MockMounter) GetMountRefs ¶
func (m *MockMounter) GetMountRefs(pathname string) ([]string, error)
GetMountRefs mocks base method.
func (*MockMounter) IsLikelyNotMountPoint ¶
func (m *MockMounter) IsLikelyNotMountPoint(file 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(file string) (string, error)
LookPath mocks base method.
func (*MockMounter) MakeDir ¶
func (m *MockMounter) MakeDir(path string) error
MakeDir mocks base method.
func (*MockMounter) MakeFile ¶
func (m *MockMounter) MakeFile(path 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 ¶ added in v0.10.0
func (m *MockMounter) MountSensitive(source, target, fstype string, options, sensitiveOptions []string) error
MountSensitive mocks base method.
func (*MockMounter) MountSensitiveWithoutSystemd ¶ added in v0.10.0
func (m *MockMounter) MountSensitiveWithoutSystemd(source, target, fstype string, options, sensitiveOptions []string) error
MountSensitiveWithoutSystemd mocks base method.
func (*MockMounter) NeedResize ¶ added in v1.0.0
func (m *MockMounter) NeedResize(devicePath, deviceMountPath string) (bool, error)
NeedResize mocks base method.
func (*MockMounter) PathExists ¶ added in v0.10.0
func (m *MockMounter) PathExists(path string) (bool, error)
PathExists 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) Command ¶ added in v0.5.0
func (mr *MockMounterMockRecorder) Command(cmd interface{}, args ...interface{}) *gomock.Call
Command indicates an expected call of Command.
func (*MockMounterMockRecorder) CommandContext ¶ added in v0.5.0
func (mr *MockMounterMockRecorder) CommandContext(ctx, cmd interface{}, args ...interface{}) *gomock.Call
CommandContext indicates an expected call of CommandContext.
func (*MockMounterMockRecorder) FormatAndMount ¶
func (mr *MockMounterMockRecorder) FormatAndMount(source, target, fstype, options interface{}) *gomock.Call
FormatAndMount indicates an expected call of FormatAndMount.
func (*MockMounterMockRecorder) GetDeviceNameFromMount ¶
func (mr *MockMounterMockRecorder) GetDeviceNameFromMount(mountPath interface{}) *gomock.Call
GetDeviceNameFromMount indicates an expected call of GetDeviceNameFromMount.
func (*MockMounterMockRecorder) GetMountRefs ¶
func (mr *MockMounterMockRecorder) GetMountRefs(pathname interface{}) *gomock.Call
GetMountRefs indicates an expected call of GetMountRefs.
func (*MockMounterMockRecorder) IsLikelyNotMountPoint ¶
func (mr *MockMounterMockRecorder) IsLikelyNotMountPoint(file 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(file interface{}) *gomock.Call
LookPath indicates an expected call of LookPath.
func (*MockMounterMockRecorder) MakeDir ¶
func (mr *MockMounterMockRecorder) MakeDir(path interface{}) *gomock.Call
MakeDir indicates an expected call of MakeDir.
func (*MockMounterMockRecorder) MakeFile ¶
func (mr *MockMounterMockRecorder) MakeFile(path 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 ¶ added in v0.10.0
func (mr *MockMounterMockRecorder) MountSensitive(source, target, fstype, options, sensitiveOptions interface{}) *gomock.Call
MountSensitive indicates an expected call of MountSensitive.
func (*MockMounterMockRecorder) MountSensitiveWithoutSystemd ¶ added in v0.10.0
func (mr *MockMounterMockRecorder) MountSensitiveWithoutSystemd(source, target, fstype, options, sensitiveOptions interface{}) *gomock.Call
MountSensitiveWithoutSystemd indicates an expected call of MountSensitiveWithoutSystemd.
func (*MockMounterMockRecorder) NeedResize ¶ added in v1.0.0
func (mr *MockMounterMockRecorder) NeedResize(devicePath, deviceMountPath interface{}) *gomock.Call
NeedResize indicates an expected call of NeedResize.
func (*MockMounterMockRecorder) PathExists ¶ added in v0.10.0
func (mr *MockMounterMockRecorder) PathExists(path interface{}) *gomock.Call
PathExists indicates an expected call of PathExists.
func (*MockMounterMockRecorder) Unmount ¶
func (mr *MockMounterMockRecorder) Unmount(target interface{}) *gomock.Call
Unmount indicates an expected call of Unmount.