harbor/src/server/middleware
He Weiwei 37e6fa5c92
fix(transaction): change to use value in the ctx to decide whether commit tx (#11062)
Type assertion not work when the ctx in the request changed in the next
handler, so change to use value in the ctx to decide whether to commit
tx.

Signed-off-by: He Weiwei <hweiwei@vmware.com>
2020-03-13 15:19:13 +08:00
..
apiversion Move ArtifactInfo to internal package (#11055) 2020-03-13 11:16:13 +08:00
artifactinfo Move ArtifactInfo to internal package (#11055) 2020-03-13 11:16:13 +08:00
blob feat(quota): add Request and Refresh middlewares for APIs (#10907) 2020-03-11 22:25:40 +08:00
contenttrust Move ArtifactInfo to internal package (#11055) 2020-03-13 11:16:13 +08:00
csrf Update CSRF mechanism 2020-03-09 01:15:54 +08:00
immutable Move ArtifactInfo to internal package (#11055) 2020-03-13 11:16:13 +08:00
orm feat(beego): upgrade beego to v1.12 which support middleware (#10524) 2020-01-20 16:41:49 +08:00
path fix(api): escape path paramters before APIs and unescape them in the Prepare of operations (#11013) 2020-03-11 12:18:40 +08:00
quota feat(quota): add Request and Refresh middlewares for APIs (#10907) 2020-03-11 22:25:40 +08:00
readonly add readonly to beego middleware 2020-02-25 15:00:39 +08:00
requestid feat(beego): upgrade beego to v1.12 which support middleware (#10524) 2020-01-20 16:41:49 +08:00
transaction fix(transaction): change to use value in the ctx to decide whether commit tx (#11062) 2020-03-13 15:19:13 +08:00
util feat(quota): add Request and Refresh middlewares for APIs (#10907) 2020-03-11 22:25:40 +08:00
v2auth Move ArtifactInfo to internal package (#11055) 2020-03-13 11:16:13 +08:00
vulnerable Move ArtifactInfo to internal package (#11055) 2020-03-13 11:16:13 +08:00
middleware_test.go feat(beego): upgrade beego to v1.12 which support middleware (#10524) 2020-01-20 16:41:49 +08:00
middleware.go feat(quota): add Request and Refresh middlewares for APIs (#10907) 2020-03-11 22:25:40 +08:00
skipper_test.go feat(middleware): add transaction middleware for v2 and v2.0 APIs 2020-01-22 05:00:39 +00:00
skipper.go feat(quota): add Request and Refresh middlewares for APIs (#10907) 2020-03-11 22:25:40 +08:00
util.go Move ArtifactInfo to internal package (#11055) 2020-03-13 11:16:13 +08:00