blob: 73cc0d5b53134c01681d587eee6efab2841a63b5 [file] [log] [blame]
Michal Kobusf6113582019-09-09 15:58:21 +02001package apiversions
2
3import (
4 "gerrit.mcp.mirantis.net/debian/gophercloud.git"
5)
6
7// List lists all the API versions available to end users.
8func List(client *gophercloud.ServiceClient) (r ListResult) {
9 _, r.Err = client.Get(listURL(client), &r.Body, nil)
10 return
11}
12
13// Get will get a specific API version, specified by major ID.
14func Get(client *gophercloud.ServiceClient, v string) (r GetResult) {
15 _, r.Err = client.Get(getURL(client, v), &r.Body, nil)
16 return
17}