util

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTmpDir added in v0.1.0

func CreateTmpDir(prefix string) (string, error)

CreateTmpDir creates a temporary directory and returns its path as a string.

func OsTempDir added in v0.1.0

func OsTempDir() (string, error)

OsTempDir gets os.TempDir() (usually provided by $TMPDIR) but expands any symlinks found within it. This wrapper function can prevent problems with docker-for-mac trying to use /var/..., which is not typically shared/mounted. It will be expanded via the /var symlink to /private/var/...

func ZipDirectory

func ZipDirectory(executor exec.Interface, zipFile string, directory string) error

ZipDirectory zips the given directory to the given zipFile and returns the path of the zipFile which is directory/zipFile

Types

This section is empty.

Jump to

Keyboard shortcuts

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