Documentation ¶ Index ¶ func BaseURL(raw string) error func CloudURL(raw string, allowUnsafeURL bool, officialHosts ...string) error 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. Source Files ¶ View all Source files validate.go Click to show internal directories. Click to hide internal directories.