Documentation
¶
Index ¶
- Constants
- func ArchiveDir(dir, out string, excludes []string) error
- func CheckMatch(name string, globs []glob.Glob) bool
- func ChownRToUser(path string) error
- func ChownToUser(path string) error
- func CopyDir(src, dst string, filter func(path string, entry fs.DirEntry) bool) error
- func CopyFileContents(source, dest string, perm fs.FileMode) error
- func FindMatchingBaseDir(path string, matching []string, stopDir string) string
- func FindSubdirsOfMatching(path string, matching []string) []string
- func FindYAML(path string) string
- func FindYAMLFiles(path string, match func(string) bool) []string
- func FindYAMLFilesByName(path string, name ...string) []string
- func FindYAMLGoingUp(path, name string) string
- func GetModTimeFromFile(path string) time.Time
- func IsRelativeSubdir(parent, dir string) bool
- func IsSymlink(path string) (bool, error)
- func LchownRToUser(path string) error
- func LchownToUser(path string) error
- func Mkdir(path string, perm os.FileMode) error
- func MkdirAll(path string, perm os.FileMode) error
- func Symlink(oldname, newname string) error
- func Touch(path string) error
- func WriteFile(filename string, data []byte, perm fs.FileMode) error
- func YAMLError(path, msg string, data []byte) error
Constants ¶
View Source
const (
GOOSWindows = "windows"
)
Variables ¶
This section is empty.
Functions ¶
func ArchiveDir ¶ added in v0.1.117
func ChownRToUser ¶ added in v0.1.53
func ChownToUser ¶ added in v0.1.53
func CopyDir ¶ added in v0.1.58
CopyDir recursively copies a directory tree, attempting to preserve permissions. Source directory must exist.
func CopyFileContents ¶ added in v0.1.58
CopyFileContents that copies file contents and does Chown when needed to drop sudo privileges.
func FindMatchingBaseDir ¶
func FindSubdirsOfMatching ¶
func FindYAMLFilesByName ¶ added in v0.1.113
func FindYAMLGoingUp ¶
func GetModTimeFromFile ¶ added in v0.1.67
func IsRelativeSubdir ¶ added in v0.1.11
func LchownRToUser ¶ added in v0.1.53
func LchownToUser ¶ added in v0.1.53
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.