Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VolumeContext ¶
type VolumeContext interface { // Return the device path of the context where it can be accessed GetDevicePath() string // Tear down the volume setup Close() error }
func OpenDevice ¶
func OpenDevice(devicePath string) (VolumeContext, error)
func OpenEncryptedDevice ¶
func OpenEncryptedDevice(key string, devicePath string) (VolumeContext, error)
OpenEncryptedDevice opens a given device as an encrypted device and returns the mount path.
Click to show internal directories.
Click to hide internal directories.