Documentation ¶
Index ¶
- Variables
- func Contains(values []string, value string) bool
- func Convert(from, to interface{}) error
- func ExtractTar(archive string, dest string) error
- func GetFsType(device string) (string, error)
- func GetOSType() string
- func GetServices(urls []string) ([]string, error)
- func GetValue(kvPairs []string, key string) string
- func IsRunningInTty() bool
- func KVPairs2Map(kvs []string) map[string]string
- func LoadResource(location string, network bool, urls []string) ([]byte, error)
- func Map2KVPairs(m map[string]string) []string
- func MergeBytes(left, right []byte) ([]byte, error)
- func MergeMaps(left, right map[interface{}]interface{})
- func Mount(device, directory, fsType, options string) error
- func RandSeq(n int) string
- func Remount(directory, options string) error
- func ResolveDevice(spec string) string
- func ShortCircuit(funcs ...ReturnsErr) error
- type ErrWriter
- type ReturnsErr
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoNetwork = errors.New("Networking not available to load resource") ErrNotFound = errors.New("Failed to find resource") )
Functions ¶
func ExtractTar ¶
func GetServices ¶ added in v0.3.0
func IsRunningInTty ¶
func IsRunningInTty() bool
func KVPairs2Map ¶ added in v0.3.1
func LoadResource ¶ added in v0.3.0
func Map2KVPairs ¶ added in v0.3.1
func MergeBytes ¶ added in v0.3.0
func ResolveDevice ¶
func ShortCircuit ¶
func ShortCircuit(funcs ...ReturnsErr) error
Types ¶
type ErrWriter ¶
type ErrWriter struct { Err error // contains filtered or unexported fields }
func NewErrorWriter ¶
type ReturnsErr ¶
type ReturnsErr func() error
Click to show internal directories.
Click to hide internal directories.