Ash Wilson | a5b1a14 | 2014-10-22 10:16:03 -0400 | [diff] [blame] | 1 | package extensions |
| 2 | |
| 3 | import ( |
Krzysztof Szukiełojć | 3f41d08 | 2017-05-07 14:43:06 +0200 | [diff] [blame^] | 4 | "gerrit.mcp.mirantis.net/debian/gophercloud.git" |
Krzysztof Szukiełojć | 24a29ce | 2017-05-07 14:24:02 +0200 | [diff] [blame] | 5 | common "gerrit.mcp.mirantis.net/debian/gophercloud.git/openstack/common/extensions" |
| 6 | "gerrit.mcp.mirantis.net/debian/gophercloud.git/pagination" |
Ash Wilson | a5b1a14 | 2014-10-22 10:16:03 -0400 | [diff] [blame] | 7 | ) |
| 8 | |
| 9 | // ExtractExtensions interprets a Page as a slice of Extensions. |
| 10 | func ExtractExtensions(page pagination.Page) ([]common.Extension, error) { |
| 11 | return common.ExtractExtensions(page) |
| 12 | } |
| 13 | |
| 14 | // Get retrieves information for a specific extension using its alias. |
| 15 | func Get(c *gophercloud.ServiceClient, alias string) common.GetResult { |
| 16 | return common.Get(c, alias) |
| 17 | } |
| 18 | |
| 19 | // List returns a Pager which allows you to iterate over the full collection of extensions. |
| 20 | // It does not accept query parameters. |
| 21 | func List(c *gophercloud.ServiceClient) pagination.Pager { |
| 22 | return common.List(c) |
| 23 | } |