rebase: vendor dependencies for Vault API

Uses github.com/libopenstorage/secrets to communicate with Vault. This
removes the need for maintaining our own limited Vault APIs.

By adding the new dependency, several other packages got updated in the
process. Unused indirect dependencies have been removed from go.mod.

Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
Niels de Vos
2020-11-19 08:52:04 +01:00
committed by mergify[bot]
parent 7824cb5ed7
commit 91774fc936
618 changed files with 80427 additions and 31593 deletions

View File

@ -33,37 +33,37 @@ type ProcStatus struct {
TGID int
// Peak virtual memory size.
VmPeak uint64 // nolint:golint
VmPeak uint64
// Virtual memory size.
VmSize uint64 // nolint:golint
VmSize uint64
// Locked memory size.
VmLck uint64 // nolint:golint
VmLck uint64
// Pinned memory size.
VmPin uint64 // nolint:golint
VmPin uint64
// Peak resident set size.
VmHWM uint64 // nolint:golint
VmHWM uint64
// Resident set size (sum of RssAnnon RssFile and RssShmem).
VmRSS uint64 // nolint:golint
VmRSS uint64
// Size of resident anonymous memory.
RssAnon uint64 // nolint:golint
RssAnon uint64
// Size of resident file mappings.
RssFile uint64 // nolint:golint
RssFile uint64
// Size of resident shared memory.
RssShmem uint64 // nolint:golint
RssShmem uint64
// Size of data segments.
VmData uint64 // nolint:golint
VmData uint64
// Size of stack segments.
VmStk uint64 // nolint:golint
VmStk uint64
// Size of text segments.
VmExe uint64 // nolint:golint
VmExe uint64
// Shared library code size.
VmLib uint64 // nolint:golint
VmLib uint64
// Page table entries size.
VmPTE uint64 // nolint:golint
VmPTE uint64
// Size of second-level page tables.
VmPMD uint64 // nolint:golint
VmPMD uint64
// Swapped-out virtual memory size by anonymous private.
VmSwap uint64 // nolint:golint
VmSwap uint64
// Size of hugetlb memory portions
HugetlbPages uint64
@ -71,9 +71,6 @@ type ProcStatus struct {
VoluntaryCtxtSwitches uint64
// Number of involuntary context switches.
NonVoluntaryCtxtSwitches uint64
// UIDs of the process (Real, effective, saved set, and filesystem UIDs (GIDs))
UIDs [4]string
}
// NewStatus returns the current status information of the process.
@ -117,8 +114,6 @@ func (s *ProcStatus) fillStatus(k string, vString string, vUint uint64, vUintByt
s.TGID = int(vUint)
case "Name":
s.Name = vString
case "Uid":
copy(s.UIDs[:], strings.Split(vString, "\t"))
case "VmPeak":
s.VmPeak = vUintBytes
case "VmSize":