mount

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMountByMountpoint

func GetMountByMountpoint(mountPoint string) (*mountinfo.Info, error)

func GetMountBySource

func GetMountBySource(source string) (*mountinfo.Info, error)

func IsMountedSource

func IsMountedSource(source string) (bool, error)

func ListMounts

func ListMounts() ([]*mountinfo.Info, error)

func Mount

func Mount(ctx context.Context, fsType string, source string, target string, readOnly bool) error

func Unmount

func Unmount(ctx context.Context, target string) error

Types

type FileSystemStats added in v0.3.0

type FileSystemStats struct {
	TotalSize int64
	FreeSize  int64
}

func StatFS added in v0.3.0

func StatFS(mountDir string) (*FileSystemStats, error)

Jump to

Keyboard shortcuts

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