Wang Yan
9db84f2880
add Middleware policycheck into v2 handler
...
1, add content trust middleware in new v2 handler
2, add vulnable middlware in new v2 hanlder
Signed-off-by: wang yan <wangyan@vmware.com>
2020-01-28 00:24:58 +09:00
He Weiwei
b594861658
feat(middleware): add transaction middleware for v2 and v2.0 APIs
...
Signed-off-by: He Weiwei <hweiwei@vmware.com>
2020-01-22 05:00:39 +00:00
Wenkai Yin
7dc28bcff9
Add foreign key to avoid the concurrent issue
...
Add foreign key to avoid the concurrent issue when operating the artifacts, tags and references
Signed-off-by: Wenkai Yin <yinw@vmware.com>
2020-01-21 16:03:51 +08:00
He Weiwei
5daa3f4fb3
feat(swagger): implement SendError for BaseAPI handler
...
Signed-off-by: He Weiwei <hweiwei@vmware.com>
2020-01-19 00:46:18 +00:00
Wang Yan
2ea41ca78a
Merge pull request #10481 from ywk253100/200114_orm
...
Get the ormer from context instead of creating a new one
2020-01-17 17:54:00 +08:00
wang yan
935303a476
move readonly middleware to new v2 handler
...
Signed-off-by: wang yan <wangyan@vmware.com>
2020-01-17 11:12:10 +08:00
Wenkai Yin
ff1a03cccc
Get the ormer from context instead of creating a new one
...
This commit updates the dao methods with the ormer got from context
Signed-off-by: Wenkai Yin <yinw@vmware.com>
2020-01-14 16:35:36 +08:00
Wenkai Yin(尹文开)
1ea9e68178
Merge pull request #10366 from ywk253100/191219_manager
...
Implement tag/artifact manager and artifact controller
2020-01-08 21:24:52 +08:00
Wenkai Yin
400a47a5c5
Implement tag/artifact manager and artifact controller
...
1. Implement tag/artifact manager
2. Implement artifact controller
3. Onboard the artifact when pushing artifacts
Signed-off-by: Wenkai Yin <yinw@vmware.com>
2020-01-08 20:19:48 +08:00
He Weiwei
7a4cb17450
feat(orm): add orm support with context ( #10337 )
...
1. Get and set orm from context.
2. Add WithTransaction decorator make func run in transaction.
3. Support nested transaction by Savepoint.
Signed-off-by: He Weiwei <hweiwei@vmware.com>
2019-12-31 18:30:52 +08:00
wang yan
ebe5bb68b9
add OCI error format support
...
1, Leverage go v1.13 new error feature
2, Define genernal error OCI format, so that /v2 API could return a OCI compatible error
Signed-off-by: wang yan <wangyan@vmware.com>
2019-12-25 17:07:26 +08:00