Documentation
¶
Index ¶
- type MountOptions
- type Mounter
- func (m *Mounter) FindDevice(path string) (string, error)
- func (m *Mounter) FindMountPoint(path string) (mount.MountPoint, error)
- func (m *Mounter) FormatAndMount(source, target, fsType string, opts MountOptions) error
- func (m *Mounter) GetStatistics(path string) (VolumeStatistics, error)
- func (m *Mounter) IsMounted(target string) (bool, error)
- func (m *Mounter) Mount(source, target, fsType string, opts MountOptions) error
- func (m *Mounter) Resize(path string) error
- func (m *Mounter) Unmount(target string) error
- type VolumeStatistics
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MountOptions ¶
type MountOptions int
const ( MountOptionsDefault MountOptions = iota MountOptionsBind MountOptionsBlock )
type Mounter ¶
type Mounter struct {
// contains filtered or unexported fields
}
func NewMounter ¶
func NewMounter() *Mounter
func (*Mounter) FindMountPoint ¶
func (m *Mounter) FindMountPoint(path string) (mount.MountPoint, error)
func (*Mounter) FormatAndMount ¶ added in v1.1.1
func (m *Mounter) FormatAndMount(source, target, fsType string, opts MountOptions) error
func (*Mounter) GetStatistics ¶ added in v1.1.6
func (m *Mounter) GetStatistics(path string) (VolumeStatistics, error)
type VolumeStatistics ¶ added in v1.1.6
Click to show internal directories.
Click to hide internal directories.