utils

package
v0.0.0-...-6bdf688 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncodeMetadata

func EncodeMetadata(meta map[string]string) ([]string, error)

func GetLogfile

func GetLogfile(logfile string) *os.File

func IsFilesystemMounted

func IsFilesystemMounted(fs string) (bool, error)

func Mnt

func Mnt(fs string) string

func Out

func Out(s ...interface{})

func Pipe

func Pipe(
	r io.Reader, rDesc string, w io.Writer, wDesc string,
	finished chan bool, canceller chan *types.Event,
	cancelFunc func(*types.Event, chan *types.Event),
	notifyFunc func(int64, int64),
	compressMode string,
)

TODO: pipe would be better named Copy

func ReturnCode

func ReturnCode(name string, arg ...string) (int, error)

func Unmnt

func Unmnt(p string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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