swap

package
v1.4.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Swap

type Swap struct{}

Swap denotes swap filesystem.

func Probe

func Probe(reader io.Reader) (*Swap, error)

Probe tries to probe swap filesystem.

func (*Swap) FreeCapacity

func (swap *Swap) FreeCapacity() uint64

FreeCapacity returns zero.

func (*Swap) ID

func (swap *Swap) ID() string

ID returns empty string.

func (*Swap) TotalCapacity

func (swap *Swap) TotalCapacity() uint64

TotalCapacity returns zero.

func (*Swap) Type

func (swap *Swap) Type() string

Type returns "linux-swap".

Jump to

Keyboard shortcuts

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