build(deps): bump github.com/vmware/govmomi from 0.23.0 to 0.26.1
Bumps [github.com/vmware/govmomi](https://github.com/vmware/govmomi) from 0.23.0 to 0.26.1. - [Release notes](https://github.com/vmware/govmomi/releases) - [Changelog](https://github.com/vmware/govmomi/blob/master/CHANGELOG.md) - [Commits](https://github.com/vmware/govmomi/compare/v0.23.0...v0.26.1) --- updated-dependencies: - dependency-name: github.com/vmware/govmomi dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
parent
974c258382
commit
137819b9cd
77 changed files with 7610 additions and 486 deletions
19
vendor/github.com/vmware/govmomi/vim25/debug/debug.go
generated
vendored
19
vendor/github.com/vmware/govmomi/vim25/debug/debug.go
generated
vendored
|
|
@ -29,6 +29,20 @@ type Provider interface {
|
|||
Flush()
|
||||
}
|
||||
|
||||
// ReadCloser is a struct that satisfies the io.ReadCloser interface
|
||||
type ReadCloser struct {
|
||||
io.Reader
|
||||
io.Closer
|
||||
}
|
||||
|
||||
// NewTeeReader wraps io.TeeReader and patches through the Close() function.
|
||||
func NewTeeReader(rc io.ReadCloser, w io.Writer) io.ReadCloser {
|
||||
return ReadCloser{
|
||||
Reader: io.TeeReader(rc, w),
|
||||
Closer: rc,
|
||||
}
|
||||
}
|
||||
|
||||
var currentProvider Provider = nil
|
||||
var scrubPassword = regexp.MustCompile(`<password>(.*)</password>`)
|
||||
|
||||
|
|
@ -55,8 +69,5 @@ func Flush() {
|
|||
}
|
||||
|
||||
func Scrub(in []byte) []byte {
|
||||
out := string(in)
|
||||
out = scrubPassword.ReplaceAllString(out, `<password>********</password>`)
|
||||
|
||||
return []byte(out)
|
||||
return scrubPassword.ReplaceAll(in, []byte(`<password>********</password>`))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue