package fs

import "github.com/prometheus/procfs/internal/fs"

Index

Constants

const (
	// DefaultProcMountPoint is the common mount point of the proc filesystem.
	DefaultProcMountPoint = "/proc"

	// DefaultSysMountPoint is the common mount point of the sys filesystem.
	DefaultSysMountPoint = "/sys"

	// DefaultConfigfsMountPoint is the commont mount point of the configfs
	DefaultConfigfsMountPoint = "/sys/kernel/config"
)

Types

type FS

type FS string

FS represents a pseudo-filesystem, normally /proc or /sys, which provides an interface to kernel data structures.

func NewFS

func NewFS(mountPoint string) (FS, error)

NewFS returns a new FS mounted under the given mountPoint. It will error if the mount point can't be read.

func (FS) Path

func (fs FS) Path(p ...string) string

Path appends the given path elements to the filesystem path, adding separators as necessary.

Source Files

fs.go

Version
v0.0.3
Published
Jun 25, 2019
Platform
js/wasm
Imports
3 packages
Last checked
32 seconds ago

Tools for package owners.