Documentation

Index

Constants

View Source
const (
	FilePerm600 os.FileMode = 0o600 // For secret files.
	FilePerm644 os.FileMode = 0o644 // For normal files.
	FilePerm755 os.FileMode = 0o755 // For directory or execute files.
)

Variables

This section is empty.

Functions

func EnsureFileExists

func EnsureFileExists(path string)

func EnsureFolderExists

func EnsureFolderExists(folder string)

func Exists

func Exists(path string) bool

func TemplateGenerateFileFromReader

func TemplateGenerateFileFromReader(reader io.Reader, dstPath string, data interface{}) error

func TemplateGenerateString

func TemplateGenerateString(str string, data interface{}) (string, error)

func WriteFile

func WriteFile(path string, content string) error

Types

This section is empty.