Documentation ¶
Index ¶
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) 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) 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
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 ¶
func (m *MockProvisioner) ReleaseVolume(volume api.Volume) error
ReleaseVolume is the mock implementation of ReleaseVolume method from Provisioner interface