Sha256: 4ed1babd42918c523ca749a91eeb2d4435f20bce2229005f6c946e2c9434ac55

Contents?: true

Size: 750 Bytes

Versions: 60

Compression:

Stored size: 750 Bytes

Contents

module Fog
  module Storage
    class Softlayer
      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)
          request(
            :expects  => 204,
            :method   => 'HEAD',
            :path     => Fog::Softlayer.escape(container),
            :query    => {'format' => 'json'}
          )
        end

      end
    end
  end
end

Version data entries

60 entries across 58 versions & 3 rubygems

Version Path
fog-softlayer-0.3.12 lib/fog/softlayer/requests/storage/head_container.rb
fog-softlayer-0.3.11 lib/fog/softlayer/requests/storage/head_container.rb
fog-softlayer-0.3.10 lib/fog/softlayer/requests/storage/head_container.rb
fog-softlayer-0.3.9 lib/fog/softlayer/requests/storage/head_container.rb
fog-softlayer-0.3.8 lib/fog/softlayer/requests/storage/head_container.rb
fog-softlayer-0.3.7 lib/fog/softlayer/requests/storage/head_container.rb
fog-softlayer-0.3.6 lib/fog/softlayer/requests/storage/head_container.rb
fog-softlayer-0.3.6.pre.f82ffe9 lib/fog/softlayer/requests/storage/head_container.rb
fog-softlayer-0.3.6.pre.f7e3358 lib/fog/softlayer/requests/storage/head_container.rb
fog-softlayer-0.3.5 lib/fog/softlayer/requests/storage/head_container.rb
fog-softlayer-0.3.4.pre lib/fog/softlayer/requests/storage/head_container.rb
fog-softlayer-0.3.3.pre lib/fog/softlayer/requests/storage/head_container.rb
fog-softlayer-0.3.2 lib/fog/softlayer/requests/storage/head_container.rb
fog-softlayer-0.3.1 lib/fog/softlayer/requests/storage/head_container.rb
fog-softlayer-0.2.1 lib/fog/softlayer/requests/storage/head_container.rb
fog-softlayer-0.1.1 lib/fog/softlayer/requests/storage/head_container.rb
fog-softlayer-0.1.0 lib/fog/softlayer/requests/storage/head_container.rb
fog-softlayer-0.0.9 lib/fog/softlayer/requests/storage/head_container.rb
fog-softlayer-0.0.8 lib/fog/softlayer/requests/storage/head_container.rb
fog-softlayer-0.0.7 lib/fog/softlayer/requests/storage/head_container.rb