module Gitlab::Client::ContainerRegistry
Defines methods related to GitLab Container Registry. @see docs.gitlab.com/ce/api/container_registry.html
Public Instance Methods
Source
# File lib/gitlab/client/container_registry.rb, line 31 def delete_registry_repository(project, id) delete("/projects/#{url_encode project}/registry/repositories/#{id}") end
Delete a repository in registry.
@example
Gitlab.delete_registry_repository(5, 2)
@param [Integer, String] project The ID or name of a project. @param [Integer] id The ID of registry repository. @return [void] This API call returns an empty response body.
Source
# File lib/gitlab/client/container_registry.rb, line 69 def delete_registry_repository_tag(project, repository_id, tag_name) delete("/projects/#{url_encode project}/registry/repositories/#{repository_id}/tags/#{tag_name}") end
Delete a registry repository tag.
@example
Gitlab.delete_registry_repository_tag(5, 2, 'v10.0.0')
@param [Integer, String] project The ID or name of a project. @param [Integer] repository_id The ID of registry repository. @param [String] tag_name The name of tag. @return [void] This API call returns an empty response body.
Source
# File lib/gitlab/client/container_registry.rb, line 19 def registry_repositories(project, options = {}) get("/projects/#{url_encode project}/registry/repositories", query: options) end
Get a list of registry repositories in a project.
@example
Gitlab.registry_repositories(5)
@param [Integer, String] project The ID or name of a project. @param [Hash] options A customizable set of options. @option options [Boolean] :tags Return tags array in the response. @option options [Boolean] :tags_count Return tags count in the response. @option options [Integer] :page The page number. @option options [Integer] :per_page The number of results per page. @return [Array<Gitlab::ObjectifiedHash>] Returns list of registry repositories in a project.
Source
# File lib/gitlab/client/container_registry.rb, line 56 def registry_repository_tag(project, repository_id, tag_name) get("/projects/#{url_encode project}/registry/repositories/#{repository_id}/tags/#{tag_name}") end
Get details of a registry repository tag.
@example
Gitlab.registry_repository_tag(5, 2, 'v10.0.0')
@param [Integer, String] project The ID or name of a project. @param [Integer] repository_id The ID of registry repository. @param [String] tag_name The name of tag. @return <Gitlab::ObjectifiedHash> Returns details about the registry repository tag