Ville Skyttä
a21240a319
Simplify some if blocks
2021-08-18 17:09:11 +03:00
Ville Skyttä
fb0c322260
Check error identity with errors.Is
2021-08-18 17:09:11 +03:00
Ville Skyttä
633e77013f
Use short if
2021-08-18 17:09:11 +03:00
Ville Skyttä
ce9d35436e
Merge variable declaration with assignment
2021-08-18 17:09:11 +03:00
Ville Skyttä
5d0724f42f
Comment convention fixes
2021-08-18 17:09:03 +03:00
Ville Skyttä
803cea9d67
Don't use underscores in variable names
2021-08-18 16:44:20 +03:00
Ville Skyttä
65616500e8
Remove unnecessary empty lines
2021-08-18 16:42:17 +03:00
Ville Skyttä
a9b1ce2dec
Remove unnecessary conversions
2021-08-18 16:42:11 +03:00
Ville Skyttä
7743265113
Rewrite if-else chains as switches
2021-08-18 16:37:51 +03:00
shirou
f86a042980
Merge pull request #1117 from tklauser/update-go-sysconf
...
Update github.com/tklauser/go-sysconf to v0.3.8
2021-08-16 19:14:16 +09:00
Tobias Klauser
cb29e40ade
Update github.com/tklauser/go-sysconf to v0.3.8
...
This fixes the build of go-sysconf on openbsd/386 and openbsd/arm, see
tklauser/go-sysconf#21 and rclone/rclone#5402 for context.
List of changes: https://github.com/tklauser/go-sysconf/compare/v0.3.6...v0.3.8
2021-08-16 10:49:52 +02:00
shirou
ff3e668a6d
Create FUNDING.yml
2021-08-15 22:59:43 +09:00
shirou
ab783600d3
Merge pull request #1116 from shirou/feature/port_to_v2_from_1112
...
[v2][process][linux] port 1112 to v2.
2021-08-14 17:39:38 +09:00
shirou
b27be3812b
[v2][process][linux] port 1112 to v2.
...
This port includes only code. test is not included.
2021-08-14 08:22:57 +00:00
shirou
efc3e519be
Merge pull request #1112 from xuyang2/process-name-linux
...
[process][linux] get name from /proc/(pid)/comm
2021-08-14 17:17:55 +09:00
xuyang2
45a01f678c
[process][linux] get name from /proc/(pid)/comm
2021-08-12 11:06:28 +08:00
xuyang2
7485c8041d
[process][linux] get name from /proc/(pid)/comm
2021-08-12 09:47:11 +08:00
xuyang2
a9757c7de9
[process][linux] get name from /proc/(pid)/comm
2021-08-12 09:35:49 +08:00
shirou
ae17bb5860
Merge pull request #1110 from shirou/feature/change_test_support_version_to_115_and_116
...
change test support version to 1.15 and 1.16.
2021-07-31 11:05:28 +09:00
shirou
1273f2cffb
change test support version to 1.15 and 1.16.
2021-07-30 07:18:43 +00:00
shirou
5c29bd904d
Merge pull request #1109 from shirou/dependabot/go_modules/v3/github.com/tklauser/go-sysconf-0.3.7
...
Bump github.com/tklauser/go-sysconf from 0.3.6 to 0.3.7 in /v3
2021-07-30 08:40:39 +09:00
dependabot[bot]
f41cf8143a
Bump github.com/tklauser/go-sysconf from 0.3.6 to 0.3.7 in /v3
...
Bumps [github.com/tklauser/go-sysconf](https://github.com/tklauser/go-sysconf ) from 0.3.6 to 0.3.7.
- [Release notes](https://github.com/tklauser/go-sysconf/releases )
- [Commits](https://github.com/tklauser/go-sysconf/compare/v0.3.6...v0.3.7 )
---
updated-dependencies:
- dependency-name: github.com/tklauser/go-sysconf
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-07-29 23:00:22 +00:00
shirou
656e0c758a
Merge pull request #1108 from shirou/dependabot/go_modules/v3/github.com/stretchr/testify-1.7.0
...
Bump github.com/stretchr/testify from 1.6.1 to 1.7.0 in /v3
2021-07-30 07:59:26 +09:00
dependabot[bot]
cd789c0cf9
Bump github.com/stretchr/testify from 1.6.1 to 1.7.0 in /v3
...
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify ) from 1.6.1 to 1.7.0.
- [Release notes](https://github.com/stretchr/testify/releases )
- [Commits](https://github.com/stretchr/testify/compare/v1.6.1...v1.7.0 )
---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-07-29 22:06:24 +00:00
shirou
d7540e6cfc
Merge pull request #1113 from lespea/fixWmiAgain
...
Newest version of wmi
2021-07-30 07:05:34 +09:00
Adam Lesperance
7993cb68cc
Newest version of wmi
2021-07-29 16:48:26 -05:00
xuyang2
7203001e29
[process][linux] get name from /proc/(pid)/comm
2021-07-29 14:16:16 +08:00
shirou
48ca99694c
Merge pull request #1099 from edge/master
...
fix wmi version
2021-07-24 17:21:52 +09:00
shirou
a94b35811c
Merge pull request #1107 from rasa/patch-1
...
docs: fix typos and grammer
2021-07-24 17:10:25 +09:00
Ross Smith II
dda0350d41
Update README.rst
2021-07-23 06:26:39 -07:00
shirou
78e21dd887
Merge pull request #1097 from secDre4mer/master
...
feat: Add support for environment variable read
2021-07-23 22:24:38 +09:00
shirou
5fe3154cd3
Merge pull request #1106 from odinje/host-platform_family_rocky
...
Ensure rhel platform family for Rocky Linux
2021-07-23 18:56:37 +09:00
Max Altgelt
3ce14ac1bb
chore: Update golang.org/x/sys to NTStatus support
...
Update the requested version for golang.org/x/sys to the commit
that introduces support for NTStatus which is now used.
2021-07-22 07:53:12 +02:00
Ross Smith II
120ab7fb06
Update README.rst
2021-07-21 17:37:08 -07:00
Ross Smith II
ebe2843f84
More (opinionated) doc fixes
2021-07-21 17:36:02 -07:00
Ross Smith II
e364a40c47
docs: fix typo
2021-07-21 17:29:54 -07:00
odinje
a3e22baec0
Ensure rhel platform family for Rocky Linux
2021-07-21 23:04:09 +02:00
Max Altgelt
9ad6c64727
fix: Remove superfluous EnvironWithContext definitions
...
Since Darwin / FreeBSD / OpenBSD all use process_bsd.go, remove
the duplicated "not implemented" EnvironWithContext definitions
from their custom go files.
Signed-off-by: Max Altgelt <max.altgelt@nextron-systems.com>
2021-07-19 09:22:20 +02:00
Max Altgelt
5f61473ffd
fix: Correct UNICODE_STRING64 definition
...
Correct the UNICODE_STRING64 definition. The length is only
16 bits, followed by 16 bit max length and 32 bit padding.
2021-07-19 07:34:42 +02:00
shirou
4746baa8c7
Merge pull request #1101 from shirou/dependabot/github_actions/actions/labeler-3.0.2
...
Bump actions/labeler from 2 to 3.0.2
2021-07-15 22:09:58 +09:00
dependabot[bot]
0f84c89cb4
Bump actions/labeler from 2 to 3.0.2
...
Bumps [actions/labeler](https://github.com/actions/labeler ) from 2 to 3.0.2.
- [Release notes](https://github.com/actions/labeler/releases )
- [Commits](https://github.com/actions/labeler/compare/v2...v3.0.2 )
---
updated-dependencies:
- dependency-name: actions/labeler
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-07-15 11:37:12 +00:00
shirou
3814f4e2a1
Merge pull request #1100 from mmorel-35/chore/dependabot
...
Set up Dependabot
2021-07-15 20:36:50 +09:00
Matthieu MOREL
0e9c4d3b85
Update dependabot.yml
2021-07-14 00:06:45 +02:00
Matthieu MOREL
26442de1b3
Create dependabot.yml
2021-07-14 00:05:23 +02:00
Aneurin Barker Snook
42f69011cc
fix wmi version
2021-07-13 16:38:10 +01:00
Max Altgelt
73fee847e6
chore: add tests
...
Add simple tests to verify that environment variables are read.
2021-07-13 16:38:49 +02:00
Max Altgelt
5337ed8408
chore: Add changes to v3 gopsutil
2021-07-13 16:14:57 +02:00
Max Altgelt
b02b92e16b
feat: Add support for environment variable read
...
Add support (for Linux and Windows for now) for reading the
environment variables of a process, with a similar syntax to
os.Environ().
For Windows, this includes some refactoring for clean access to the
RTL_USER_PROCESS_PARAMETERS structure which points to the command
line and the environment variables.
2021-07-13 15:11:29 +02:00
shirou
42d667edb6
Merge pull request #1096 from lespea/goModWMI
...
Update wmi to go.mod supported version
2021-07-10 20:52:25 +09:00
Adam Lesperance
8a083b8393
Update wmi to go.mod supported version
2021-07-09 10:36:03 -05:00