Ash Wilson | a5b1a14 | 2014-10-22 10:16:03 -0400 | [diff] [blame] | 1 | package extensions |
| 2 | |
| 3 | import ( |
Jon Perritt | 27249f4 | 2016-02-18 10:35:59 -0600 | [diff] [blame] | 4 | "github.com/gophercloud/gophercloud" |
| 5 | common "github.com/gophercloud/gophercloud/openstack/common/extensions" |
| 6 | "github.com/gophercloud/gophercloud/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 | } |