util

package
v0.2.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2015 License: Apache-2.0 Imports: 13 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 Convert added in v0.2.0

func Convert(from, to interface{}) error

func ExtractTar

func ExtractTar(archive string, dest string) error

func GetFsType

func GetFsType(device string) (string, error)

func IsRunningInTty

func IsRunningInTty() bool

func MergeMaps added in v0.2.0

func MergeMaps(left, right map[interface{}]interface{})

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