utils

package
v0.0.0-...-7b2c5c5 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Chmod

func Chmod(path string, perm os.FileMode) error

func ChownR

func ChownR(path string, user, group string) error

func Copy

func Copy(dir, source, dest string, presv bool) error

func CopyFile

func CopyFile(dir, source, dest string, presv bool) error

func CopyFiles

func CopyFiles(source, dest string, presv bool) error

func Create

func Create(path string) (*os.File, error)

func CreateWrite

func CreateWrite(path string, data string) error

func Exec

func Exec(dir, name string, arg ...string) error

func ExecInput

func ExecInput(dir, input, name string, arg ...string) error

func ExecOutput

func ExecOutput(dir, name string, arg ...string) (string, error)

func Exists

func Exists(path string) (bool, error)

func ExistsMakeDir

func ExistsMakeDir(path string) error

func Filename

func Filename(path string) string

func FindExt

func FindExt(path string, extension string) ([]string, error)

func GetDirSize

func GetDirSize(path string) (int, error)

func HTTPGet

func HTTPGet(url, output string, protocol string) error

func MkdirAll

func MkdirAll(path string) error

func Open

func Open(path string) (*os.File, error)

func PullContainers

func PullContainers(target string) error

func RandStr

func RandStr(n int) string

func Remove

func Remove(path string) error

func RemoveAll

func RemoveAll(path 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