Michal Kobus | f611358 | 2019-09-09 15:58:21 +0200 | [diff] [blame] | 1 | package apiversions |
| 2 | |
| 3 | import ( |
| 4 | "gerrit.mcp.mirantis.net/debian/gophercloud.git" |
| 5 | ) |
| 6 | |
| 7 | // List lists all the API versions available to end users. |
| 8 | func 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. |
| 14 | func Get(client *gophercloud.ServiceClient, v string) (r GetResult) { |
| 15 | _, r.Err = client.Get(getURL(client, v), &r.Body, nil) |
| 16 | return |
| 17 | } |