Rename getFooURL to fooURL.
diff --git a/openstack/compute/v2/images/requests.go b/openstack/compute/v2/images/requests.go
index 91d2b2a..a0b2cbf 100644
--- a/openstack/compute/v2/images/requests.go
+++ b/openstack/compute/v2/images/requests.go
@@ -57,14 +57,14 @@
return ListPage{pagination.LinkedPageBase{LastHTTPResponse: r}}
}
- return pagination.NewPager(client, getListURL(client), createPage)
+ return pagination.NewPager(client, listURL(client), createPage)
}
// Get acquires additional detail about a specific image by ID.
// Use ExtractImage() to intepret the result as an openstack Image.
func Get(client *gophercloud.ServiceClient, id string) GetResult {
var result GetResult
- _, result.Err = perigee.Request("GET", getImageURL(client, id), perigee.Options{
+ _, result.Err = perigee.Request("GET", imageURL(client, id), perigee.Options{
MoreHeaders: client.Provider.AuthenticatedHeaders(),
Results: &result.Resp,
OkCodes: []int{200},
diff --git a/openstack/compute/v2/images/urls.go b/openstack/compute/v2/images/urls.go
index 93fa8d2..4ae2269 100644
--- a/openstack/compute/v2/images/urls.go
+++ b/openstack/compute/v2/images/urls.go
@@ -2,10 +2,10 @@
import "github.com/rackspace/gophercloud"
-func getListURL(client *gophercloud.ServiceClient) string {
+func listURL(client *gophercloud.ServiceClient) string {
return client.ServiceURL("images", "detail")
}
-func getImageURL(client *gophercloud.ServiceClient, id string) string {
+func imageURL(client *gophercloud.ServiceClient, id string) string {
return client.ServiceURL("images", id)
}