Documentation ¶
Overview ¶
Package file implements file utils.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrLibraryEmpty = errors.New("library name is empty") ErrLibraryNotFound = errors.New("library not found") )
Functions ¶
func CheckExecutable ¶
func CheckFDLimitSupported ¶ added in v0.2.0
func CheckFDLimitSupported() bool
func GetLimit ¶ added in v0.2.0
returns the current file descriptor limit for the host, not for the current process. for the current process, use syscall.Getrlimit.
func GetUsage ¶ added in v0.2.0
"process_open_fds" in prometheus collector ref. https://github.com/prometheus/client_golang/blob/main/prometheus/process_collector_other.go ref. https://pkg.go.dev/github.com/prometheus/procfs
func LocateExecutable ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.