Module: DockerRegistry2

Defined in:
lib/docker_registry2.rb,
lib/registry/version.rb,
lib/registry/exceptions.rb

Defined Under Namespace

Classes: Exception, InvalidMethod, NotFound, ReauthenticatedException, Registry, RegistryAuthenticationException, RegistryAuthorizationException, RegistrySSLException, RegistryUnknownException, RegistryVersionException, UnknownRegistryException

Constant Summary collapse

VERSION =
'1.5.1'

Class Method Summary collapse

Class Method Details

.connect(uri = "https://registry.hub.docker.com", opts = {}) ⇒ Object



7
8
9
10
11
# File 'lib/docker_registry2.rb', line 7

def self.connect(uri="https://registry.hub.docker.com",opts={})
  @reg = DockerRegistry2::Registry.new(uri,opts)
  @reg.ping
  @reg
end

.manifest(repository, tag) ⇒ Object



21
22
23
# File 'lib/docker_registry2.rb', line 21

def self.manifest(repository,tag)
  @reg.manifest(repository,tag)
end

.search(query = '') ⇒ Object



13
14
15
# File 'lib/docker_registry2.rb', line 13

def self.search(query = '')
  @reg.search(query)
end

.tags(repository) ⇒ Object



17
18
19
# File 'lib/docker_registry2.rb', line 17

def self.tags(repository)
  @reg.tags(repository)
end