Documentation ¶
Index ¶
- func BaseEndpoint(endpoint string) (string, error)
- func DeleteNotPassParams(params *map[string]interface{}, notPassParams []string)
- func GetRegion(authOpts golangsdk.AuthOptions) string
- func GetRegionFromAKSK(authOpts golangsdk.AKSKAuthOptions) string
- func In(item interface{}, slice interface{}) bool
- func MergeInterfaces(overridingInterface, inferiorInterface interface{}) interface{}
- func PrependString(item string, slice []string) []string
- type Version
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 DeleteNotPassParams ¶
func GetRegion ¶ added in v0.0.6
func GetRegion(authOpts golangsdk.AuthOptions) string
GetRegion returns the region that was specified in the auth options. If a region was not set it returns value from env OS_REGION_NAME
func GetRegionFromAKSK ¶ added in v0.5.2
func GetRegionFromAKSK(authOpts golangsdk.AKSKAuthOptions) string
GetRegionFromAKSK returns the region that was specified in the auth options. If a region was not set it returns value from env OS_REGION_NAME
func MergeInterfaces ¶ added in v0.0.2
func MergeInterfaces(overridingInterface, inferiorInterface interface{}) interface{}
merges two interfaces. In cases where a value is defined for both 'overridingInterface' and 'inferiorInterface' the value in 'overridingInterface' will take precedence.
func PrependString ¶ added in v0.0.2
Types ¶
type Version ¶
Version is a supported API version, corresponding to a vN package within the appropriate service.
func ChooseVersion ¶
func ChooseVersion(client *golangsdk.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.