Module: DockerRegistry2
- Defined in:
- lib/docker_registry2.rb,
lib/registry/version.rb,
lib/registry/manifest.rb,
lib/registry/exceptions.rb
Defined Under Namespace
Classes: Exception, InvalidMethod, Manifest, NotFound, ReauthenticatedException, Registry, RegistryAuthenticationException, RegistryAuthorizationException, RegistrySSLException, RegistryUnknownException, RegistryVersionException, UnknownRegistryException
Constant Summary
collapse
- VERSION =
'1.8.0'
Class Method Summary
collapse
Class Method Details
.connect(uri = "https://registry.hub.docker.com", opts = {}) ⇒ Object
8
9
10
11
12
|
# File 'lib/docker_registry2.rb', line 8
def self.connect(uri="https://registry.hub.docker.com",opts={})
@reg = DockerRegistry2::Registry.new(uri,opts)
@reg.ping
@reg
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
|
.search(query = '') ⇒ Object
14
15
16
|
# File 'lib/docker_registry2.rb', line 14
def self.search(query = '')
@reg.search(query)
end
|
18
19
20
|
# File 'lib/docker_registry2.rb', line 18
def self.tags(repository)
@reg.tags(repository)
end
|