Module: DockerRegistry2

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

Defined Under Namespace

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

Constant Summary collapse

VERSION =
'1.18.0'

Class Method Summary collapse

Class Method Details

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



10
11
12
# File 'lib/docker_registry2.rb', line 10

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

.manifest(repository, tag) ⇒ Object



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

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

.manifest_digest(repository, tag) ⇒ Object



26
27
28
# File 'lib/docker_registry2.rb', line 26

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

.search(query = '') ⇒ Object



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

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

.tags(repository) ⇒ Object



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

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