Versions in this module Expand all Collapse all v0 v0.19.0 Jun 9, 2015 Changes in this version + const FakeActionMount + const FakeActionUnmount + func GetDeviceNameFromMount(mounter Interface, mountPath string) (string, int, error) + func GetMountRefs(mounter Interface, mountPath string) ([]string, error) + type FakeAction struct + Action string + FSType string + Source string + Target string + type FakeMounter struct + Log []FakeAction + MountPoints []MountPoint + func (f *FakeMounter) IsMountPoint(file string) (bool, error) + func (f *FakeMounter) List() ([]MountPoint, error) + func (f *FakeMounter) Mount(source string, target string, fstype string, options []string) error + func (f *FakeMounter) ResetLog() + func (f *FakeMounter) Unmount(target string) error + type Interface interface + IsMountPoint func(file string) (bool, error) + List func() ([]MountPoint, error) + Mount func(source string, target string, fstype string, options []string) error + Unmount func(target string) error + func New() Interface + type MountPoint struct + Device string + Freq int + Opts []string + Pass int + Path string + Type string + type Mounter struct + func (*Mounter) List() ([]MountPoint, error) + func (mounter *Mounter) IsMountPoint(file string) (bool, error) + func (mounter *Mounter) List() ([]MountPoint, error) + func (mounter *Mounter) Mount(source string, target string, fstype string, options []string) error + func (mounter *Mounter) Unmount(target string) error + type NsenterMounter struct + func (*NsenterMounter) IsMountPoint(file string) (bool, error) + func (*NsenterMounter) List() ([]MountPoint, error) + func (*NsenterMounter) Mount(source string, target string, fstype string, options []string) error + func (*NsenterMounter) Unmount(target string) error