Documentation
¶
Overview ¶
Package validators contains reusable Zerops schema constraints.
Index ¶
- func AmbiguousServiceFamily(name string, families map[string]bool) string
- func AmbiguousServiceMode(name string, families map[string]bool) string
- func CIDROrIP() validator.String
- func Domain() validator.String
- func DualModeFamilies(settings *client.Settings) map[string]bool
- func EnvKey() validator.String
- func GitBranch() validator.String
- func Hostname() validator.String
- func Isolation(ssh bool) validator.String
- func MinMax(min, max string) validator.Object
- func NonEmptyObject() validator.Object
- func Port() validator.Int64
- func PositiveDecimalString() validator.String
- func PositiveDuration() validator.String
- func Precision() validator.Number
- func PublicPort() validator.Int64
- func ServiceType() validator.String
- func TimeoutsBlock(ctx context.Context, opts timeouts.Opts) schema.Block
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AmbiguousServiceFamily ¶ added in v0.1.2
AmbiguousServiceFamily returns the lowercase catalogue key for dual-mode shorthand, without exposing a configured version or spelling.
func AmbiguousServiceMode ¶ added in v0.1.2
AmbiguousServiceMode returns a diagnostic detail only for dual-mode shorthand.
func DualModeFamilies ¶ added in v0.1.2
DualModeFamilies derives availability choices from qualified catalogue versions. A nil catalogue uses the 2026-10-29 production/dev catalogue snapshot only when the catalogue cannot be read (including before provider configuration).
func Isolation ¶
Isolation validates token structure without freezing the server's extensible vocabulary.
func MinMax ¶
MinMax compares named numeric leaves of a single nested object; unknown leaves defer validation.
func NonEmptyObject ¶
func PositiveDecimalString ¶
func PositiveDuration ¶
PositiveDuration validates explicit timeout values before an operation begins.
func PublicPort ¶
func ServiceType ¶
Types ¶
This section is empty.