Documentation ¶
Overview ¶
Package exp has experimental code, unfinished.
Index ¶
- Constants
- Variables
- func FindPartition(label string, devices []string) (*partition, error)
- func GetUSBremovables() (devices []string, err error)
- func ReadPassword(prompt string) (key []byte, err error)
- func Writef(format string, a ...interface{})
- func Writefln(format string, a ...interface{})
- type CmdFindPartError
- type FindPartError
Constants ¶
View Source
const CMD_WRITE = "/bin/plymouth" // to write during graphical boot
Variables ¶
View Source
var ErrNoRemovUSB = errors.New("removable USB device no found")
== Errors
View Source
var USE_CMD_WRITE bool
Functions ¶
func FindPartition ¶
FindPartition finds the partition label in the given devices. Returns data related to the partition.
func GetUSBremovables ¶
GetUSBremovables returns a list of the USB removables devices.
func ReadPassword ¶
ReadPassword reads a password directly from terminal or through a third program.
Types ¶
type CmdFindPartError ¶
type CmdFindPartError string
func (CmdFindPartError) Error ¶
func (e CmdFindPartError) Error() string
type FindPartError ¶
type FindPartError string
func (FindPartError) Error ¶
func (e FindPartError) Error() string
Click to show internal directories.
Click to hide internal directories.