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
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-softlayer-1.1.4/lib/fog/softlayer/requests/storage/head_container.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-softlayer-1.1.4/lib/fog/softlayer/requests/storage/head_container.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-softlayer-1.1.4/lib/fog/softlayer/requests/storage/head_container.rb
fog-softlayer-1.1.4 lib/fog/softlayer/requests/storage/head_container.rb
fog-softlayer-1.1.3 lib/fog/softlayer/requests/storage/head_container.rb
fog-softlayer-1.1.2 lib/fog/softlayer/requests/storage/head_container.rb
fog-softlayer-1.1.1 lib/fog/softlayer/requests/storage/head_container.rb
fog-softlayer-1.1.0 lib/fog/softlayer/requests/storage/head_container.rb
fog-softlayer-1.0.3 lib/fog/softlayer/requests/storage/head_container.rb
fog-softlayer-1.0.2 lib/fog/softlayer/requests/storage/head_container.rb
fog-softlayer-1.0.1 lib/fog/softlayer/requests/storage/head_container.rb
fog-softlayer-1.0.0 lib/fog/softlayer/requests/storage/head_container.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-softlayer-0.4.7/lib/fog/softlayer/requests/storage/head_container.rb
fog-softlayer-0.4.7 lib/fog/softlayer/requests/storage/head_container.rb
fog-softlayer-0.4.6 lib/fog/softlayer/requests/storage/head_container.rb
fog-softlayer-0.4.5 lib/fog/softlayer/requests/storage/head_container.rb
fog-softlayer-0.4.4 lib/fog/softlayer/requests/storage/head_container.rb
fog-softlayer-0.4.3 lib/fog/softlayer/requests/storage/head_container.rb
fog-softlayer-0.4.2 lib/fog/softlayer/requests/storage/head_container.rb
fog-softlayer-0.4.2.pre lib/fog/softlayer/requests/storage/head_container.rb