Versions in this module Expand all Collapse all v1 v1.3.2 Jan 7, 2017 v1.3.1 Sep 22, 2016 v1.3.0 Sep 19, 2016 v1.2.0 Jun 23, 2016 v0 v0.4.0 Jun 23, 2016 v0.3.0 Mar 16, 2016 Changes in this version type SafeFormatAndMount + func (mounter *SafeFormatAndMount) FormatAndMount(source string, target string, fstype string, options []string) error v0.1.0 Oct 25, 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) IsLikelyNotMountPoint(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 + IsLikelyNotMountPoint 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) IsLikelyNotMountPoint(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 NewNsenterMounter() *NsenterMounter + func (*NsenterMounter) IsLikelyNotMountPoint(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 + func (n *NsenterMounter) IsLikelyNotMountPoint(file string) (bool, error) + func (n *NsenterMounter) Mount(source string, target string, fstype string, options []string) error + func (n *NsenterMounter) Unmount(target string) error + type SafeFormatAndMount struct + Runner exec.Interface + func (mounter *SafeFormatAndMount) Mount(source string, target string, fstype string, options []string) error