Objects consistency updates
diff --git a/openstack/objectstorage/v1/objects/requests.go b/openstack/objectstorage/v1/objects/requests.go
index bc21496..15ec5c7 100644
--- a/openstack/objectstorage/v1/objects/requests.go
+++ b/openstack/objectstorage/v1/objects/requests.go
@@ -28,7 +28,7 @@
func List(c *gophercloud.ServiceClient, containerName string, opts *ListOpts) pagination.Pager {
var headers map[string]string
- url := containerURL(c, containerName)
+ url := listURL(c, containerName)
if opts != nil {
query, err := gophercloud.BuildQueryString(opts)
if err != nil {
@@ -73,7 +73,7 @@
func Download(c *gophercloud.ServiceClient, containerName, objectName string, opts *DownloadOpts) DownloadResult {
var res DownloadResult
- url := objectURL(c, containerName, objectName)
+ url := downloadURL(c, containerName, objectName)
h := c.Provider.AuthenticatedHeaders()
if opts != nil {
@@ -129,7 +129,7 @@
var res CreateResult
var reqBody []byte
- url := objectURL(c, containerName, objectName)
+ url := createURL(c, containerName, objectName)
h := c.Provider.AuthenticatedHeaders()
if opts != nil {
@@ -206,7 +206,7 @@
h["X-Object-Meta-"+k] = v
}
- url := objectURL(c, containerName, objectName)
+ url := copyURL(c, containerName, objectName)
resp, err := perigee.Request("COPY", url, perigee.Options{
MoreHeaders: h,
OkCodes: []int{201},
@@ -223,7 +223,7 @@
// Delete is a function that deletes an object.
func Delete(c *gophercloud.ServiceClient, containerName, objectName string, opts *DeleteOpts) DeleteResult {
var res DeleteResult
- url := objectURL(c, containerName, objectName)
+ url := deleteURL(c, containerName, objectName)
if opts != nil {
query, err := gophercloud.BuildQueryString(opts)
@@ -253,7 +253,7 @@
// metadata, pass the GetResult response to the ExtractMetadata function.
func Get(c *gophercloud.ServiceClient, containerName, objectName string, opts *GetOpts) GetResult {
var res GetResult
- url := objectURL(c, containerName, objectName)
+ url := getURL(c, containerName, objectName)
if opts != nil {
query, err := gophercloud.BuildQueryString(opts)
@@ -306,7 +306,7 @@
}
}
- url := objectURL(c, containerName, objectName)
+ url := updateURL(c, containerName, objectName)
resp, err := perigee.Request("POST", url, perigee.Options{
MoreHeaders: h,
OkCodes: []int{202},