validation

package
v0.30.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 24, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Float64PrecisionAtMost added in v0.20.0

func Float64PrecisionAtMost(v int64) validator.Float64

Float64PrecisionAtMost returns an AttributeValidator which ensures that any configured attribute value has a precision which is at most the given value

func Int64DivisibleBy

func Int64DivisibleBy(v int64) validator.Int64

Int64DivisbileBy returns an AttributeValidator which ensures that any configured attribute value:

  • Is a number, which can be represented by a 64-bit integer.
  • Is evenly divisible by a given number.

Null (unconfigured) and unknown (known after apply) values are skipped.

func IsURLWithHTTPorHTTPS added in v0.28.0

func IsURLWithHTTPorHTTPS() validator.String

IsURLWithHTTPorHTTPS returns an AttributeValidator which ensures that any configured attribute value is a valid HTTP or HTTPS URL.

Null (unconfigured) and unknown (known after apply) values are skipped.

func IsValidRegExp added in v0.16.0

func IsValidRegExp() validator.String

IsValidRegExp returns an AttributeValidator which ensures that any configured attribute value is a valid regular expression.

Null (unconfigured) and unknown (known after apply) values are skipped.

func ValidNotificationVariables added in v0.29.0

func ValidNotificationVariables() validator.Set

ValidNotificationVariables determines if the provided recipient notification variables are valid. Today this means no variable names are duplicated.

func ValidQuerySpec added in v0.23.0

func ValidQuerySpec() validator.String

ValidQuerySpec determines if the provided JSON is a valid Honeycomb Query Specification

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL