package
0.0.33
Repository: https://github.com/hashicorp/enos.git
Documentation: pkg.go.dev

# Functions

AbsPathFunc constructs a function that converts a filesystem path to an absolute path.
FileFunc constructs a function that FileFunc reads the contents of the file at the path given.

# Variables

AllTrueFunc constructs a function that returns true if all elements of the list are true.
AnyTrueFunc constructs a function that returns true if any element of the list is true.
Base64DecodeFunc constructs a function that decodes a string containing a base64 sequence.
Base64EncodeFunc constructs a function that encodes a string to a base64 sequence.
Base64GzipFunc constructs a function that compresses a string with gzip and then encodes the result in Base64 encoding.
EndsWithFunc constructs a function that checks if a string ends with a specific suffix using strings.HasSuffix.
JoinPathFunc constructs a function that converts joins two paths.
MatchkeysFunc constructs a function that constructs a new list by taking a subset of elements from one list whose indexes match the corresponding indexes of values in another list.
OneFunc returns either the first element of a one-element list, or null if given a zero-element list.
SemverConstraint takes a semantic version and a constraint and returns a boolean of whether or not the constaint has been met.
StartsWithFunc constructs a function that checks if a string starts with a specific prefix using strings.HasPrefix.
StrContainsFunc searches a given string for another given substring, if found the function returns true, otherwise returns false.
SumFunc constructs a function that returns the sum of all numbers provided in a list.
TextDecodeBase64Func constructs a function that decodes a base64 sequence to a target encoding.
TextEncodeBase64Func constructs a function that encodes a string to a target encoding and then to a base64 sequence.
TimeCmpFunc is a function that compares two timestamps.
TimestampFunc constructs a function that returns a string representation of the current date and time.
TransposeFunc constructs a function that takes a map of lists of strings and swaps the keys and values to produce a new map of lists of strings.
URLEncodeFunc constructs a function that applies URL encoding to a given string.