Commit Graph

187 Commits (8eeb4a62854157e61e84517c49d5445fbe6c277b)

Author SHA1 Message Date
Matthieu MOREL cefed48244 chore: enable staticcheck linter
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2 months ago
shirou 7b14b866f1
Merge pull request #1783 from mmorel-35/revive/unused-parameter
chore: enable unused-parameter from revive
3 months ago
shirou 9d29c70c52
Merge pull request #1813 from mmorel-35/gocritic
chore: enable gocritic linter
3 months ago
shirou 2ab27a0ba3
Merge pull request #1817 from mmorel-35/revive/var-naming
chore: enable var-naming from revive
3 months ago
Matthieu MOREL dfdd90ab72 chore: enable gocritic linter 4 months ago
Matthieu MOREL 9925fd41ec chore: enable var-naming from revive
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
4 months ago
Matthieu MOREL dc9b409803 chore: enable unused-parameter from revive
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
4 months ago
Matthieu MOREL a5e496769c chore: enable begin rule from thelper
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
4 months ago
Matthieu MOREL 8c1a718a5d chore: use testify instead of testing
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
4 months ago
Matthieu MOREL f4247f1c01 chore: enable unnecessary-stmt from revive
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
4 months ago
Matthieu MOREL 0a45e0f24d chore(golangci-lint): cover aix and cgo
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
4 months ago
Lomanic 6c9cea2bae [net][aix] Add missing return value in IOCountersWithContext()
Amends #1797
Fixes #1806
4 months ago
Matthieu MOREL 30aff030d0 chore(golangci-lint): GOOS and GOARCH matrix
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
4 months ago
shirou 8897eba676 [windows]: fix lint error about use-any 4 months ago
Matthieu MOREL 9ce2ec161e chore: enable golangci-lint on Windows and MacOS
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
5 months ago
shirou 29ccada537 refactor(net): Gather base functions to net.go 6 months ago
shirou fe28b21c2e
Merge pull request #1762 from mmorel-35/perfsprint
enable all rules of perfsprint linter
6 months ago
shirou 6ee5668143
Merge pull request #1757 from tuftedocelot/connectionspid
[openbsd] set ConnectionsPid to return NotImplemented
6 months ago
tuftedocelot bca28ce54f [openbsd][net] copy related functions from net_unix to net_openbsd 6 months ago
Matthieu MOREL 7e19b35f50 enable all rules of perfsprint linter
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
6 months ago
tuftedocelot 88d6de082e [openbsd] set ConnectionsPid to return NotImplemented
netstat on OpenBSD doesn't provide PID information for open ports
6 months ago
Matthieu MOREL 06e4051c91 enable testifylint linter
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
8 months ago
shirou 37f531010d fix golangcilint errors, ignore gosec G115 10 months ago
shirou 5f158096be fix: golangci lint with max -> maxConn 11 months ago
shirou d725bd1786 fix lint 1 year ago
shirou 5cd488ff30 [net][linux]: remove unused files. go1.11 is not supported now. 1 year ago
shirou e9591b5b01 rename redundant test function names, such as TestCPU in cpu package 1 year ago
shirou bc060cc227 add SPDX License, remove old build tag, and replace import 1 year ago
camcui 3ec3f55280 chore: fix some typos in comments
Signed-off-by: camcui <cuishua@sina.cn>
1 year ago
Amarinder Cheema 6311a849df
Update net_openbsd.go to correctly parse netstat output on obsd. See #1441 1 year ago
Ville Skyttä 362fa4b9c4 Avoid repeated regexp compilations 2 years ago
Matthieu MOREL c806740b34
ci(lint): ensure io/ioutil replacement (#1525)
* ci(lint): enure ioutil replacement

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>

* Update host_solaris.go
* Update process_linux_test.go
* Update net_linux_test.go
* Update net_linux_test.go
* Update process_test.go
* Update process_linux_test.go
* Update process_linux_test.go

---------

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2 years ago
shirou 0665cafa1b chore: replace deprecated ioutil package to os and io 2 years ago
Antoine Toulme fe1caf758c lint fixes 2 years ago
Antoine Toulme 38b94668ea allow to pass context values to override environment variables 2 years ago
cui fliter 9aa4e7a744 fix some comments
Signed-off-by: cui fliter <imcusg@gmail.com>
2 years ago
Matthieu MOREL 1fb1e3e3e6 ci(lint): correct gci linter
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2 years ago
shirou 852f455217 fix lint 2 years ago
Steve Zhang cf62eac8f9 The current codes miss below statistic data under solaris/illumos:
1. the disk io statistic data as: nread, nwritten, reads, writes, rtime, wtime;
2. the free memory under global zone;
3. the net io statistic data as: rbytes64, ipackets64, idrops64, ierrors, obytes64, opackets64, odrops64, oerrors.

The new feature branch adds the above missing statistic data based on the psutil project (https://psutil.readthedocs.io/), it has been tested under solaris ( Oracle Solaris 11.4 X86) and illumos (OmniOS v11 r151044).
3 years ago
Steffen Geissinger 5bbcabf17d Pass on context to ConnectionsPidWithContext 3 years ago
Ties de Wit e4409ef6a1
Update net_linux.go 3 years ago
shirou f11e3ba120 fix(net,linux): move IsLittleEndian to internal 3 years ago
shirou e4e6ed2efa fix(net,linux): fix BigEndian test 3 years ago
shirou 8ae3affce0 fix(net,linux): fix decodeaddress if Big Endian 3 years ago
chbuescher 7dd96685cb
Merge branch 'shirou:master' into master 3 years ago
xca1075 d4f012c565 fix aix nocgo compile 3 years ago
xca1075 e24e72062b aix: split code, that uses perfstat, to _cgo and _nocgo files 3 years ago
shirou 0074fab5f5 [net][linux]: fix lint 3 years ago
xca1075 ce49e45ed3 get IOCounters for aix with perfstat 3 years ago
Ville Skyttä 7befb75528 [net] gofumpt with 0.3.0 / golangci-lint 1.45.0 3 years ago