Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BaseEndpoint ¶
BaseEndpoint will return a URL without the /vX.Y portion of the URL.
func BaseRootEndpoint ¶
func BaseVersionEndpoint ¶
BaseVersionEndpoint will return a URL with the /vX.Y starting portion of the URL.
func NormalizeURLPath ¶
NormalizeURLPath removes duplicated slashes
Types ¶
type Version ¶
Version is a supported API version, corresponding to a vN package within the appropriate service.
func ChooseVersion ¶
func ChooseVersion(client *gcorecloud.ProviderClient, recognized []*Version) (*Version, string, error)
ChooseVersion queries the base endpoint of an API to choose the most recent non-experimental alternative from a service's published versions. It returns the highest-Priority Version among the alternatives that are provided, as well as its corresponding endpoint.
Click to show internal directories.
Click to hide internal directories.