Class: ContainerRegistry::Registry
- Inherits:
-
Object
- Object
- ContainerRegistry::Registry
- Defined in:
- lib/container_registry/registry.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
-
#gitlab_api_client ⇒ Object
readonly
Returns the value of attribute gitlab_api_client.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Instance Method Summary collapse
-
#initialize(uri, options = {}) ⇒ Registry
constructor
A new instance of Registry.
Constructor Details
#initialize(uri, options = {}) ⇒ Registry
Returns a new instance of Registry.
7 8 9 10 11 12 13 14 15 |
# File 'lib/container_registry/registry.rb', line 7 def initialize(uri, = {}) @uri = uri @options = @path = @options[:path] || default_path @client = ContainerRegistry::Client.new(@uri, @options) import_token = Auth::ContainerRegistryAuthenticationService.import_access_token @gitlab_api_client = ContainerRegistry::GitlabApiClient.new(@uri, @options.merge(import_token: import_token)) end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
5 6 7 |
# File 'lib/container_registry/registry.rb', line 5 def client @client end |
#gitlab_api_client ⇒ Object (readonly)
Returns the value of attribute gitlab_api_client.
5 6 7 |
# File 'lib/container_registry/registry.rb', line 5 def gitlab_api_client @gitlab_api_client end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
5 6 7 |
# File 'lib/container_registry/registry.rb', line 5 def path @path end |
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
5 6 7 |
# File 'lib/container_registry/registry.rb', line 5 def uri @uri end |