openstack/ :knife: perigee
diff --git a/openstack/objectstorage/v1/accounts/requests.go b/openstack/objectstorage/v1/accounts/requests.go
index e6f5f95..846ec0c 100644
--- a/openstack/objectstorage/v1/accounts/requests.go
+++ b/openstack/objectstorage/v1/accounts/requests.go
@@ -1,9 +1,6 @@
package accounts
-import (
- "github.com/racker/perigee"
- "github.com/rackspace/gophercloud"
-)
+import "github.com/rackspace/gophercloud"
// GetOptsBuilder allows extensions to add additional headers to the Get
// request.
@@ -42,7 +39,7 @@
}
}
- resp, err := perigee.Request("HEAD", getURL(c), perigee.Options{
+ resp, err := c.Request("HEAD", getURL(c), gophercloud.RequestOpts{
MoreHeaders: h,
OkCodes: []int{204},
})
@@ -96,7 +93,7 @@
}
}
- resp, err := perigee.Request("POST", updateURL(c), perigee.Options{
+ resp, err := c.Request("POST", updateURL(c), gophercloud.RequestOpts{
MoreHeaders: h,
OkCodes: []int{204},
})
diff --git a/openstack/objectstorage/v1/objects/requests.go b/openstack/objectstorage/v1/objects/requests.go
index def1798..a4faad1 100644
--- a/openstack/objectstorage/v1/objects/requests.go
+++ b/openstack/objectstorage/v1/objects/requests.go
@@ -131,7 +131,7 @@
url += query
}
- resp, err := perigee.Request("GET", url, perigee.Options{
+ resp, err := c.Request("GET", url, gophercloud.RequestOpts{
MoreHeaders: h,
OkCodes: []int{200, 304},
})
@@ -275,7 +275,7 @@
}
url := copyURL(c, containerName, objectName)
- resp, err := perigee.Request("COPY", url, perigee.Options{
+ resp, err := c.Request("COPY", url, gophercloud.RequestOpts{
MoreHeaders: h,
OkCodes: []int{201},
})
@@ -318,9 +318,8 @@
url += query
}
- resp, err := perigee.Request("DELETE", url, perigee.Options{
- MoreHeaders: c.AuthenticatedHeaders(),
- OkCodes: []int{204},
+ resp, err := c.Request("DELETE", url, gophercloud.RequestOpts{
+ OkCodes: []int{204},
})
res.Header = resp.HttpResponse.Header
res.Err = err
@@ -363,9 +362,8 @@
url += query
}
- resp, err := perigee.Request("HEAD", url, perigee.Options{
- MoreHeaders: c.AuthenticatedHeaders(),
- OkCodes: []int{200, 204},
+ resp, err := c.Request("HEAD", url, gophercloud.RequestOpts{
+ OkCodes: []int{200, 204},
})
res.Header = resp.HttpResponse.Header
res.Err = err
@@ -420,7 +418,7 @@
}
url := updateURL(c, containerName, objectName)
- resp, err := perigee.Request("POST", url, perigee.Options{
+ resp, err := c.Request("POST", url, gophercloud.RequestOpts{
MoreHeaders: h,
OkCodes: []int{202},
})