validation

package
v0.88.0 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2026 License: Apache-2.0 Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateSecretURL added in v0.80.0

func ValidateSecretURL(url string) error

ValidateSecretURL against config.URL This is for URLs which are retrieved from secrets and should not logged as part of the err.

func ValidateURL

func ValidateURL(url string) (*config.URL, error)

ValidateURL validates a URL string against the config.URL. This could potentially become a regex and be validated via OpenAPI but right now, since we know we need to unmarshal into an upstream type after conversion, we validate we don't error when doing so.

func ValidateURLPtr added in v0.88.0

func ValidateURLPtr(url *string) error

ValidateURLPtr validates a URL string pointer. If the pointer is nil, it will return no error.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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