Documentation ¶
Index ¶
- func CreateNewDevice(containerId, devPrefix, rootPath string) error
- func CreatePool(dm *DeviceMapper) error
- func CreateVolume(poolName, volName, dev_id, mkfs string, size int, restore bool) error
- func DMCleanup(dm *DeviceMapper) error
- func DeleteVolume(dm *DeviceMapper, dev_id int) error
- func InjectFile(src io.Reader, containerId, devPrefix, target, basePath string, ...) error
- func MountContainerToSharedDir(containerId, sharedDir, devPrefix string) (string, error)
- func ProbeFsType(device string) (string, error)
- func UnmapVolume(deviceFullPath string) error
- type DeviceMapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateNewDevice ¶
func CreatePool ¶
func CreatePool(dm *DeviceMapper) error
func CreateVolume ¶
func DMCleanup ¶
func DMCleanup(dm *DeviceMapper) error
Delete the pool which is created in 'Init' function
func DeleteVolume ¶
func DeleteVolume(dm *DeviceMapper, dev_id int) error
func InjectFile ¶ added in v0.5.0
func MountContainerToSharedDir ¶
For device mapper, we do not need to mount the container to sharedDir. All of we need to provide the block device name of container.
func ProbeFsType ¶
func UnmapVolume ¶ added in v0.6.0
Types ¶
Click to show internal directories.
Click to hide internal directories.