2010-03-19 18:29:42 -07:00
|
|
|
module Fog
|
|
|
|
module Rackspace
|
|
|
|
module Files
|
|
|
|
class Real
|
2009-10-12 09:25:47 -07:00
|
|
|
|
|
|
|
# List number of containers and total bytes stored
|
|
|
|
#
|
|
|
|
# ==== Returns
|
2009-11-02 18:48:49 -08:00
|
|
|
# * response<~Excon::Response>:
|
2009-10-12 09:25:47 -07:00
|
|
|
# * headers<~Hash>:
|
|
|
|
# * 'X-Account-Container-Count'<~String> - Count of containers
|
|
|
|
# * 'X-Account-Bytes-Used'<~String> - Bytes used
|
|
|
|
def head_containers
|
|
|
|
response = storage_request(
|
|
|
|
:expects => 204,
|
|
|
|
:method => 'HEAD',
|
|
|
|
:path => '',
|
2010-06-05 14:19:39 -07:00
|
|
|
:query => {'format' => 'json'}
|
2009-10-12 09:25:47 -07:00
|
|
|
)
|
|
|
|
response
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
2010-03-19 18:29:42 -07:00
|
|
|
class Mock
|
2009-10-12 09:25:47 -07:00
|
|
|
|
2010-02-01 22:53:18 -08:00
|
|
|
def head_containers
|
2010-05-26 17:38:23 -07:00
|
|
|
Fog::Mock.not_implemented
|
2009-10-12 09:25:47 -07:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|