tmpformac

package
v3.10.0-0.21.0+incompa... Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyDirectory

func CopyDirectory(source string, dest string) error

CopyDirectory copies the files under the source directory to dest directory. The dest directory is created if it does not exist. Copied from vendor/github.com/mrunalp/fileutils/fileutils.go

func CopyFile

func CopyFile(source string, dest string) error

CopyFile copies the file at source to dest Copied from vendor/github.com/mrunalp/fileutils/fileutils.go

func MkdirAllNewAs

func MkdirAllNewAs(path string, mode os.FileMode, ownerUID, ownerGID int) error

MkdirAllNewAs creates a directory (include any along the path) and then modifies ownership ONLY of newly created directories to the requested uid/gid. If the directories along the path exist, no change of ownership will be performed Copied from vendor/github.com/mrunalp/fileutils/idtools.go

func TempDir

func TempDir(basedir, prefix string) (string, error)

TempDir wraps the ioutil.TempDir and add logic to handle private temp directories on OSX. This is needed in order to allow mounting configuration/certificates into Docker as the Docker for Mac only allows mounting from "/tmp".

Types

This section is empty.

Jump to

Keyboard shortcuts

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