fs

package
v1.1.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 15, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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) FindDevice

func (m *Mounter) FindDevice(path string) (string, error)

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)

func (*Mounter) IsMounted

func (m *Mounter) IsMounted(target string) (bool, error)

func (*Mounter) Mount

func (m *Mounter) Mount(source, target, fsType string, opts MountOptions) error

func (*Mounter) Resize

func (m *Mounter) Resize(path string) error

func (*Mounter) Unmount

func (m *Mounter) Unmount(target string) error

type VolumeStatistics added in v1.1.6

type VolumeStatistics struct {
	AvailableBytes, TotalBytes, UsedBytes    int64
	AvailableInodes, TotalInodes, UsedInodes int64
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL