Class: DockerEngineRuby::Resources::Distribution

Inherits:
Object
  • Object
show all
Defined in:
lib/docker_engine_ruby/resources/distribution.rb

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ Distribution

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Distribution.

Parameters:



28
29
30
# File 'lib/docker_engine_ruby/resources/distribution.rb', line 28

def initialize(client:)
  @client = client
end

Instance Method Details

#inspect_(name, request_options: {}) ⇒ DockerEngineRuby::Models::Inspect

Get image information from the registry

Parameters:

Returns:

See Also:



16
17
18
19
20
21
22
23
# File 'lib/docker_engine_ruby/resources/distribution.rb', line 16

def inspect_(name, params = {})
  @client.request(
    method: :get,
    path: ["distribution/%1$s/json", name],
    model: DockerEngineRuby::Inspect,
    options: params[:request_options]
  )
end