MCPcopy
hub / github.com/unkeyed/unkey / Validator

Interface Validator

pkg/config/config.go:16–18  ·  view source on GitHub ↗

Validator is an optional interface for cross-field or business-rule validation. It is called after defaults have been applied and struct tag validation has passed, so implementations can assume fields are individually valid and defaulted.

Source from the content-addressed store, hash-verified

14// validation has passed, so implementations can assume fields are individually
15// valid and defaulted.
16type Validator interface {
17 Validate() error
18}
19
20// Load reads a TOML configuration file at path and returns the validated
21// result. Returns the zero value of T on file-read errors; delegates all

Callers 8

WithValidationFunction · 0.65
ValidateMethod · 0.65
RecordFunction · 0.65
WriteFunction · 0.65
validateCustomRecursiveFunction · 0.65
RunFunction · 0.65
RunFunction · 0.65
RunFunction · 0.65

Implementers 11

Validatorpkg/zen/validation/validator.go
Validatorpkg/openapi/validation/validator.go
Entrypkg/timing/entry.go
validatedCfgpkg/config/config_test.go
Configsvc/vault/config.go
Configsvc/ctrl/worker/config.go
Configsvc/ctrl/api/config.go
Configsvc/frontline/config.go
Configsvc/api/config.go
Configsvc/krane/config.go
Configsvc/heimdall/config.go

Calls

no outgoing calls

Tested by

no test coverage detected