Commit Graph

19 Commits (62da883e113cc5970f34b01529d9050d4a336671)

Author SHA1 Message Date
shirou 29ccada537 refactor(net): Gather base functions to net.go
shirou 37f531010d fix golangcilint errors, ignore gosec G115
shirou 5f158096be fix: golangci lint with max -> maxConn
shirou bc060cc227 add SPDX License, remove old build tag, and replace import
Steffen Geissinger 5bbcabf17d Pass on context to ConnectionsPidWithContext
mmorel-35 1e6b445a8a gofumpt
shirou 0969c9436b delete v2 directory, move v3 to top #1078
MashaSamoylova 7631bb0e5e Fix lsof args for udp4 in unix
Tobias Klauser 22d8ee41e5 net: move parseNetLine and parseNetAddr to net_unix.go
These funcs are only used in net_unix.go which is only compiled for
darwin and freebsd.
Brian C. Williams f00df5cffe Add WithoutUids funcs
Kamil Dziedzic b76d065dff
PMM-2643: Support listing unix sockets in ConnectionsPid and ConnectionsPidWithContext.
Signed-off-by: Kamil Dziedzic <arvenil@klecza.pl>
shirou 145dca90f7 change to use CommandContext.
shirou 4c73494c78 Add WithContext functions.
Conor Branagan df61ef6d5f Add stub functions for ConnectionsMax in other OS versions.
Shirou WAKAYAMA 613a8a90e1 fixed by golint.
Shirou WAKAYAMA ea152ea901 [BREAKING CHANGE] rename functions to pass golint. ex) net.NetIOCounters -> net.IOCounters
Shirou WAKAYAMA 6c352016d8 [net]linux: start replacing lsof. still work in progress.
Daniel Theophanes 0af895258e common: rename package common to internal/common. Add ENV helper funcs.
Package common wasn't used for public functions. Place it in an
internal directory to prevent other packages from using.

Remove the distributed references to "HOST_PROC" and "HOST_SYS"
consts and combine into a common function. This also helps so that
if a env var is defined with a trailing slash all will continue to
work as expected.

Fixes #100
Shirou WAKAYAMA 93e226a5e3 net[freebsd,linux,darwin]: merge unix like OSes.