registryurl

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2019 License: MIT Imports: 3 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHostname

func GetHostname(u *url.URL) string

func GetPort

func GetPort(u *url.URL) string

func Parse

func Parse(registryURL string) (*url.URL, error)

Parse parses and validates a given serverURL to an url.URL, and returns an error if validation failed. Querystring parameters are omitted in the resulting URL, because they are not used in the helper.

If serverURL does not have a valid scheme, `//` is used as scheme before parsing. This prevents the hostname being used as path, and the credentials being stored without host.

Types

This section is empty.

Jump to

Keyboard shortcuts

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