util

package
v0.11.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeBase64Content

func DecodeBase64Content(content string) ([]byte, error)

func DecodeContent

func DecodeContent(content string, encoding string) ([]byte, error)

func DecodeGzipContent

func DecodeGzipContent(content string) ([]byte, error)

func DecompressGzip

func DecompressGzip(content []byte) ([]byte, error)

func EnsureDirectoryExists

func EnsureDirectoryExists(dir string) error

func ExistsAndExecutable

func ExistsAndExecutable(path string) bool

func HTTPDownloadToFile

func HTTPDownloadToFile(url, dest string) error

func HTTPLoadBytes

func HTTPLoadBytes(url string) ([]byte, error)

func MaskPassword added in v0.2.0

func MaskPassword(r *os.File, w io.Writer) ([]byte, error)

func PromptPassword added in v0.2.0

func PromptPassword() (string, bool, error)

func RunScript

func RunScript(path string, arg ...string) error

func WriteFileAtomic

func WriteFileAtomic(filename string, data []byte, perm os.FileMode) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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