Add native Go method for finding pids to procstat (#3559)
This commit is contained in:
committed by
Daniel Nelson
parent
9b4177d46c
commit
551c771bba
@@ -23,6 +23,13 @@ type Process interface {
|
||||
RlimitUsage(bool) ([]process.RlimitStat, error)
|
||||
}
|
||||
|
||||
type PIDFinder interface {
|
||||
PidFile(path string) ([]PID, error)
|
||||
Pattern(pattern string) ([]PID, error)
|
||||
Uid(user string) ([]PID, error)
|
||||
FullPattern(path string) ([]PID, error)
|
||||
}
|
||||
|
||||
type Proc struct {
|
||||
hasCPUTimes bool
|
||||
tags map[string]string
|
||||
|
||||
Reference in New Issue
Block a user