volumeaccess

package
v0.0.0-...-6489ed8 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

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.

Jump to

Keyboard shortcuts

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