utils

package
v0.0.0-...-08a6d4d Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureDir

func EnsureDir(path string) (string, error)

func ExpandPath

func ExpandPath(path string) (string, error)

func FileSize

func FileSize(file string) (int64, error)

func FindExecInPath

func FindExecInPath(file string, path string) (string, error)

adapted from exec.LookupPath (from go source code)

func Findenv

func Findenv(env []string, key string) string

func MustGetLogger

func MustGetLogger() *logrus.Logger

func PathExists

func PathExists(path string) bool

func SetLoggerQuiet

func SetLoggerQuiet()

func SetLoggerVerbose

func SetLoggerVerbose()

func Untar

func Untar(tarball, target 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