-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Fix linter findings for
revive:exported
in `plugins/inputs/l…
…*` (#16167)
- Loading branch information
Showing
31 changed files
with
1,112 additions
and
1,044 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package internal | ||
|
||
import "os" | ||
|
||
// GetProcPath returns the path stored in HOST_PROC env variable, or /proc if HOST_PROC has not been set. | ||
func GetProcPath() string { | ||
if hostProc := os.Getenv("HOST_PROC"); hostProc != "" { | ||
return hostProc | ||
} | ||
return "/proc" | ||
} | ||
|
||
// GetSysPath returns the path stored in HOST_SYS env variable, or /sys if HOST_SYS has not been set. | ||
func GetSysPath() string { | ||
if hostSys := os.Getenv("HOST_SYS"); hostSys != "" { | ||
return hostSys | ||
} | ||
return "/sys" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
58 changes: 55 additions & 3 deletions
58
plugins/inputs/intel_baseband/mock/conn.go → plugins/inputs/intel_baseband/mocks/conn.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.