Documentation ¶
Index ¶
- func CloseVolume(volume string) error
- func DeviceEncryptionStatus(devicePath string) (mappedDevice, mapper string, err error)
- func EncryptVolume(devicePath, passphrase string) error
- func IsDeviceOpen(device string) (bool, error)
- func OpenVolume(volume, devicePath, passphrase string) error
- func VolumeMapper(volume string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloseVolume ¶
CloseVolume closes encrypted volume so it can be detached.
func DeviceEncryptionStatus ¶
DeviceEncryptionStatus looks to identify if the passed device is a LUKS mapping and if so what the device is and the mapper name as used by LUKS. If not, just returns the original device and an empty string.
func EncryptVolume ¶
EncryptVolume encrypts provided device with LUKS.
func IsDeviceOpen ¶
IsDeviceOpen determines if encrypted device is already open.
func OpenVolume ¶
OpenVolume opens volume so that it can be used by the client.
func VolumeMapper ¶
VolumeMapper returns the path for mapped encrypted device.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.