util

package
v0.26.18 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2018 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
View Source
const EscapeVersion = "0.26.3"

Variables

This section is empty.

Functions

func CopyFile

func CopyFile(src, dst string) error

func GetAppConfigDir

func GetAppConfigDir(osString, homeDirectory string) string

func InterfaceMapToStringMap

func InterfaceMapToStringMap(values *map[string]interface{}, keyPrefix string) map[string]string

func InterfaceToString

func InterfaceToString(val interface{}) (string, error)

func IsDir

func IsDir(path string) bool

func MakeExecutable

func MakeExecutable(path string) error

func MkdirRecursively

func MkdirRecursively(path string) error

func PathExists

func PathExists(path string) bool

func RecordError

func RecordError(cmd []string, err error) error

func RemoveTree

func RemoveTree(path string) error

func StructToMapStringInterface

func StructToMapStringInterface(val interface{}, tag string) map[string]interface{}

Types

type ProcessRecorder

type ProcessRecorder interface {
	SetWorkingDirectory(string)
	Record(cmd []string, env []string, log api.Logger) (string, error)
	Run(cmd []string, env []string, log api.Logger) error
}

func NewProcessRecorder

func NewProcessRecorder() ProcessRecorder

Directories

Path Synopsis
api

Jump to

Keyboard shortcuts

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