ceph-csi/internal/util
Niels de Vos 1b89f86d51 util: handle Close() errors in pidlimit
A new version of gosec insists on handling errors returned by Close():

    [/go/src/github.com/ceph/ceph-csi/internal/util/pidlimit.go:44] - G307 (CWE-): Deferring unsafe method "*os.File" on type "Close" (Confidence: HIGH, Severity: MEDIUM)
      > defer cgroup.Close()

    [/go/src/github.com/ceph/ceph-csi/internal/util/pidlimit.go:78] - G307 (CWE-): Deferring unsafe method "*os.File" on type "Close" (Confidence: HIGH, Severity: MEDIUM)
      > defer f.Close()

    [/go/src/github.com/ceph/ceph-csi/internal/util/pidlimit.go:113] - G307 (CWE-): Deferring unsafe method "*os.File" on type "Close" (Confidence: HIGH, Severity: MEDIUM)
      > defer f.Close()

Signed-off-by: Niels de Vos <ndevos@redhat.com>
2020-07-01 05:56:32 +00:00
..
cachepersister.go cleanup: move pkg/ to internal/ 2020-04-23 11:00:59 +00:00
cephcmds.go util: log error when closing temp fail fails in GetOMapValue() 2020-07-01 05:56:32 +00:00
cephconf.go util: create ceph.conf with 0600 permissions 2020-07-01 05:56:32 +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 util: add doc comments for exported functions in errors.go 2020-06-22 15:41:00 +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 util: handle Close() errors in pidlimit 2020-07-01 05:56:32 +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 ci: add test for MountOptionsAdd() 2020-06-24 13:33:44 +00:00
util.go util: add MountOptionsAdd() to add mount options 2020-06-24 13:33:44 +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