Versions in this module Expand all Collapse all v1 v1.3.0-alpha.3 Apr 26, 2016 v1.2.3 Apr 22, 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) FormatAndMount(source string, target string, fstype string, options []string) error v1.2.0-beta.0 Mar 4, 2016 v1.2.0-alpha.3 Nov 3, 2015 v1.1.7-beta.0 Jan 27, 2016 v1.1.4-beta.0 Dec 7, 2015 v1.1.0-beta Sep 25, 2015 v1.0.8-beta Oct 27, 2015 v1.0.2 Aug 1, 2015 v0 v0.21.2 Jul 11, 2015 Changes in this version + 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 v0.15.0 Apr 13, 2015 Changes in this version + const FakeActionMount + const FakeActionUnmount + const FlagBind + const FlagReadOnly + 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, flags uintptr, data string) error + func (f *FakeMounter) ResetLog() + func (f *FakeMounter) Unmount(target string, flags int) error + type Interface interface + IsMountPoint func(file string) (bool, error) + List func() ([]MountPoint, error) + Mount func(source string, target string, fstype string, flags uintptr, data string) error + Unmount func(target string, flags int) 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, flags uintptr, data string) error + func (mounter *Mounter) Unmount(target string, flags int) error