mntent

package
v0.0.0-...-7bde1eb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2016 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entries

type Entries []*Entry

Entries is a list of Entry items.

func GetMounted

func GetMounted() (Entries, error)

GetMounted returns a slide of filesystem entries from the mounted fs table.

func TestEntries

func TestEntries(raw string) (Entries, error)

TestEntries returns a new Entries slice based on the supplied string

func (Entries) ByDir

func (entries Entries) ByDir(dir string) (*Entry, error)

ByDir returns firs Entry with the mount directory that matches dir.

func (Entries) ByType

func (entries Entries) ByType(fstype string) ([]*Entry, error)

ByType returns list of Entries that match the fstype.

type Entry

type Entry struct {
	Fsname string
	Dir    string
	Type   string
	Opts   string
	Freq   int
	Passno int
}

Entry is an entry in a filesystem table.

func GetEntriesByType

func GetEntriesByType(fstype string) ([]*Entry, error)

GetEntriesByType returns a slice of mounted filesystem entries that match the provided type.

func GetEntryByDir

func GetEntryByDir(dir string) (*Entry, error)

GetEntryByDir returns the mounted filesystem entry for the provided mount point.

func (*Entry) String

func (e *Entry) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL