blob: 00e7c3becffda070c6fe923fb4b4a9416a9d22fd [file] [log] [blame]
Ash Wilsona5b1a142014-10-22 10:16:03 -04001package extensions
2
3import (
Jon Perritt27249f42016-02-18 10:35:59 -06004 "github.com/gophercloud/gophercloud"
5 common "github.com/gophercloud/gophercloud/openstack/common/extensions"
6 "github.com/gophercloud/gophercloud/pagination"
Ash Wilsona5b1a142014-10-22 10:16:03 -04007)
8
9// ExtractExtensions interprets a Page as a slice of Extensions.
10func 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.
15func 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.
21func List(c *gophercloud.ServiceClient) pagination.Pager {
22 return common.List(c)
23}