validate

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: May 16, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BaseURL

func BaseURL(raw string) error

BaseURL validates an optional absolute HTTP(S) base URL.

func CloudURL

func CloudURL(raw string, allowUnsafeURL bool, officialHosts ...string) error

CloudURL validates cloud provider base/endpoint URLs.

In strict mode (AllowUnsafeURL=false), URL must use https and one of the provided official hosts. In unsafe mode, host/scheme strictness is relaxed, but the URL must still be absolute and use http/https.

Types

This section is empty.

Jump to

Keyboard shortcuts

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