Versions in this module Expand all Collapse all v0 v0.20.0-alpha8 Feb 25, 2016 v0.20.0-alpha5 Feb 9, 2016 v0.20.0-alpha3 Feb 1, 2016 v0.20.0-alpha2 Jan 29, 2016 v0.20.0-alpha1 Jan 26, 2016 v0.19.1 Dec 15, 2015 v0.19.0 Dec 10, 2015 v0.18.5 Jan 25, 2016 v0.18.4 Jan 14, 2016 Changes in this version type FakeMounter + func (f *FakeMounter) IsLikelyNotMountPoint(file string) (bool, error) type Interface + IsLikelyNotMountPoint func(file string) (bool, error) type Mounter + func (mounter *Mounter) IsLikelyNotMountPoint(file string) (bool, error) type NsenterMounter + func NewNsenterMounter() *NsenterMounter + func (*NsenterMounter) IsLikelyNotMountPoint(file string) (bool, error) + func (n *NsenterMounter) IsLikelyNotMountPoint(file string) (bool, error) + type SafeFormatAndMount struct + Runner exec.Interface + func (mounter *SafeFormatAndMount) Mount(source string, target string, fstype string, options []string) error v0.18.2 Oct 2, 2015 v0.18.1 Sep 21, 2015 v0.18.0 Sep 15, 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