ceph-csi/internal/util
Humble Chirammal 323cc0e3bb cleanup: avoid comparing errors directly
Go 1.13 contains support for error wrapping. To support wrapping,
fmt.Errorf now has a %w verb for creating wrapped errors, and three
new functions in the errors package ( errors.Unwrap, errors.Is and
errors.As) simplify unwrapping and inspecting wrapped errors.

With this change, If we currently compare errors using ==, we have to
use errors.Is instead. Example:

if err == io.ErrUnexpectedEOF

becomes

if errors.Is(err, io.ErrUnexpectedEOF)

https://tip.golang.org/doc/go1.13#error_wrapping

Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
2020-06-17 06:26:11 +00:00
..
cachepersister.go cleanup: move pkg/ to internal/ 2020-04-23 11:00:59 +00:00
cephcmds.go util: implement CreateObject() with go-ceph 2020-06-10 07:20:25 +00:00
cephconf.go cleanup: move pkg/ to internal/ 2020-04-23 11:00:59 +00:00
conn_pool_test.go move rbdVolume connection details to utils.ClusterConnection 2020-05-04 13:21:03 +00:00
conn_pool.go move rbdVolume connection details to utils.ClusterConnection 2020-05-04 13:21:03 +00:00
connection.go rbd: add rbdVolume.open() to get access to an image 2020-05-14 18:20:15 +00:00
credentials.go cleanup: fix golint warnings in util, e2e 2020-05-20 13:18:41 +00:00
crypto.go rbd/go-ceph: add GetMetadata() and GetMetadata() functions 2020-05-04 13:21:03 +00:00
cryptsetup.go cleanup: move pkg/ to internal/ 2020-04-23 11:00:59 +00:00
csiconfig_test.go cleanup: move pkg/ to internal/ 2020-04-23 11:00:59 +00:00
csiconfig.go util: make util.ClusterInfo usable outside util package 2020-05-14 19:43:21 +00:00
errors.go cleanup: fix golint warnings in util, e2e 2020-05-20 13:18:41 +00:00
httpserver.go cleanup: move pkg/ to internal/ 2020-04-23 11:00:59 +00:00
idlocker_test.go cleanup: move pkg/ to internal/ 2020-04-23 11:00:59 +00:00
idlocker.go cleanup: fix golint warnings in util, e2e 2020-05-20 13:18:41 +00:00
k8scmcache.go cleanup: move pkg/ to internal/ 2020-04-23 11:00:59 +00:00
log.go cleanup: move pkg/ to internal/ 2020-04-23 11:00:59 +00:00
nodecache.go cleanup: avoid comparing errors directly 2020-06-17 06:26:11 +00:00
pidlimit_test.go cleanup: move pkg/ to internal/ 2020-04-23 11:00:59 +00:00
pidlimit.go cleanup: move pkg/ to internal/ 2020-04-23 11:00:59 +00:00
stripsecrets.go cleanup: move pkg/ to internal/ 2020-04-23 11:00:59 +00:00
topology_test.go cleanup: move pkg/ to internal/ 2020-04-23 11:00:59 +00:00
topology.go cleanup: move pkg/ to internal/ 2020-04-23 11:00:59 +00:00
util_test.go cleanup: move pkg/ to internal/ 2020-04-23 11:00:59 +00:00
util.go util: remove unused context.Context parameter from GetPoolID() 2020-05-20 08:08:33 +00:00
validate.go cleanup: move pkg/ to internal/ 2020-04-23 11:00:59 +00:00
vault.go cleanup: move pkg/ to internal/ 2020-04-23 11:00:59 +00:00
volid_test.go cleanup: move pkg/ to internal/ 2020-04-23 11:00:59 +00:00
volid.go util: fix golint warnings in csiconfig, volid 2020-04-29 11:36:53 +00:00