Class: DockerEngineRuby::Resources::Auth

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

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ Auth

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 Auth.

Parameters:



32
33
34
# File 'lib/docker_engine_ruby/resources/auth.rb', line 32

def initialize(client:)
  @client = client
end

Instance Method Details

#login(password: nil, serveraddress: nil, username: nil, request_options: {}) ⇒ DockerEngineRuby::Models::AuthResponse

Check auth configuration

Parameters:

Returns:

See Also:



18
19
20
21
22
23
24
25
26
27
# File 'lib/docker_engine_ruby/resources/auth.rb', line 18

def (params = {})
  parsed, options = DockerEngineRuby::AuthLoginParams.dump_request(params)
  @client.request(
    method: :post,
    path: "auth",
    body: parsed,
    model: DockerEngineRuby::AuthResponse,
    options: options
  )
end