Documentation ¶
Index ¶
- func CreateNewDevice(containerId, devPrefix, rootPath string) error
- func CreatePool(dm *DeviceMapper) error
- func CreateVolume(poolName, volName, dev_id 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, rootPath string, ...) error
- func MountContainerToSharedDir(containerId, sharedDir, devPrefix string) (string, error)
- func ProbeFsType(device string) (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 ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.