crypto

package
v1.2.3-rc2 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2021 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseVolume

func CloseVolume(volume string) error

CloseVolume closes encrypted volume so it can be detached.

func DeviceEncryptionStatus

func DeviceEncryptionStatus(devicePath string) (mappedDevice, mapper string, err error)

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

func EncryptVolume(devicePath, passphrase string) error

EncryptVolume encrypts provided device with LUKS.

func IsDeviceOpen

func IsDeviceOpen(device string) (bool, error)

IsDeviceOpen determines if encrypted device is already open.

func OpenVolume

func OpenVolume(volume, devicePath, passphrase string) error

OpenVolume opens volume so that it can be used by the client.

func VolumeMapper

func VolumeMapper(volume string) string

VolumeMapper returns the path for mapped encrypted device.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL