Documentation ¶
Index ¶
- type DeviceStats
- type IMount
- type Mount
- func (m *Mount) GetDevicePath(volumeID string) (string, error)
- func (m *Mount) GetDeviceStats(path string) (*DeviceStats, error)
- func (m *Mount) GetMountFs(volumePath string) ([]byte, error)
- func (m *Mount) IsLikelyNotMountPointAttach(targetpath string) (bool, error)
- func (m *Mount) MakeDir(pathname string) error
- func (m *Mount) MakeFile(pathname string) error
- func (m *Mount) Mounter() *mount.SafeFormatAndMount
- func (m *Mount) ScanForAttach(devicePath string) error
- func (m *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 ScanForAttach(devicePath string) error GetDevicePath(volumeID string) (string, error) IsLikelyNotMountPointAttach(targetpath string) (bool, error) UnmountPath(mountPath string) error MakeFile(pathname string) error MakeDir(pathname string) error GetDeviceStats(path string) (*DeviceStats, error) GetMountFs(path string) ([]byte, error) }
type Mount ¶
type Mount struct {
BaseMounter *mount.SafeFormatAndMount
}
func (*Mount) GetDevicePath ¶
GetDevicePath returns the path of an attached block storage volume, specified by its id.
func (*Mount) GetDeviceStats ¶
func (m *Mount) GetDeviceStats(path string) (*DeviceStats, error)
func (*Mount) IsLikelyNotMountPointAttach ¶
IsLikelyNotMountPointAttach
Click to show internal directories.
Click to hide internal directories.