Class: DockerCloud::ExternalRepository

Inherits:
Type
  • Object
show all
Defined in:
lib/docker_cloud/external_repository.rb

Instance Attribute Summary

Attributes inherited from Type

#uuid

Instance Method Summary collapse

Methods inherited from Type

#initialize

Constructor Details

This class inherits a constructor from DockerCloud::Type

Instance Method Details

#in_useObject



11
12
13
# File 'lib/docker_cloud/external_repository.rb', line 11

def in_use
  info[:in_user]
end

#nameObject



7
8
9
# File 'lib/docker_cloud/external_repository.rb', line 7

def name
  info[:name]
end

#registryObject

def registry; info; end



16
17
18
# File 'lib/docker_cloud/external_repository.rb', line 16

def registry
  @registry ||= client.registries.get_from_uri(info[:registry]) unless info[:registry].nil?
end

#resource_uriObject



3
4
5
# File 'lib/docker_cloud/external_repository.rb', line 3

def resource_uri
  info[:resource_uri]
end