shirou
bc060cc227
add SPDX License, remove old build tag, and replace import
2024-05-28 22:27:17 +09:00
Steffen Geissinger
5bbcabf17d
Pass on context to ConnectionsPidWithContext
2022-10-19 10:07:21 +02:00
mmorel-35
1e6b445a8a
gofumpt
2021-12-22 21:54:41 +00:00
shirou
0969c9436b
delete v2 directory, move v3 to top #1078
2021-11-30 23:47:59 +00:00
MashaSamoylova
7631bb0e5e
Fix lsof args for udp4 in unix
2021-01-11 17:08:18 +07:00
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.
2020-02-25 10:05:37 +01:00
Brian C. Williams
f00df5cffe
Add WithoutUids funcs
2019-11-01 10:58:35 -04:00
Kamil Dziedzic
b76d065dff
PMM-2643: Support listing unix sockets in ConnectionsPid and ConnectionsPidWithContext.
...
Signed-off-by: Kamil Dziedzic <arvenil@klecza.pl>
2018-07-03 16:57:21 +02:00
shirou
145dca90f7
change to use CommandContext.
2018-03-31 21:35:53 +09:00
shirou
4c73494c78
Add WithContext functions.
2017-12-31 15:25:49 +09:00
Conor Branagan
df61ef6d5f
Add stub functions for ConnectionsMax in other OS versions.
2016-12-11 13:06:56 -05:00
Shirou WAKAYAMA
613a8a90e1
fixed by golint.
2016-04-01 21:34:39 +09:00
Shirou WAKAYAMA
ea152ea901
[BREAKING CHANGE] rename functions to pass golint. ex) net.NetIOCounters -> net.IOCounters
2016-03-22 23:09:12 +09:00
Shirou WAKAYAMA
6c352016d8
[net]linux: start replacing lsof. still work in progress.
2016-03-01 23:38:13 +09:00
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
2015-10-18 20:40:01 -07:00
Shirou WAKAYAMA
93e226a5e3
net[freebsd,linux,darwin]: merge unix like OSes.
2015-10-11 21:57:53 +09:00