lib/openstack/swift/connection.rb
# Retrieves a list of containers on the account along with their sizes (in bytes) and counts of the objects
# held within them.  If no containers exist, an empty hash is returned.
#
# If you supply the optional limit and marker parameters, the call will return the number of containers
# specified in limit, starting after the object named in marker.
#
#   cf.containers_detail
#   => { "container1" => { :bytes => "36543", :count => "146" },
#        "container2" => { :bytes => "105943", :count => "25" } }
Retrieves a list of containers on the account along with their sizes (in bytes) and counts of the objects
held within them.  If no containers exist, an empty hash is returned.

If you supply the optional limit and marker parameters, the call will return the number of containers
specified in limit, starting after the object named in marker.


Retrieves a list of containers on the account along with their sizes ( in bytes ) and counts of the objects held within them . If no containers exist an empty hash is returned . If you supply the optional limit and marker parameters the call will return the number of containers specified in limit starting after the object named in marker .
def containers_detail(limit = nil, marker = nil)
      path = OpenStack.get_query_params({:limit=>limit, :marker=>marker, :format=>'json'}, [:limit, :marker, :format], "")
      response = @connection.req("GET", URI.encode(path))
      OpenStack.symbolize_keys(JSON.parse(response.body)).inject({}){|res,current| res.merge!({current[:name]=>{:bytes=>current[:bytes].to_s,:count=>current[:count].to_s}}) ; res }
    end
def containers_detail ( limit = nil , marker = nil ) path = OpenStack . get_query_params ( { :limit => limit , :marker => marker , :format => 'json' } , [ :limit , :marker , :format ] , "" ) response = @connection . req ( "GET" , URI . encode ( path ) ) OpenStack . symbolize_keys ( JSON . parse ( response . body ) ) . inject ( { } ) { | res , current | res . merge! ( { current [ :name ] => { :bytes => current [ :bytes ] . to_s , :count => current [ :count ] . to_s } } ) ; res } end
Retrieves a list of containers on the account along with their sizes (in bytes) and counts of the objects
held within them.
Retrieves a list of containers on the account along with their sizes ( in bytes ) and counts of the objects held within them .
limit
marker