# Functions
Compare executes the specified comparison to the target value for an attribute.
CompareAttrValues attempts to execute a comparison between the provided attribute value and the targeted value.
CompareTest executes a registered comparison function against the target attribute's value.
No description provided by the author
DefaultComparisonFuncs returns the complete list of default comparison functions.
EnvVarValued returns a validator that asserts a given attribute's value is the name of an environment variable that is valued at runtime.
FileIsReadable returns a validator that asserts a given attribute's value is a local file that is readable.
GetComparisonFunc attempts to return a previously registered comparison function for a specified op : type combination.
No description provided by the author
IsDurationString returns a validator that asserts a given attribute's value is a valid time.Duration string.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
IsURL returns a validator that asserts a given attribute value is parseable as a URL.
Length asserts an attribute's length is limited to the specified bounds.
LengthTest is an AttributeValidator implementation that attempts to find a length value appropriate for the attribute value type, asserting that it is within the specified bounds.
MutuallyExclusiveSibling returns a validator that ensures that an attribute only carries a value when another sibling attribute does not.
MutuallyExclusiveSiblingTest ensures that a given attribute is not valued when another one is, and vice versa.
No description provided by the author
MutuallyInclusiveSiblingTest ensures that a given attribute is valued when a sibling attribute is also valued.
NewValidator returns a type implementing the validator interface with your specific construction.
No description provided by the author
RegexpMatch returns a validator that asserts an attribute's value matches the provided expression.
RegexpMatchTest is an AttributeValidator implementation that will first attempt to convert the value of a field to a string, then see if that resulting string matches the provided expression.
RegexpNotMatch returns a validator that asserts an attribute's value does not match the provided expression.
RegexpNotMatchTest is an AttributeValidator implementation that will first attempt to convert the value of a field to a string, then see if that resulting string matches the provided expression.
Required returns a validator that asserts a field is configured with any value at all.
RequiredTest is an AttributeValidator implementation that will register an error if the attribute has no value of any kind.
SetComparisonFunc sets a comparison function to use for comparing attribute values to values of the specified type.
TestEnvVarValued asserts that a given attribute value is the name of an environment variable that is valued at runtime.
TestFileIsReadable attempts to open and subsequently read a single byte from the file at the path specified by the attribute value.
TestIsDurationString asserts that a given attribute's value is a valid time.Duration string.
TestIsURL asserts that the provided value can be parsed by url.Parse().
No description provided by the author
No description provided by the author
No description provided by the author
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
AttributeValidatorConfig describes the configuration of a custom AttributeValidator.
# Type aliases
No description provided by the author
No description provided by the author
ComparisonFunc executes a specific comparison of an attribute value to the targeted value.
No description provided by the author