harbor/src
Wang Yan 8a0e8627ff
replace pkg errors with lib errors (#11605)
Fixes #9704

As we do want to unify error handling, so just decreprates pkg errors, use lib/errors instead for Harbor internal used errors model.

1, The lib/errors can cover all of funcs of pkg/errors, and also it has code attribute to define the http return value.
2, lib/errors can give a OCI standard error format, like {"errors":[{"code":"UNAUTHORIZED","message":"unauthorized"}]}

If you'd like to use pkg/errors, use lib/errors instead. If it cannot meet your request, enhance it.

Signed-off-by: wang yan <wangyan@vmware.com>
2020-04-15 22:41:45 +08:00
..
chartserver replace pkg errors with lib errors (#11605) 2020-04-15 22:41:45 +08:00
cmd/migrate-patch Bump up the migrate tool of notary 2019-02-21 00:36:24 -08:00
common replace pkg errors with lib errors (#11605) 2020-04-15 22:41:45 +08:00
controller replace pkg errors with lib errors (#11605) 2020-04-15 22:41:45 +08:00
core replace pkg errors with lib errors (#11605) 2020-04-15 22:41:45 +08:00
jobservice replace pkg errors with lib errors (#11605) 2020-04-15 22:41:45 +08:00
lib replace pkg errors with lib errors (#11605) 2020-04-15 22:41:45 +08:00
migration move logger from common to lib 2020-04-02 14:09:03 +08:00
pkg replace pkg errors with lib errors (#11605) 2020-04-15 22:41:45 +08:00
portal Modify gc ui 2020-04-15 11:06:17 +08:00
registryctl Merge pull request #11592 from ninjadq/min_version_tls_to_12 2020-04-14 18:12:55 +08:00
replication replace pkg errors with lib errors (#11605) 2020-04-15 22:41:45 +08:00
server replace pkg errors with lib errors (#11605) 2020-04-15 22:41:45 +08:00
testing handle stop signal in GC job (#11612) 2020-04-14 18:59:03 +08:00
vendor Update CSRF mechanism 2020-03-09 01:15:54 +08:00
favicon.ico
go.mod replace pkg errors with lib errors (#11605) 2020-04-15 22:41:45 +08:00
go.sum feat(ci) enhance govet check performance (#11008) 2020-03-12 11:03:24 +08:00