fsinfo

package
v0.0.0-...-683b059 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2022 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Overview

Package fsinfo reports information about filesystems on behalf of tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	// Dev contains the underlying filesystem device, e.g. "/dev/root".
	Dev string
	// Type contains the filesystem type, e.g. "ext2".
	Type string
	// Used contains the number of used bytes.
	Used int64
	// Avail contains the number of available bytes.
	Avail int64
}

Info contains information about a filesystem.

func Get

func Get(ctx context.Context, mountPoint string) (*Info, error)

Get returns information about the filesystem mounted at mountPoint, e.g. "/".

Jump to

Keyboard shortcuts

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