Sha256: d4e2afb0994bb05ebb415b0a950b63d5aba48678e33fcc868f7c0d1c16192878

Contents?: true

Size: 772 Bytes

Versions: 26

Compression:

Stored size: 772 Bytes

Contents

module Fog
  module Compute
    class Fogdocker
      class Real
        def image_search(query = {})
          Docker::Util.parse_json(@connection.get('/images/search', query)).map do |image|
            downcase_hash_keys(image)
          end
        end
      end
      class Mock
        def image_search(query = {})
          [
              {"description" => "",
               "is_official" => false,
               "is_automated" => false,
               "name" => "wma55/u1210sshd",
               "star_count" => 0},
              {"description" => "",
               "is_official" => false,
               "is_automated" => false,
               "name" => "jdswinbank/sshd",
               "star_count" => 0}
          ]
        end
      end
    end
  end
end

Version data entries

26 entries across 24 versions & 4 rubygems

Version Path
fog-2.3.0 lib/fog/fogdocker/requests/compute/image_search.rb
fog-ifeel-2.2.0 lib/fog/fogdocker/requests/compute/image_search.rb
fog-2.2.0 lib/fog/fogdocker/requests/compute/image_search.rb
fog-2.1.0 lib/fog/fogdocker/requests/compute/image_search.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-1.42.1/lib/fog/fogdocker/requests/compute/image_search.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-1.42.1/lib/fog/fogdocker/requests/compute/image_search.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-1.42.1/lib/fog/fogdocker/requests/compute/image_search.rb
fog-1.42.1 lib/fog/fogdocker/requests/compute/image_search.rb
fog-2.0.0 lib/fog/fogdocker/requests/compute/image_search.rb
fog-1.42.0 lib/fog/fogdocker/requests/compute/image_search.rb
fog-1.41.0 lib/fog/fogdocker/requests/compute/image_search.rb
fog-1.40.0 lib/fog/fogdocker/requests/compute/image_search.rb
fog-1.39.0 lib/fog/fogdocker/requests/compute/image_search.rb
fog-1.38.0 lib/fog/fogdocker/requests/compute/image_search.rb
fog-1.37.0 lib/fog/fogdocker/requests/compute/image_search.rb
fog-1.36.0 lib/fog/fogdocker/requests/compute/image_search.rb
fog-1.35.0 lib/fog/fogdocker/requests/compute/image_search.rb
fog-2.0.0.pre.0 lib/fog/fogdocker/requests/compute/image_search.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-1.32.0/lib/fog/fogdocker/requests/compute/image_search.rb
fog-1.34.0 lib/fog/fogdocker/requests/compute/image_search.rb