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.4.1 lib/fog/softlayer/requests/storage/head_container.rb
fog-softlayer-0.4.0 lib/fog/softlayer/requests/storage/head_container.rb
fog-softlayer-0.3.30 lib/fog/softlayer/requests/storage/head_container.rb
fog-softlayer-0.3.29 lib/fog/softlayer/requests/storage/head_container.rb
fog-softlayer-0.3.28 lib/fog/softlayer/requests/storage/head_container.rb
fog-softlayer-0.3.27 lib/fog/softlayer/requests/storage/head_container.rb
fog-softlayer-0.3.26 lib/fog/softlayer/requests/storage/head_container.rb
fog-softlayer-0.3.25 lib/fog/softlayer/requests/storage/head_container.rb
fog-softlayer-0.3.24 lib/fog/softlayer/requests/storage/head_container.rb
fog-softlayer-0.3.23 lib/fog/softlayer/requests/storage/head_container.rb
fog-softlayer-0.3.22 lib/fog/softlayer/requests/storage/head_container.rb
fog-softlayer-0.3.21 lib/fog/softlayer/requests/storage/head_container.rb
fog-softlayer-0.3.20 lib/fog/softlayer/requests/storage/head_container.rb
fog-softlayer-0.3.19 lib/fog/softlayer/requests/storage/head_container.rb
fog-softlayer-0.3.18 lib/fog/softlayer/requests/storage/head_container.rb
fog-softlayer-0.3.17 lib/fog/softlayer/requests/storage/head_container.rb
fog-softlayer-0.3.16 lib/fog/softlayer/requests/storage/head_container.rb
fog-softlayer-0.3.15 lib/fog/softlayer/requests/storage/head_container.rb
fog-softlayer-0.3.14 lib/fog/softlayer/requests/storage/head_container.rb
fog-softlayer-0.3.13 lib/fog/softlayer/requests/storage/head_container.rb