Documentation
¶
Index ¶
- func Convert(from, to interface{}) error
- func Copy(d interface{}) interface{}
- func DecodeBase64Content(content string) ([]byte, error)
- func DecodeContent(content string, encoding string) ([]byte, error)
- func DecodeGzipContent(content string) ([]byte, error)
- func DecompressGzip(content []byte) ([]byte, error)
- func EnsureDirectoryExists(dir string) error
- func Env2Map(env []string) map[string]string
- func ExistsAndExecutable(path string) bool
- func FileCopy(src, dest string) error
- func FilterKeys(data map[string]interface{}, key []string) (filtered, rest map[string]interface{})
- func HTTPDownloadToFile(url, dest string) error
- func HTTPLoadBytes(url string) ([]byte, error)
- func MapCopy(data map[string]interface{}) map[string]interface{}
- func MaskPassword(r *os.File, w io.Writer) ([]byte, error)
- func PromptPassword() (string, bool, error)
- func PromptYes(question string) bool
- func RunScript(path string, arg ...string) error
- func SliceCopy(data []interface{}) []interface{}
- func UnescapeKernelParams(s string) string
- func WriteFileAtomic(filename string, data []byte, perm os.FileMode) error
- func WriteToFile(data interface{}, filename string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeBase64Content ¶
func DecodeGzipContent ¶
func DecompressGzip ¶
func EnsureDirectoryExists ¶
func ExistsAndExecutable ¶
func FilterKeys ¶
func HTTPDownloadToFile ¶
func HTTPLoadBytes ¶
func PromptPassword ¶ added in v0.2.0
func UnescapeKernelParams ¶
func WriteToFile ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.