Documentation ¶
Index ¶
- func GetBlockDeviceSize(path string) (int64, error)
- func IsBlockDevice(path string) (bool, error)
- type DeviceStats
- type IMount
- type NodeMount
- func (n *NodeMount) GetBlockSizeBytes(path string) (int64, error)
- func (n *NodeMount) GetDeviceStats(path string) (*DeviceStats, error)
- func (n *NodeMount) GetFsMount(path string) ([]byte, error)
- func (n *NodeMount) MakeDir(path string) error
- func (n *NodeMount) MakeFile(path string) error
- func (n *NodeMount) NewResizeFs() *mountutil.ResizeFs
- func (n *NodeMount) NodeFormatAndMount(devicePath string, targetPath string, fsType string, mountOptions []string) error
- func (n *NodeMount) UnmountPath(path string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBlockDeviceSize ¶
func IsBlockDevice ¶
Types ¶
type DeviceStats ¶
type IMount ¶
type IMount interface { mountutil.Interface NodeFormatAndMount(devicePath string, targetPath string, fsType string, mountOptions []string) error MakeFile(path string) error MakeDir(path string) error GetFsMount(path string) ([]byte, error) GetBlockSizeBytes(path string) (int64, error) UnmountPath(path string) error NewResizeFs() *mountutil.ResizeFs GetDeviceStats(path string) (*DeviceStats, error) }
func NewNodeMount ¶
func NewNodeMount() IMount
type NodeMount ¶
type NodeMount struct {
*mountutil.SafeFormatAndMount
}
func (*NodeMount) GetBlockSizeBytes ¶
func (*NodeMount) GetDeviceStats ¶
func (n *NodeMount) GetDeviceStats(path string) (*DeviceStats, error)
func (*NodeMount) NewResizeFs ¶
func (*NodeMount) NodeFormatAndMount ¶
func (*NodeMount) UnmountPath ¶
Click to show internal directories.
Click to hide internal directories.