utils

package
v1.32.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 14 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanDir added in v1.4.0

func CleanDir(dirPath string) error

CleanDir ...

func Close added in v1.27.1

func Close(stream io.Closer)

func CloseFile added in v1.27.1

func CloseFile(file *os.File)

func CloseGZipReader added in v1.27.1

func CloseGZipReader(reader *gzip.Reader)

func ClosePBReader added in v1.27.1

func ClosePBReader(reader *pb.Reader)

func CloseZipReader added in v1.27.1

func CloseZipReader(reader *zip.ReadCloser)

func CreateDirs added in v1.11.0

func CreateDirs(dirPath string) error

CreateDirs ...

func DeleteDir added in v1.27.1

func DeleteDir(dirPath string)

DeleteDir ...

func GetAppDataHome added in v1.11.0

func GetAppDataHome() string

GetAppDataHome ...

func GetBinDir added in v1.27.1

func GetBinDir(executable string) string

GetBinDir ...

func GetUserHome

func GetUserHome() string

GetUserHome ...

func GetValueFromEnv added in v1.27.1

func GetValueFromEnv(envVar string, defaultValue string) string

GetValueFromEnv ...

func Untar

func Untar(src string, dst string) error

Untar takes a destination path and a reader; a tar reader loops over the tarfile creating the file structure at 'dst' along the way, and writing any files

func Unzip

func Unzip(src string, dest string) error

Unzip ...

Types

This section is empty.

Jump to

Keyboard shortcuts

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