Versions in this module Expand all Collapse all v1 v1.0.1 Apr 27, 2026 Changes in this version + const TerraformLockFile + const TerragruntCacheDir + var GlobalFallbackLogEntry *logrus.Entry + func AsTerraformEnvVarJsonValue(value interface{}) (string, error) + func CanonicalPath(path string, basePath string) (string, error) + func CanonicalPaths(paths []string, basePath string) ([]string, error) + func CleanPath(path string) string + func CloneStringList(listToClone []string) []string + func CloneStringMap(mapToClone map[string]string) map[string]string + func CommaSeparatedStrings(list []string) string + func ContainsPath(path, subpath string) bool + func CopyFile(source string, destination string) error + func CopyFolderContents(source, destination, manifestFile string, includeInCopy []string) error + func CopyFolderContentsWithFilter(source, destination, manifestFile string, ...) error + func CopyLockFile(sourceFolder string, destinationFolder string, logger *logrus.Entry) error + func CreateLogEntry(prefix string, level logrus.Level) *logrus.Entry + func CreateLogEntryWithWriter(writer io.Writer, prefix string, level logrus.Level, hooks logrus.LevelHooks) *logrus.Entry + func CreateLogger(lvl logrus.Level) *logrus.Logger + func DisableLogColors() + func DoWithRetry(actionDescription string, maxRetries int, sleepBetweenRetries time.Duration, ...) error + func EncodeBase64Sha1(str string) string + func EnsureDirectory(path string) error + func FileExists(path string) bool + func FileNotExists(path string) bool + func FileOrData(maybePath string) (string, error) + func FirstArg(args []string) string + func GenerateRandomSha256() (string, error) + func GetDefaultLogLevel() logrus.Level + func GetDiagnosticsWriter(logger *logrus.Entry, parser *hclparse.Parser) hcl.DiagnosticWriter + func GetPathRelativeTo(path string, basePath string) (string, error) + func GetRandomTime(lowerBound, upperBound time.Duration) time.Duration + func GlobCanonicalPath(basePath string, globPaths ...string) ([]string, error) + func Grep(regex *regexp.Regexp, glob string) (bool, error) + func HasPathPrefix(path, prefix string) bool + func IsCommandExecutable(command string, args ...string) bool + func IsDir(path string) bool + func IsFile(path string) bool + func IsSymLink(path string) bool + func JoinPath(elem ...string) string + func JoinTerraformModulePath(modulesFolder string, path string) string + func KindOf(value interface{}) reflect.Kind + func LastArg(args []string) string + func ListContainsElement(list []string, element string) bool + func ListContainsSublist(list, sublist []string) bool + func ListEquals(a, b []string) bool + func ListHasPrefix(list, prefix []string) bool + func MatchesAny(regExps []string, s string) bool + func Min(x, y int) int + func MustWalkTerraformOutput(value interface{}, path ...string) interface + func ParseLogLevel(logLevelStr string) logrus.Level + func ParseTimestamp(ts string) (time.Time, error) + func PrefixedWriter(writer io.Writer, prefix string) io.Writer + func ReadFileAsString(path string) (string, error) + func RemoveDuplicatesFromList(list []string) []string + func RemoveDuplicatesFromListKeepLast(list []string) []string + func RemoveElementFromList(list []string, element string) []string + func SecondArg(args []string) string + func SplitPath(path string) []string + func SplitUrls(s, sep string) []string + func StringListInsert(list []string, element string, index int) []string + func TerragruntExcludes(path string) bool + func UniqueId() string + func WriteFileWithSamePermissions(source string, destination string, contents []byte) error + type FatalError struct + Underlying error + func (err FatalError) Error() string + type LogWriter struct + Level logrus.Level + Logger *logrus.Entry + func (w *LogWriter) Write(p []byte) (n int, err error) + type MaxRetriesExceeded struct + Description string + MaxRetries int + func (err MaxRetriesExceeded) Error() string + type PathIsNotDirectory struct + func (err PathIsNotDirectory) Error() string + type PathIsNotFile struct + func (err PathIsNotFile) Error() string