Documentation
¶
Index ¶
- type DeviceStats
- type IMount
- type Mount
- func (s *Mount) GetDevicePath(volumeID string) (string, error)
- func (s *Mount) GetDeviceStats(path string) (*DeviceStats, error)
- func (s *Mount) GetMountFs(volumePath string) ([]byte, error)
- func (s *Mount) IsLikelyNotMountPointAttach(targetPath string) (bool, error)
- func (s *Mount) MakeDir(pathname string) error
- func (s *Mount) MakeFile(pathname string) error
- func (s *Mount) Mounter() *mount.SafeFormatAndMount
- func (s *Mount) UnmountPath(mountPath string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeviceStats ¶
type IMount ¶
type IMount interface {
Mounter() *mount.SafeFormatAndMount
GetDeviceStats(path string) (*DeviceStats, error)
GetDevicePath(volumeID string) (string, error)
IsLikelyNotMountPointAttach(targetpath string) (bool, error)
UnmountPath(mountPath string) error
MakeFile(pathname string) error
MakeDir(pathname string) error
GetMountFs(path string) ([]byte, error)
}
func GetMountProvider ¶
func GetMountProvider() IMount
type Mount ¶
type Mount struct {
BaseMounter *mount.SafeFormatAndMount
}
func (*Mount) GetDeviceStats ¶
func (s *Mount) GetDeviceStats(path string) (*DeviceStats, error)
func (*Mount) IsLikelyNotMountPointAttach ¶
func (*Mount) UnmountPath ¶
Click to show internal directories.
Click to hide internal directories.