exp

package
v0.0.0-...-d459dd1 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package exp has experimental code, unfinished.

Index

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

func FindPartition(label string, devices []string) (*partition, error)

FindPartition finds the partition label in the given devices. Returns data related to the partition.

func GetUSBremovables

func GetUSBremovables() (devices []string, err error)

GetUSBremovables returns a list of the USB removables devices.

func ReadPassword

func ReadPassword(prompt string) (key []byte, err error)

ReadPassword reads a password directly from terminal or through a third program.

func Writef

func Writef(format string, a ...interface{})

Writef prints a message using the program in CMD_WRITE or to Stderr.

func Writefln

func Writefln(format string, a ...interface{})

Writefln is like Writef, but adds a new line.

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

Jump to

Keyboard shortcuts

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