# Functions
CreateArchive will create a tar file from a directory.
FixInterface converts a map[interface{}]interface{} into a map[string]interface{}.
FixNumbers will convert all json.Number values to integer values.
GetFields will return the list of YAML fields in a given field group.
GetTlsConfig will build a tls config struct given a set of CA certs.
HasOIDCProvider will find if an OIDC provider is included in a config.yaml.
InterfaceArrayToStringArray converts a []interface{} to []string.
LoadCerts will load certificates in a config directory.
RemoveNullValues will remove empty values from a config.yaml.
ValidateAtLeastOneOfBool validates that at least one of the given options is true.
ValidateAtLeastOneOfString validates that at least one of the given options is true.
ValidateBitbucketOAuth checks that the Bitbucker OAuth credentials are correct.
ValidateCertPairWithHostname will validate that a public private key pair are valid and have the correct hostname.
ValidateCertsPresent validates that all required certificates are present in the options struct.
ValidateDatabaseConnection checks that the Bitbucker OAuth credentials are correct.
ValidateElasticSearchCredentials will validate credentials.
ValidateEmailServer validates that the provided smtp server is valid.
ValidateFileExists will check if a path exists on the current machine.
ValidateGitHubOAuth checks that the Bitbucker OAuth credentials are correct.
ValidateGitLabOAuth checks that the Bitbucker OAuth credentials are correct.
ValidateGoogleOAuth checks that the Bitbucker OAuth credentials are correct.
ValidateHostIsReachable will check if a get request returns a 200 status code.
ValidateIsHostname tests a string to determine if it is a well-structured hostname or not.
ValidateIsOneOfString validates that a string is one of a given option.
ValidateIsURL tests a string to determine if it is a well-structured url or not.
ValidateLDAPServer validates that the provided ldap server is valid.
ValidateOIDCServer validates that the provided oidc server is valid.
ValidateRedisConnection validates that a Redis connection can successfully be established.
ValidateRequiredObject validates that a object input is not nil.
ValidateRequiredString validates that a string input is not empty.
ValidateStorage will validate a S3 storage connection.
ValidateTimePattern validates that a string has the pattern ^[0-9]+(w|m|d|h|s)$.
# Structs
DistributedStorageArgs.
Options is a struct that tells the validator how to validate.
ValidationError is a struct that holds information about a failed field group policy.
# Interfaces
FieldGroup is an interface that implements the Validate() function.
# Type aliases
IntOrString is an int that may be unmarshaled from either a JSON number literal, or a JSON string.