harbor/src/jobservice/migration
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
..
manager_test.go fix bug #8499: redis connection pool is run out 2019-07-31 15:45:03 +08:00
manager.go replace pkg errors with lib errors (#11605) 2020-04-15 22:41:45 +08:00
migrator_v180.go replace pkg errors with lib errors (#11605) 2020-04-15 22:41:45 +08:00
migrator.go add migration process for rdb as well as UT cases 2019-06-12 12:29:51 +08:00
version.go add migration process for rdb as well as UT cases 2019-06-12 12:29:51 +08:00