lib/openstack/swift/connection.rb
def containers(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,cur| res << cur[:name]; res }
    end
# Gathers a list of the containers that exist for the account and returns the list of container names
# as an array.  If no containers exist, an empty array 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
#   => ["backup", "Books", "cftest", "test", "video", "webpics"]
#
#   cf.containers(2,'cftest')
#   => ["test", "video"]
Gathers a list of the containers that exist for the account and returns the list of container names
as an array.  If no containers exist, an empty array 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.




Gathers a list of the containers that exist for the account and returns the list of container names as an array . If no containers exist an empty array 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(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,cur| res << cur[:name]; res }
    end
def containers ( 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 , cur | res << cur [ :name ] ; res } end
Gathers a list of the containers that exist for the account and returns the list of container names
as an array.
Gathers a list of the containers that exist for the account and returns the list of container names as an array .
limit
marker