Skip to content

添加了删除镜像接口#29

Open
193721 wants to merge 3 commits intomainfrom
delete-image-Infinity
Open

添加了删除镜像接口#29
193721 wants to merge 3 commits intomainfrom
delete-image-Infinity

Conversation

@193721
Copy link
Copy Markdown
Collaborator

@193721 193721 commented Jan 2, 2023

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

@193721 193721 force-pushed the delete-image-Infinity branch from 576eb6a to ea68208 Compare January 2, 2023 10:06

fun deleteImage(projectID: Long, repositoryName: String,reference: String ){
val project = Project.id(projectID)
HarborClient.deleteImage(project.name,repositoryName,reference)
Copy link
Copy Markdown
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