Class: DockerEngineRuby::Resources::Distribution
- Inherits:
-
Object
- Object
- DockerEngineRuby::Resources::Distribution
- Defined in:
- lib/docker_engine_ruby/resources/distribution.rb
Instance Method Summary collapse
-
#initialize(client:) ⇒ Distribution
constructor
private
A new instance of Distribution.
-
#inspect_(name, request_options: {}) ⇒ DockerEngineRuby::Models::Inspect
Get image information from the registry.
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.
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
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 |