Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/container_registry/client.rb')
-rw-r--r--lib/container_registry/client.rb9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/container_registry/client.rb b/lib/container_registry/client.rb
index 498bc11b168..723935f8aaf 100644
--- a/lib/container_registry/client.rb
+++ b/lib/container_registry/client.rb
@@ -10,6 +10,8 @@ module ContainerRegistry
REGISTRY_FEATURES_HEADER = 'gitlab-container-registry-features'
REGISTRY_TAG_DELETE_FEATURE = 'tag_delete'
+ DEFAULT_TAGS_PAGE_SIZE = 10000
+
ALLOWED_REDIRECT_SCHEMES = %w[http https].freeze
REDIRECT_OPTIONS = {
clear_authorization_header: true,
@@ -52,8 +54,11 @@ module ContainerRegistry
}
end
- def repository_tags(name)
- response_body faraday.get("/v2/#{name}/tags/list")
+ def repository_tags(name, page_size: DEFAULT_TAGS_PAGE_SIZE)
+ response = faraday.get("/v2/#{name}/tags/list") do |req|
+ req.params['n'] = page_size
+ end
+ response_body(response)
end
def repository_manifest(name, reference)