util

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2015 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(values []string, value string) bool

func ExtractTar

func ExtractTar(archive string, dest string) error

func GetFsType

func GetFsType(device string) (string, error)

func IsRunningInTty

func IsRunningInTty() bool

func Mount

func Mount(device, directory, fsType, options string) error

func RandSeq

func RandSeq(n int) string

func Remount

func Remount(directory, options string) error

func ResolveDevice

func ResolveDevice(spec string) string

func ShortCircuit

func ShortCircuit(funcs ...ReturnsErr) error

Types

type ErrWriter

type ErrWriter struct {
	Err error
	// contains filtered or unexported fields
}

func NewErrorWriter

func NewErrorWriter(w io.Writer) *ErrWriter

func (*ErrWriter) Write

func (e *ErrWriter) Write(buf []byte) *ErrWriter

type ReturnsErr

type ReturnsErr func() error

Jump to

Keyboard shortcuts

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