Class: Dapp::Dimg::DockerRegistry::Default

Inherits:
Dimg
  • Object
show all
Defined in:
lib/dapp/dimg/docker_registry/default.rb

Constant Summary collapse

DEFAULT_HOSTNAME_URL =
'https://registry.hub.docker.com'.freeze

Constants inherited from Base

Base::API_VERSION

Instance Attribute Summary

Attributes inherited from Base

#hostname_url, #repo, #repo_suffix

Instance Method Summary collapse

Methods inherited from Dimg

#dimg_tags, #dimgstages_tags, #image_delete, #image_history, #image_id, #image_labels, #image_parent_id, #nameless_dimg_tags, #tags

Methods inherited from Base

#image_delete, #image_history, #image_id, #image_labels, #image_parent_id, #tags

Methods included from Base::Authorization

#authorization_auth, #authorization_options, #authorization_token, #auths_section_from_docker_config, #handle_scope_option, #parse_authenticate_header

Methods included from Base::Request

included, #raw_request, #request, #url_available?

Constructor Details

#initialize(repo, repo_suffix) ⇒ Default

Returns a new instance of Default.



7
8
9
# File 'lib/dapp/dimg/docker_registry/default.rb', line 7

def initialize(repo, repo_suffix)
  super(repo, DEFAULT_HOSTNAME_URL, repo_suffix)
end

Instance Method Details

#repo_suffix=(val) ⇒ Object



11
12
13
14
# File 'lib/dapp/dimg/docker_registry/default.rb', line 11

def repo_suffix=(val)
  val = "library/#{val}" if val.split('/').one?
  super(val)
end