Sha256: 7c7b49b3ca1a8a2567a7fb30ea4e9ef94b8efe7084fc6f0cc814ca49e7d56030

Contents?: true

Size: 873 Bytes

Versions: 30

Compression:

Stored size: 873 Bytes

Contents

module Fog
  module Rackspace
    class Storage
      class Real

        # List number of objects and total bytes stored
        #
        # ==== Parameters
        # * container<~String> - Name of container to retrieve info for
        #
        # ==== Returns
        # * response<~Excon::Response>:
        #   * headers<~Hash>:
        #     * 'X-Container-Object-Count'<~String> - Count of containers
        #     * 'X-Container-Bytes-Used'<~String>   - Bytes used
        def head_container(container)
          response = request(
            :expects  => 204,
            :method   => 'HEAD',
            :path     => container,
            :query    => {'format' => 'json'}
          )
          response
        end

      end

      class Mock

        def head_container(container)
          Fog::Mock.not_implemented
        end

      end
    end
  end
end

Version data entries

30 entries across 30 versions & 3 rubygems

Version Path
fog-0.5.1 lib/fog/storage/requests/rackspace/head_container.rb
fog-0.5.0 lib/fog/storage/requests/rackspace/head_container.rb
phpfog-fog-0.4.1.3 lib/fog/storage/requests/rackspace/head_container.rb
phpfog-fog-0.4.1.2 lib/fog/storage/requests/rackspace/head_container.rb
phpfog-fog-0.4.1.1 lib/fog/storage/requests/rackspace/head_container.rb
phpfog-fog-0.4.1 lib/fog/storage/requests/rackspace/head_container.rb
fog-0.4.1 lib/fog/storage/requests/rackspace/head_container.rb
fog-0.4.0 lib/fog/rackspace/requests/storage/head_container.rb
fog-0.3.34 lib/fog/rackspace/requests/storage/head_container.rb
fog-0.3.33 lib/fog/rackspace/requests/storage/head_container.rb
fog-0.3.32 lib/fog/rackspace/requests/storage/head_container.rb
fog-0.3.31 lib/fog/rackspace/requests/storage/head_container.rb
fog-0.3.30 lib/fog/rackspace/requests/storage/head_container.rb
fog-0.3.29 lib/fog/rackspace/requests/storage/head_container.rb
fog-0.3.28 lib/fog/rackspace/requests/storage/head_container.rb
fog-0.3.27 lib/fog/rackspace/requests/storage/head_container.rb
fog-0.3.26 lib/fog/rackspace/requests/storage/head_container.rb
fog-0.3.25 lib/fog/rackspace/requests/storage/head_container.rb
fog-0.3.24 lib/fog/rackspace/requests/storage/head_container.rb
bbcloud-0.8.1 lib/bbcloud/vendor/fog-0.3.23/lib/fog/rackspace/requests/storage/head_container.rb