Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mock_driver 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 MockMetadataService
- type MockMetadataServiceMockRecorder
- 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) 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(err error) bool
- 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(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) 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(err error) *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(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 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) 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(err error) bool
IsCorruptedMnt 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 ¶
func (m *MockMounter) LookPath(file string) (string, error)
LookPath 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) 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(err error) *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) 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) 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