gophercloud: github.com/rackspace/gophercloud/openstack/utils Index | Files

package utils

import "github.com/rackspace/gophercloud/openstack/utils"

Index

Package Files

choose_version.go

type Version Uses

type Version struct {
    ID       string
    Suffix   string
    Priority int
}

Version is a supported API version, corresponding to a vN package within the appropriate service.

func ChooseVersion Uses

func ChooseVersion(client *gophercloud.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.

Package utils imports 3 packages (graph) and is imported by 12 packages. Updated 2016-07-18. Refresh now. Tools for package owners.