backend

package
v0.0.0-...-f4e3210 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2017 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DeviceNotFound = errors.New("Could not find device")
View Source
var RelativeRawVMDK = true
View Source
var SupportPassiveListener = true

Functions

func FindDevice

func FindDevice() (string, error)

func FindDeviceByPath

func FindDeviceByPath(path string) (string, error)

func FindDeviceByUUID

func FindDeviceByUUID(uuid string) (string, error)

func GetDeviceSize

func GetDeviceSize(device string) (uint64, error)

func GetFreeRam

func GetFreeRam() (uint64, error)

func IsAdmin

func IsAdmin() bool

func RunAsRoot

func RunAsRoot(executable string, args ...string) error

Types

type DeviceFile

type DeviceFile interface {
	io.Reader
	io.Writer
	io.Seeker
	io.Closer
}

func OpenDevice

func OpenDevice(device string, mode int) (DeviceFile, error)

type USBDevice

type USBDevice struct {
	Mountpoint string
	VolumeName string
	Device     string
}

Jump to

Keyboard shortcuts

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