Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

添加了删除镜像接口 #29

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

添加了删除镜像接口 #29

wants to merge 3 commits into from

Conversation

193721
Copy link
Collaborator

@193721 193721 commented Jan 2, 2023

opeapi 版本不一样 所以显示model 有修改


fun deleteImage(projectID: Long, repositoryName: String,reference: String ){
val project = Project.id(projectID)
HarborClient.deleteImage(project.name,repositoryName,reference)
Copy link
Collaborator

Choose a reason for hiding this comment

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

这里虽然不用检查是不是Admin,但必须检查是不是project的member。下面那个函数也是。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants