Commit Graph

300 Commits

Author SHA1 Message Date
Wenkai Yin(尹文开)
560dd8ce7b
Merge pull request #10745 from reasonerjt/artifact-signature-populate-v2
Artifact signature populate
2020-02-18 13:24:55 +08:00
Wenkai Yin(尹文开)
341cb88cba
Merge pull request #10727 from ywk253100/200214_bump_up_legacy_api_version
Bump up legacy api version to v2.0
2020-02-18 10:37:25 +08:00
Daniel Jiang
5a6e9331fd
Artifact signature populate (#7)
* Populate signature status in artifact API

This Commit add signature status into response of list artifact API.

Signed-off-by: Daniel Jiang <jiangd@vmware.com>
2020-02-18 01:42:56 +08:00
Wenkai Yin(尹文开)
d7903fcf1b
Merge pull request #10682 from ywk253100/200126_label
Support add/remove label to/from artifact
2020-02-17 11:33:45 +08:00
Wenkai Yin
94787ea60d Bump up the version of legacy APIs to v2.0
Bump up the version of legacy APIs to v2.0

Signed-off-by: Wenkai Yin <yinw@vmware.com>
2020-02-14 13:16:30 +08:00
AllForNothing
036ae18b25 Improve swagger.yaml
Signed-off-by: AllForNothing <sshijun@vmware.com>
2020-02-14 11:43:15 +08:00
Wenkai Yin
93731eeb2e Support add/remove label to/from artifact
This commit add supporting for adding/removing label to/from artifacts and populates labels when listing artifacts

Signed-off-by: Wenkai Yin <yinw@vmware.com>
2020-02-13 10:46:23 +08:00
Wang Yan
e68b474dbc Merge pull request #10581 from ywk253100/100123_list_artifact
Add query string to listing artifact API to support specify only show the tagged artifacts
2020-02-10 18:12:06 +08:00
Wang Yan
65dc54b059 Merge pull request #10626 from ywk253100/200125_handle_error
Unify the method/style to handle error in handler/middleware
2020-02-10 17:47:12 +08:00
Wenkai Yin
0373e08e58 Add query string to listing artifact API to support specify only show the tagged artifacts
Specify the query string "tags=NOT_NULL" to the listing artifact API to only return the tagged artifacts

Signed-off-by: Wenkai Yin <yinw@vmware.com>
2020-02-10 14:53:51 +08:00
Wenkai Yin
af4dd142bc Unify the method/style to handle error in handler/middleware
This commit provides a "SendError" method to unify the way to handle error in handlers/middlewares

Signed-off-by: Wenkai Yin <yinw@vmware.com>
2020-02-08 07:37:00 +08:00
Wenkai Yin
0f6057a22c Implement get addition API for image
This commit implements the API to get build history of image with manifest version 2 and populates the addition links when listing/getting the artifact

Signed-off-by: Wenkai Yin <yinw@vmware.com>
2020-02-07 20:21:38 +08:00
Wang Yan
6bad9f62ba
Merge pull request #10662 from ywk253100/200206_delete_repo
Implement repository deletion API
2020-02-07 17:51:03 +08:00
Wang Yan
5679c174c6
Merge pull request #10643 from ywk253100/200204_auth
Add permission check for artifact related APIs
2020-02-07 11:25:37 +08:00
Wenkai Yin
c267aaa474 Implement repository deletion API
Implement repository deletion API based on the new design

Signed-off-by: Wenkai Yin <yinw@vmware.com>
2020-02-07 09:36:35 +08:00
Wang Yan
72f9e02dd9
Merge pull request #10628 from wy65701436/af-immu
set the immutable status on getting/listting tag
2020-02-05 21:03:29 +08:00
wang yan
596a6261ca set the immutable status on getting/listting tag
Signed-off-by: wang yan <wangyan@vmware.com>
2020-02-05 16:24:13 +08:00
Wenkai Yin
6087647895 Add permission check for artifact related APIs
Add permission check for artifact related APIs

Signed-off-by: Wenkai Yin <yinw@vmware.com>
2020-02-05 15:58:39 +08:00
Wenkai Yin
7930e4f38a Add child artifact digest in reference model
As we only provide the API to get artifact information via project name, repository name and digest, the digest of child artifact must be returned

Signed-off-by: Wenkai Yin <yinw@vmware.com>
2020-02-04 15:59:06 +08:00
Wenkai Yin
793b23a444 Implement artifact/tag related API
Implement APIs:
1. Get artifact
2. Delete artifact
3. Create tag
4. Delete tag

Signed-off-by: Wenkai Yin <yinw@vmware.com>
2020-02-04 13:46:55 +08:00
Wenkai Yin
19f4bad042 Implement the listing artifact API
Implement the listing artifact API

Signed-off-by: Wenkai Yin <yinw@vmware.com>
2020-01-22 07:35:29 +08:00
He Weiwei
c729e3b9e0 feat(swagger): generate apis v2.0 from swagger.yaml
Signed-off-by: He Weiwei <hweiwei@vmware.com>
2020-01-14 02:20:18 +00:00
wang yan
a0f3709b3c add expiration data time when to create a robot account
Update API of creating robot accout, user can specify expiration time per account.

Signed-off-by: wang yan <wangyan@vmware.com>
2020-01-03 13:47:06 +08:00
Wenkai Yin(尹文开)
c1522d3c36
Merge pull request #10261 from stonezdj/20191211_ldap_group_admin_dn
Fix admin permission not revoked when removed from LDAP admin group(Do Not Merge)
2019-12-24 14:37:28 +08:00
stonezdj
6313a55219 Fix admin permission not revoked when removed from LDAP admin group
Seperate the HasAdminRole(In DB) with the privileges from external auth, and use user.HasAdminPrivilege to check

Signed-off-by: stonezdj <stonezdj@gmail.com>
2019-12-20 13:12:22 +08:00
Daniel Jiang
65ee14bb78 Fix syntax error in swagger.yaml
Signed-off-by: Daniel Jiang <jiangd@vmware.com>
2019-12-16 16:17:19 +08:00
Steven Zou
0cf3793297 doc[compatibility]:add doc ref in the README
- refer the harbor compatibility doc in the README
- add .md suffix to the README file under api/harbor

Signed-off-by: Steven Zou <szou@vmware.com>
2019-12-12 18:43:49 +08:00
Steven Zou
7bf9372f32 chore[api]:rename API folder to api
- update swagger yaml file reference in `Makefile`
- update swagger yaml file reference in `README`
- update swagger yaml file reference in `docs/configure_swagger.md`
- update swagger yaml file reference in `make/photon/portal/Dockerfile`
- update swagger yaml file reference in `tests/swaggerchecker.sh`

Signed-off-by: Steven Zou <szou@vmware.com>
2019-12-11 17:41:27 +08:00
Steven Zou
32b12181e2 doc[api spec]:rename folder name to
Signed-off-by: Steven Zou <szou@vmware.com>
2019-12-09 18:48:10 +08:00
yhua
311cf8da07 change code 20161019 2016-10-21 18:39:10 +08:00
yhua123
ac496e0991 Merge pull request #889 from wemeya/dev
modify log_test.go
2016-10-19 11:58:02 +08:00
Daniel Jiang
3b02134a5c Merge pull request #872 from ywk253100/161012_sync_repo
Do not show repo which has no tag in it
2016-10-17 15:40:27 +08:00
wemeya
95994cd392 modify log_test.go 2016-10-17 13:57:46 +08:00
kunw
9bf08f368c Extend password validation length. 2016-10-14 18:02:13 +08:00
Tan Jiang
7a8912d216 merge with master 2016-10-14 14:23:27 +08:00
Wenkai Yin
44ecac0b4a do not show repo which has no tag in it 2016-10-12 17:35:50 +08:00
Wenkai Yin
769c9c63f1 fix #856 2016-10-11 15:26:03 +08:00
Wenkai Yin
59559561d8 add sqlite support 2016-10-11 13:13:28 +08:00
Penghao Cen
3542c1b66c minor fix log print 2016-10-08 15:37:40 +08:00
wemeya
2a0951e2ea fix test case 2016-09-22 16:57:57 +08:00
wemeya
c0f3d7d749 add test case for user 2016-09-22 16:28:12 +08:00
yhua123
f11e9e8cd0 Merge pull request #813 from zgdxiaoxiao/api-test
add policy api test
2016-09-21 15:29:45 +08:00
Wenkai Yin
2a2a9feee2 fix #761 2016-09-19 17:58:29 +08:00
zgdxiaoxiao
8893f9121d add policy api test
update const data
2016-09-19 16:37:18 +08:00
Daniel Jiang
1c216d902a Merge pull request #804 from reasonerjt/dev
fix #801, add permission check before filtering access log of a project.
2016-09-14 16:05:10 +08:00
Daniel Jiang
e6b3638f9c Merge pull request #803 from ywk253100/buf_fix_filter_repo
bug fix: handle error when checking the existence of repos whose project does not exist in Harbor
2016-09-14 16:04:56 +08:00
Tan Jiang
e5c464f205 fix #801 2016-09-14 15:25:16 +08:00
Wenkai Yin
3f169e113d bug fix: handle error when checking the existence of repos whose project does not exist in Harbor 2016-09-14 15:12:16 +08:00
yhua123
6f5e82f915 Merge pull request #796 from zgdxiaoxiao/api-test
add target api test
2016-09-14 10:11:46 +08:00
Daniel Jiang
bbdf576962 Merge pull request #797 from reasonerjt/dev
Read from DB to refresh catalog cache
2016-09-13 18:51:10 +08:00