provisioners

package
v0.3.0-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 3, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

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

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

type MockProvisioner struct {
	mock.Mock
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL