Documentation ¶
Overview ¶
Package mountmanager ...
Package mountmanager ...
Package mountmanager ...
Index ¶
- func NewFakeSafeMounter() *mount.SafeFormatAndMount
- func NewFakeSafeMounterWithCustomActions(actionList []testingexec.FakeCommandAction) *mount.SafeFormatAndMount
- type FakeNodeMounter
- func (f *FakeNodeMounter) GetSafeFormatAndMount() *mount.SafeFormatAndMount
- func (f *FakeNodeMounter) MakeDir(pathname string) error
- func (f *FakeNodeMounter) MakeFile(pathname string) error
- func (*FakeNodeMounter) MountEITBasedFileShare(mountPath string, targetPath string, fsType string, requestID string) (string, error)
- func (f *FakeNodeMounter) PathExists(pathname string) (bool, error)
- func (f *FakeNodeMounter) Resize(devicePath string, deviceMountPath string) (bool, error)
- type FakeNodeMounterWithCustomActions
- func (f *FakeNodeMounterWithCustomActions) GetSafeFormatAndMount() *mount.SafeFormatAndMount
- func (f *FakeNodeMounterWithCustomActions) MakeDir(pathname string) error
- func (f *FakeNodeMounterWithCustomActions) MakeFile(pathname string) error
- func (*FakeNodeMounterWithCustomActions) MountEITBasedFileShare(mountPath string, targetPath string, fsType string, requestID string) (string, error)
- func (f *FakeNodeMounterWithCustomActions) PathExists(pathname string) (bool, error)
- func (f *FakeNodeMounterWithCustomActions) Resize(devicePath string, deviceMountPath string) (bool, error)
- type Mounter
- type NodeMounter
- func (m *NodeMounter) GetSafeFormatAndMount() *mount.SafeFormatAndMount
- func (m *NodeMounter) MakeDir(path string) error
- func (m *NodeMounter) MakeFile(path string) error
- func (m *NodeMounter) MountEITBasedFileShare(mountPath string, targetPath string, fsType string, requestID string) (string, error)
- func (m *NodeMounter) PathExists(path string) (bool, error)
- func (m *NodeMounter) Resize(devicePath string, deviceMountPath string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFakeSafeMounter ¶
func NewFakeSafeMounter() *mount.SafeFormatAndMount
NewFakeSafeMounter ...
func NewFakeSafeMounterWithCustomActions ¶ added in v1.1.2
func NewFakeSafeMounterWithCustomActions(actionList []testingexec.FakeCommandAction) *mount.SafeFormatAndMount
Types ¶
type FakeNodeMounter ¶
type FakeNodeMounter struct {
*mount.SafeFormatAndMount
}
FakeNodeMounter ...
func (*FakeNodeMounter) GetSafeFormatAndMount ¶ added in v1.1.2
func (f *FakeNodeMounter) GetSafeFormatAndMount() *mount.SafeFormatAndMount
GetSafeFormatAndMount returns the existing SafeFormatAndMount object of NodeMounter.
func (*FakeNodeMounter) MakeDir ¶
func (f *FakeNodeMounter) MakeDir(pathname string) error
MakeDir ...
func (*FakeNodeMounter) MakeFile ¶
func (f *FakeNodeMounter) MakeFile(pathname string) error
MakeFile ...
func (*FakeNodeMounter) MountEITBasedFileShare ¶ added in v1.1.12
func (*FakeNodeMounter) MountEITBasedFileShare(mountPath string, targetPath string, fsType string, requestID string) (string, error)
MountEITBasedFileShare implements Mounter.
func (*FakeNodeMounter) PathExists ¶
func (f *FakeNodeMounter) PathExists(pathname string) (bool, error)
PathExists ...
type FakeNodeMounterWithCustomActions ¶ added in v1.1.2
type FakeNodeMounterWithCustomActions struct { *mount.SafeFormatAndMount // contains filtered or unexported fields }
FakeNodeMounterWithCustomActions ...
func (*FakeNodeMounterWithCustomActions) GetSafeFormatAndMount ¶ added in v1.1.2
func (f *FakeNodeMounterWithCustomActions) GetSafeFormatAndMount() *mount.SafeFormatAndMount
NewSafeFormatAndMount ...
func (*FakeNodeMounterWithCustomActions) MakeDir ¶ added in v1.1.2
func (f *FakeNodeMounterWithCustomActions) MakeDir(pathname string) error
MakeDir ...
func (*FakeNodeMounterWithCustomActions) MakeFile ¶ added in v1.1.2
func (f *FakeNodeMounterWithCustomActions) MakeFile(pathname string) error
MakeFile ...
func (*FakeNodeMounterWithCustomActions) MountEITBasedFileShare ¶ added in v1.1.12
func (*FakeNodeMounterWithCustomActions) MountEITBasedFileShare(mountPath string, targetPath string, fsType string, requestID string) (string, error)
MountEITBasedFileShare implements Mounter.
func (*FakeNodeMounterWithCustomActions) PathExists ¶ added in v1.1.2
func (f *FakeNodeMounterWithCustomActions) PathExists(pathname string) (bool, error)
PathExists ...
type Mounter ¶
type Mounter interface { GetSafeFormatAndMount() *mount.SafeFormatAndMount MakeFile(path string) error MakeDir(path string) error PathExists(path string) (bool, error) Resize(string, string) (bool, error) // contains filtered or unexported methods }
Mounter is the interface implemented by Mounter
func NewFakeNodeMounterWithCustomActions ¶ added in v1.1.2
func NewFakeNodeMounterWithCustomActions(actionList []testingexec.FakeCommandAction) Mounter
NewFakeNodeMounterWithCustomActions ...
type NodeMounter ¶
type NodeMounter struct {
*mount.SafeFormatAndMount
}
NodeMounter implements Mounter. A superstruct of SafeFormatAndMount.
func (*NodeMounter) GetSafeFormatAndMount ¶ added in v1.1.2
func (m *NodeMounter) GetSafeFormatAndMount() *mount.SafeFormatAndMount
GetSafeFormatAndMount returns the existing SafeFormatAndMount object of NodeMounter.
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) MountEITBasedFileShare ¶ added in v1.1.12
func (m *NodeMounter) MountEITBasedFileShare(mountPath string, targetPath string, fsType string, requestID string) (string, error)
MountEITBasedFileShare mounts EIT based FileShare on host system
func (*NodeMounter) PathExists ¶
func (m *NodeMounter) PathExists(path string) (bool, error)
PathExists returns true if the specified path exists.