Module: Gitlab::Client::ContainerRegistry
- Included in:
- Gitlab::Client
- Defined in:
- lib/gitlab/client/container_registry.rb
Overview
Defines methods related to GitLab Container Registry.
Instance Method Summary collapse
-
#bulk_delete_registry_repository_tags(project, repository_id, options = {}) ⇒ void
Delete repository tags in bulk based on given criteria.
-
#delete_registry_repository(project, id) ⇒ void
Delete a repository in registry.
-
#delete_registry_repository_tag(project, repository_id, tag_name) ⇒ void
Delete a registry repository tag.
-
#registry_repositories(project) ⇒ Array<Gitlab::ObjectifiedHash>
Get a list of registry repositories in a project.
-
#registry_repository_tag(project, repository_id, tag_name) ⇒ Gitlab::ObjectifiedHash
Get details of a registry repository tag.
-
#registry_repository_tags(project, repository_id) ⇒ Array<Gitlab::ObjectifiedHash>
Get a list of tags for given registry repository.
Instance Method Details
#bulk_delete_registry_repository_tags(project, repository_id, options = {}) ⇒ void
This method returns an undefined value.
Delete repository tags in bulk based on given criteria.
81 82 83 |
# File 'lib/gitlab/client/container_registry.rb', line 81 def (project, repository_id, = {}) delete("/projects/#{url_encode project}/registry/repositories/#{repository_id}/tags", body: ) end |
#delete_registry_repository(project, id) ⇒ void
This method returns an undefined value.
Delete a repository in registry.
26 27 28 |
# File 'lib/gitlab/client/container_registry.rb', line 26 def delete_registry_repository(project, id) delete("/projects/#{url_encode project}/registry/repositories/#{id}") end |
#delete_registry_repository_tag(project, repository_id, tag_name) ⇒ void
This method returns an undefined value.
Delete a registry repository tag.
64 65 66 |
# File 'lib/gitlab/client/container_registry.rb', line 64 def delete_registry_repository_tag(project, repository_id, tag_name) delete("/projects/#{url_encode project}/registry/repositories/#{repository_id}/tags/#{tag_name}") end |
#registry_repositories(project) ⇒ Array<Gitlab::ObjectifiedHash>
Get a list of registry repositories in a project.
14 15 16 |
# File 'lib/gitlab/client/container_registry.rb', line 14 def registry_repositories(project) get("/projects/#{url_encode project}/registry/repositories") end |
#registry_repository_tag(project, repository_id, tag_name) ⇒ Gitlab::ObjectifiedHash
Get details of a registry repository tag.
51 52 53 |
# File 'lib/gitlab/client/container_registry.rb', line 51 def registry_repository_tag(project, repository_id, tag_name) get("/projects/#{url_encode project}/registry/repositories/#{repository_id}/tags/#{tag_name}") end |
#registry_repository_tags(project, repository_id) ⇒ Array<Gitlab::ObjectifiedHash>
Get a list of tags for given registry repository.
38 39 40 |
# File 'lib/gitlab/client/container_registry.rb', line 38 def (project, repository_id) get("/projects/#{url_encode project}/registry/repositories/#{repository_id}/tags") end |