blob: 7c726c5f94745e3aa3b76f55071e409d82dbcade [file] [log] [blame]
Ash Wilsona5b1a142014-10-22 10:16:03 -04001package extensions
2
3import (
Krzysztof Szukiełojć3f41d082017-05-07 14:43:06 +02004 "gerrit.mcp.mirantis.net/debian/gophercloud.git"
Krzysztof Szukiełojć24a29ce2017-05-07 14:24:02 +02005 common "gerrit.mcp.mirantis.net/debian/gophercloud.git/openstack/common/extensions"
6 "gerrit.mcp.mirantis.net/debian/gophercloud.git/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}