# Functions
ColorizeString returns a string with the specified color Use the Colors struct to access the color codes Example: ColorizeString(Colors.Red, "This is red").
Adds value to map[key] only if value != compareValue.
ConvertArrayToJsonString is a helper function that will take an array of Golang data types, and return a string of the array formatted as a JSON array.
CopyDirectory copies a directory from source to destination, with optional file filtering.
CopyFile copies a file from source to destination.
No description provided by the author
DetermineAuthMethod determines the appropriate authentication method for a given repository URL.
No description provided by the author
Generate an SSH RSA Keypair (4096 bits), and return the PublicKey in OpenSSH Authorized Key format.
GenerateTempGPGKeyPairBase64 generates a temporary GPG key pair and returns the private and public keys in base64 format.
GetAllRefs returns all references in a StackRef structure.
GetAllRefsAsString returns all references in a StackRef structure as a single string.
GetAllUnresolvedRefs returns all unresolved references in a StackRef structure.
GetAllUnresolvedRefsAsString returns all unresolved references in a StackRef structure as a single string.
GetBaseRepoAndBranch determines the base repository URL and branch name based on a hierarchy of sources.
GetBeforeAfterDiff takes a JSON string as input and returns a string with the differences between the "before" and "after" objects in the JSON.
GetCurrentPrRepoAndBranch returns the repository URL and branch name of the current PR.
GetRequiredEnvVars returns a map containing required environment variables and their values Fails the test if any are missing.
GetTagsFromTravis Generates a list of tags to add to resources if running in Travis.
GitRootPath returns the root directory of the current Git repository.
IntArrayContains is a helper function that will check an array and see if an int value is already present.
IsArray is a simple helper function that will determine if a given Golang value is a slice or array.
IsJsonEqual validates whether the two JSON files are equal or not.
LoadMapFromYaml loads a YAML file into a map[string]interface{}.
overwriting duplicate keys.
NewTestLogger initializes the custom logger.
NewTestLoggerWithPrefix initializes the custom logger with a prefix.
PrintAllRefs prints all references in a StackRef structure.
PrintStructAsJson prints a struct as a formatted JSON string.
PrintUnresolvedRefs prints the unresolved references in a StackRef structure.
ProcessInputs processes the input values and returns a slice of Ref structs.
ProcessMembers processes the stack members and returns a slice of ConfigRefs structs.
ProcessOutputs processes the output values and returns a slice of Ref structs.
ResolveReferences traverses the StackRef structure and resolves references.
No description provided by the author
SanitizeSensitiveData takes a JSON string and a list of sensitive keys and replaces the values of the sensitive keys with a predefined string.
SortMap sorts the map and any nested structures inside it.
SortMapKeys sorts the keys of a map and returns them as a slice.
SortSlice sorts the slices recursively.
StrArrayContains is a helper function that will check an array and see if a value is already present.
StringContainsIgnoreCase checks if a string contains a substring, ignoring case.
# Constants
SANITIZE_STRING is the string used to replace sensitive values.
# Variables
Colors instance to access color codes.
# Structs
Color struct to hold ANSI color codes.
ConfigRefs represents the configuration references for a stack member.
Ref represents a reference with its name, resolved value, and flags.
StackRef represents the stack reference with inputs, outputs, and members.
TestLogger struct to hold the logger configuration.