12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- package procfs
- import (
- "github.com/prometheus/procfs/internal/fs"
- )
- type FS struct {
- proc fs.FS
- }
- const DefaultMountPoint = fs.DefaultProcMountPoint
- func NewDefaultFS() (FS, error) {
- return NewFS(DefaultMountPoint)
- }
- func NewFS(mountPoint string) (FS, error) {
- fs, err := fs.NewFS(mountPoint)
- if err != nil {
- return FS{}, err
- }
- return FS{fs}, nil
- }
|