Skip to content

Adding list tags and get catalog API endpoints#56

Merged
vishnuchalla merged 18 commits intoquay:masterfrom
vishnuchalla:dev
May 22, 2023
Merged

Adding list tags and get catalog API endpoints#56
vishnuchalla merged 18 commits intoquay:masterfrom
vishnuchalla:dev

Conversation

@vishnuchalla
Copy link
Collaborator

Description

Added list tags and get catalog API endpoints.

Testing

Tested on an AWS cluster. Full logs here: http://pastebin.test.redhat.com/1099853

:param repo: repository of a specified user
:return: returns the token
"""
cmd = ["curl", "-k", "-L", "--user", f"{user}:password", f"https://{quay_host}/v2/auth?service={quay_host}&scope=repository:{user}/{repo}:pull,push"]
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you use curl instead of doing it in Python via urllib or requests?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for bringing this up. Made changes to use python requests library.

@vishnuchalla vishnuchalla requested a review from dmage May 21, 2023 02:51
@vishnuchalla vishnuchalla merged commit 0f4622a into quay:master May 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants