github.com/Cloud-Foundations/Dominator@v0.3.4/lib/fsutil/mounts/api.go (about)

     1  package mounts
     2  
     3  type MountEntry struct {
     4  	Device     string
     5  	MountPoint string
     6  	Type       string
     7  	Options    string
     8  }
     9  
    10  type MountTable struct {
    11  	Entries []*MountEntry
    12  }
    13  
    14  func GetMountTable() (*MountTable, error) {
    15  	return getMountTable()
    16  }
    17  
    18  func (mt *MountTable) FindEntry(path string) *MountEntry {
    19  	return mt.findEntry(path)
    20  }