provisioners

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 5 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) CreateFSIfNotExist

func (m *MockFsOpts) CreateFSIfNotExist(fsType fs.FileSystem, device, uuid string) error

CreateFSIfNotExist is a mock implementation

func (*MockFsOpts) CreateFakeDevice added in v1.4.0

func (m *MockFsOpts) CreateFakeDevice(src string) (string, error)

CreateFakeDevice 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

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

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, drive *api.Drive) 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