2010-03-19 21:29:42 -04:00
|
|
|
module Fog
|
|
|
|
module Rackspace
|
|
|
|
module Files
|
|
|
|
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
|
|
|
|
def head_containers
|
|
|
|
response = storage_request(
|
|
|
|
:expects => 204,
|
|
|
|
:method => 'HEAD',
|
|
|
|
:path => '',
|
|
|
|
:query => 'format=json'
|
|
|
|
)
|
|
|
|
response
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
2010-03-19 21:29:42 -04:00
|
|
|
class Mock
|
2009-10-12 12:25:47 -04:00
|
|
|
|
2010-02-02 01:53:18 -05:00
|
|
|
def head_containers
|
|
|
|
raise MockNotImplemented.new("Contributions welcome!")
|
2009-10-12 12:25:47 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|