Package apiversions provides information and interaction with the different API versions for the OpenStack Neutron service. This functionality is not restricted to this particular version.
ExtractAPIVersions takes a collection page, extracts all of the elements, and returns them a slice of APIVersion structs. It is effectively a cast.
ExtractVersionResources accepts a Page struct, specifically a APIVersionResourcePage struct, and extracts the elements into a slice of APIVersionResource structs. In other words, the collection is mapped into a relevant slice.
ListVersionResources lists all of the different API resources for a particular API versions. Typical resources for Neutron might be: networks, subnets, etc.
ListVersions lists all the Neutron API versions available to end-users
APIVersion represents an API version for Neutron. It contains the status of the API, and its unique ID.
APIVersionPage is the page returned by a pager when traversing over a collection of API versions.
IsEmpty checks whether an APIVersionPage struct is empty.
APIVersionResource represents a generic API resource. It contains the name of the resource and its plural collection name.
APIVersionResourcePage is a concrete type which embeds the common SinglePageBase struct, and is used when traversing API versions collections.
IsEmpty is a concrete function which indicates whether an APIVersionResourcePage is empty or not.