2010-03-19 21:29:42 -04:00
|
|
|
module Fog
|
2011-06-15 17:26:43 -04:00
|
|
|
module Storage
|
|
|
|
class Rackspace
|
2010-03-19 21:29:42 -04:00
|
|
|
class Real
|
2009-10-12 12:25:47 -04:00
|
|
|
|
|
|
|
# List number of containers and total bytes stored
|
|
|
|
#
|
|
|
|
# ==== Returns
|
2009-11-02 21:48:49 -05:00
|
|
|
# * response<~Excon::Response>:
|
2009-10-12 12:25:47 -04:00
|
|
|
# * headers<~Hash>:
|
|
|
|
# * 'X-Account-Container-Count'<~String> - Count of containers
|
|
|
|
# * 'X-Account-Bytes-Used'<~String> - Bytes used
|
2013-03-27 10:50:30 -04:00
|
|
|
# @raise [Fog::Rackspace::Errors::NotFound] - HTTP 404
|
|
|
|
# @raise [Fog::Rackspace::Errors::BadRequest] - HTTP 400
|
|
|
|
# @raise [Fog::Rackspace::Errors::InternalServerError] - HTTP 500
|
|
|
|
# @raise [Fog::Rackspace::Errors::ServiceError]
|
2009-10-12 12:25:47 -04:00
|
|
|
def head_containers
|
2011-06-15 17:26:43 -04:00
|
|
|
request(
|
2009-10-12 12:25:47 -04:00
|
|
|
:expects => 204,
|
|
|
|
:method => 'HEAD',
|
|
|
|
:path => '',
|
2010-06-05 17:19:39 -04:00
|
|
|
:query => {'format' => 'json'}
|
2009-10-12 12:25:47 -04:00
|
|
|
)
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|