fs

package
v1.4.5 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2021 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCapacity

func GetCapacity(ctx context.Context, device, filesystem string) (totalCapacity, freeCapacity uint64, err error)

GetCapacity returns total/free capacity from filesystem on device.

Types

type FS

type FS interface {
	ID() string
	Type() string
	TotalCapacity() uint64
	FreeCapacity() uint64
}

FS denotes filesystem interface.

func Probe

func Probe(ctx context.Context, device string) (fs FS, err error)

Probe detects and returns filesystem information of given device.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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