Documentation ¶
Overview ¶
Package mountmanager ...
Package mountmanager ...
Package mountmanager ...
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFakeSafeMounter ¶
func NewFakeSafeMounter() *mount.SafeFormatAndMount
NewFakeSafeMounter ...
Types ¶
type FakeNodeMounter ¶
type FakeNodeMounter struct {
*mount.SafeFormatAndMount
}
FakeNodeMounter ...
func (*FakeNodeMounter) MakeDir ¶
func (f *FakeNodeMounter) MakeDir(pathname string) error
MakeDir ...
func (*FakeNodeMounter) MakeFile ¶
func (f *FakeNodeMounter) MakeFile(pathname string) error
MakeFile ...
func (*FakeNodeMounter) NewSafeFormatAndMount ¶
func (f *FakeNodeMounter) NewSafeFormatAndMount() *mount.SafeFormatAndMount
NewSafeFormatAndMount ...
func (*FakeNodeMounter) PathExists ¶
func (f *FakeNodeMounter) PathExists(pathname string) (bool, error)
PathExists ...
type Mounter ¶
type Mounter interface { NewSafeFormatAndMount() *mount.SafeFormatAndMount MakeFile(path string) error MakeDir(path string) error PathExists(path string) (bool, error) // contains filtered or unexported methods }
Mounter is the interface implemented by Mounter
type NodeMounter ¶
type NodeMounter struct {
*mount.SafeFormatAndMount
}
NodeMounter implements Mounter. A superstruct of SafeFormatAndMount.
func (*NodeMounter) MakeDir ¶
func (m *NodeMounter) MakeDir(path string) error
MakeDir creates a new directory.
func (*NodeMounter) MakeFile ¶
func (m *NodeMounter) MakeFile(path string) error
MakeFile creates an empty file.
func (*NodeMounter) NewSafeFormatAndMount ¶
func (m *NodeMounter) NewSafeFormatAndMount() *mount.SafeFormatAndMount
NewSafeFormatAndMount returns the new object of SafeFormatAndMount.
func (*NodeMounter) PathExists ¶
func (m *NodeMounter) PathExists(path string) (bool, error)
PathExists returns true if the specified path exists.
Click to show internal directories.
Click to hide internal directories.