Module: DockerRegistry2
- Defined in:
- lib/registry/blob.rb,
lib/docker_registry2.rb,
lib/registry/version.rb,
lib/registry/manifest.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.10.0'
Class Method Summary
collapse
Class Method Details
.connect(uri = "https://registry.hub.docker.com", opts = {}) ⇒ Object
9
10
11
12
13
|
# File 'lib/docker_registry2.rb', line 9
def self.connect(uri="https://registry.hub.docker.com",opts={})
@reg = DockerRegistry2::Registry.new(uri,opts)
@reg.ping
@reg
end
|
.manifest(repository, tag) ⇒ Object
23
24
25
|
# File 'lib/docker_registry2.rb', line 23
def self.manifest(repository,tag)
@reg.manifest(repository,tag)
end
|
.search(query = '') ⇒ Object
15
16
17
|
# File 'lib/docker_registry2.rb', line 15
def self.search(query = '')
@reg.search(query)
end
|
19
20
21
|
# File 'lib/docker_registry2.rb', line 19
def self.tags(repository)
@reg.tags(repository)
end
|