update procfs to v0.0.2 (#1376)
Signed-off-by: Paul Gier <pgier@redhat.com>
This commit is contained in:
parent
0759c0ac01
commit
2bc133cd48
33 changed files with 167 additions and 172 deletions
6
vendor/github.com/prometheus/procfs/xfs/xfs.go
generated
vendored
6
vendor/github.com/prometheus/procfs/xfs/xfs.go
generated
vendored
|
|
@ -177,6 +177,12 @@ type FS struct {
|
|||
sys *fs.FS
|
||||
}
|
||||
|
||||
// NewDefaultFS returns a new XFS handle using the default proc and sys mountPoints.
|
||||
// It will error if either of the mounts point can't be read.
|
||||
func NewDefaultFS() (FS, error) {
|
||||
return NewFS(fs.DefaultProcMountPoint, fs.DefaultSysMountPoint)
|
||||
}
|
||||
|
||||
// NewFS returns a new XFS handle using the given proc and sys mountPoints. It will error
|
||||
// if either of the mounts point can't be read.
|
||||
func NewFS(procMountPoint string, sysMountPoint string) (FS, error) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue