Documentation
¶
Index ¶
- func AreEnvVarsConsistent(envVars EnvVars) error
- func AreEnvVarsExportedAndSet(keys []string) error
- func AreEnvVarsSet(keys []string) error
- func DirExist(dir string) error
- func DirIsNotEmpty(dir string) error
- func DirIsValid(dir string) error
- func DoEnvVarsExist(keys []string) error
- func FileExist(filePath string) error
- func IsSubDir(parentDir string, childDir string) error
- func PathExist(path string) (os.FileInfo, error)
- func PathIsADirectory(path string) error
- func PathToAbsolute(path string) (string, error)
- type EnvVars
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AreEnvVarsConsistent ¶
AreEnvVarsConsistent checks if the environment variables have non-empty values.
func AreEnvVarsExportedAndSet ¶
AreEnvVarsExportedAndSet IsEnvVarSetOrExported checks if the environment variable exist, and also if it is exported or set.
func AreEnvVarsSet ¶
AreEnvVarsSet checks if the environment variables have non-empty values.
func DirIsNotEmpty ¶
func DirIsValid ¶
func DoEnvVarsExist ¶
DoEnvVarsExist checks if the environment variables exist.
func PathIsADirectory ¶
func PathToAbsolute ¶
Types ¶
type EnvVars ¶
func FetchAWSEnvVars ¶
FetchAWSEnvVars fetches environment variables that start with the prefix "AWS_"
func FetchEnvVarsAsMap ¶
FetchEnvVarsAsMap checks if the environment variables exist and returns them as a map.
func FetchEnvVarsWithPrefix ¶
FetchEnvVarsWithPrefix fetches environment variables that start with the specified prefix and returns an error if any of the variables either do not exist or have an empty value.
func MergeEnvVars ¶
func ScanAWSCredentialsEnvVars ¶
ScanAWSCredentialsEnvVars scans the environment variables for AWS credentials.
func ScanTerraformEnvVars ¶
ScanTerraformEnvVars fetches environment variables that start with the prefix "TF_VAR_"