Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func List ¶
func List(c *gophercloud.ServiceClient) pagination.Pager
List lists all the API versions available to end-users.
Types ¶
type APIVersion ¶
type APIVersion struct { // ID is the unique identifier of the API version. ID string `json:"id"` // MinVersion is the minimum microversion supported. MinVersion string `json:"min_version"` // Status is the API versions status. Status string `json:"status"` // Updated is the date when the API was last updated. Updated time.Time `json:"updated"` // Version is the maximum microversion supported. Version string `json:"version"` MediaTypes []map[string]string `json:"media-types"` }
APIVersion represents an API version for the Shared File System service.
func ExtractAPIVersions ¶
func ExtractAPIVersions(r pagination.Page) ([]APIVersion, error)
ExtractAPIVersions takes a collection page, extracts all of the elements, and returns them a slice of APIVersion structs. It is effectively a cast.
type APIVersionPage ¶
type APIVersionPage struct {
pagination.SinglePageBase
}
APIVersionPage is the page returned by a pager when traversing over a collection of API versions.
func (APIVersionPage) IsEmpty ¶
func (r APIVersionPage) IsEmpty() (bool, error)
IsEmpty checks whether an APIVersionPage struct is empty.
type GetResult ¶
type GetResult struct {
gophercloud.ErrResult
}
GetResult represents the result of a get operation.
func Get ¶
func Get(client *gophercloud.ServiceClient, v string) (r GetResult)
Get will get a specific API version, specified by major ID.
func (GetResult) Extract ¶
func (r GetResult) Extract() ([]APIVersion, error)
Extract is a function that accepts a result and extracts an API version resource.
Click to show internal directories.
Click to hide internal directories.