Sha256: a856ba86c6adfd0d0ec2891c3df9b889b1ded709e5fd7813e8817eeca2b70364

Contents?: true

Size: 601 Bytes

Versions: 39

Compression:

Stored size: 601 Bytes

Contents

module Fog
  module Storage
    class OpenStack
      class Real
        # List number of containers and total bytes stored
        #
        # ==== Returns
        # * response<~Excon::Response>:
        #   * headers<~Hash>:
        #     * 'X-Account-Container-Count'<~String> - Count of containers
        #     * 'X-Account-Bytes-Used'<~String> - Bytes used
        def head_containers
          request(
            :expects => 200..299,
            :method  => 'HEAD',
            :path    => '',
            :query   => {'format' => 'json'}
          )
        end
      end
    end
  end
end

Version data entries

39 entries across 37 versions & 3 rubygems

Version Path
fog-openstack-0.1.27 lib/fog/storage/openstack/requests/head_containers.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-openstack-0.1.26/lib/fog/storage/openstack/requests/head_containers.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-openstack-0.1.26/lib/fog/storage/openstack/requests/head_containers.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-openstack-0.1.26/lib/fog/storage/openstack/requests/head_containers.rb
fog-openstack-0.1.26 lib/fog/storage/openstack/requests/head_containers.rb
fog-openstack-0.1.25 lib/fog/storage/openstack/requests/head_containers.rb
fog-openstack-0.1.24 lib/fog/storage/openstack/requests/head_containers.rb
fog-openstack-0.1.23 lib/fog/storage/openstack/requests/head_containers.rb
fog-openstack-0.1.22 lib/fog/storage/openstack/requests/head_containers.rb
fog-openstack-0.1.21 lib/fog/storage/openstack/requests/head_containers.rb
fog-openstack-0.1.20 lib/fog/storage/openstack/requests/head_containers.rb
fog-openstack-0.1.19 lib/fog/storage/openstack/requests/head_containers.rb
fog-openstack-0.1.18 lib/fog/storage/openstack/requests/head_containers.rb
fog-openstack-0.1.17 lib/fog/storage/openstack/requests/head_containers.rb
fog-openstack-0.1.15 lib/fog/storage/openstack/requests/head_containers.rb
fog-openstack-0.1.14 lib/fog/storage/openstack/requests/head_containers.rb
fog-openstack-0.1.13 lib/fog/storage/openstack/requests/head_containers.rb
fog-openstack-0.1.12 lib/fog/storage/openstack/requests/head_containers.rb
fog-openstack-0.1.11 lib/fog/storage/openstack/requests/head_containers.rb