Documentation ¶
Index ¶
- type MockFsOpts
- func (m *MockFsOpts) CreateFSIfNotExist(fsType fs.FileSystem, device, uuid string) error
- func (m *MockFsOpts) MountFakeTmpfs(volumeID, path string) error
- func (m *MockFsOpts) PrepareAndPerformMount(src, dst string, bindMount, dstIsDir bool, _ ...string) error
- func (m *MockFsOpts) UnmountWithCheck(path string) error
- type MockPartitionOps
- type MockProvisioner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockFsOpts ¶
type MockFsOpts struct {
mocklu.MockWrapFS
}
MockFsOpts is a mock implementation of FSOperation interface from volumeprovisioner package
func (*MockFsOpts) CreateFSIfNotExist ¶
func (m *MockFsOpts) CreateFSIfNotExist(fsType fs.FileSystem, device, uuid string) error
CreateFSIfNotExist is a mock implementation
func (*MockFsOpts) MountFakeTmpfs ¶
func (m *MockFsOpts) MountFakeTmpfs(volumeID, path string) error
MountFakeTmpfs is a mock implementation
func (*MockFsOpts) PrepareAndPerformMount ¶
func (m *MockFsOpts) PrepareAndPerformMount(src, dst string, bindMount, dstIsDir bool, _ ...string) error
PrepareAndPerformMount is a mock implementation
func (*MockFsOpts) UnmountWithCheck ¶
func (m *MockFsOpts) UnmountWithCheck(path string) error
UnmountWithCheck is a mock implementation
type MockPartitionOps ¶
type MockPartitionOps struct { mocklu.MockWrapPartition mock.Mock }
MockPartitionOps is a mock implementation of WrapPartition interface
func (*MockPartitionOps) PreparePartition ¶
func (m *MockPartitionOps) PreparePartition(p utilwrappers.Partition) (*utilwrappers.Partition, error)
PreparePartition is a mock implementation
func (*MockPartitionOps) ReleasePartition ¶
func (m *MockPartitionOps) ReleasePartition(p utilwrappers.Partition) error
ReleasePartition is a mock implementation
func (*MockPartitionOps) SearchPartName ¶
func (m *MockPartitionOps) SearchPartName(device, partUUID string) (string, error)
SearchPartName is a mock implementation
type MockProvisioner ¶
MockProvisioner is a mock implementation of Provisioner interface
func GetMockProvisionerSuccess ¶
func GetMockProvisionerSuccess(everytimePath string) *MockProvisioner
GetMockProvisionerSuccess retruns MockProvisioner that perform each method without any error everytimePath is a path that will be returning for each "GetVolumePath" call
func (*MockProvisioner) GetVolumePath ¶
func (m *MockProvisioner) GetVolumePath(volume *api.Volume) (string, error)
GetVolumePath is the mock implementation of GetVolumePath method from Provisioner interface
func (*MockProvisioner) PrepareVolume ¶
func (m *MockProvisioner) PrepareVolume(volume *api.Volume) error
PrepareVolume is the mock implementation of PrepareVolume method from Provisioner interface
func (*MockProvisioner) ReleaseVolume ¶
ReleaseVolume is the mock implementation of ReleaseVolume method from Provisioner interface