Starting documentation and privatising unnecessary exports
diff --git a/openstack/networking/v2/extensions/requests.go b/openstack/networking/v2/extensions/requests.go
index 7120490..d24108e 100644
--- a/openstack/networking/v2/extensions/requests.go
+++ b/openstack/networking/v2/extensions/requests.go
@@ -6,9 +6,11 @@
"github.com/rackspace/gophercloud/pagination"
)
-func Get(c *gophercloud.ServiceClient, name string) (*Extension, error) {
+// Get retrieves information for a specific extension using its alias. If no
+// extension exists with this alias, an error will be returned.
+func Get(c *gophercloud.ServiceClient, alias string) (*Extension, error) {
var ext Extension
- _, err := perigee.Request("GET", ExtensionURL(c, name), perigee.Options{
+ _, err := perigee.Request("GET", extensionURL(c, alias), perigee.Options{
MoreHeaders: c.Provider.AuthenticatedHeaders(),
Results: &struct {
Extension *Extension `json:"extension"`
@@ -22,8 +24,10 @@
return &ext, nil
}
+// List returns a Pager which allows you to iterate over the full collection of
+// extensions. It does not accept query parameters.
func List(c *gophercloud.ServiceClient) pagination.Pager {
- return pagination.NewPager(c, ListExtensionURL(c), func(r pagination.LastHTTPResponse) pagination.Page {
+ return pagination.NewPager(c, listExtensionURL(c), func(r pagination.LastHTTPResponse) pagination.Page {
return ExtensionPage{pagination.SinglePageBase(r)}
})
}