dfinode

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2023 License: Unlicense Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FsmDeviceHeader = iota
	FsmDeviceBody
)
View Source
const (
	Name string = "Disk inodes"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

func New

func New() *Controller

func (*Controller) GetAverageAfter

func (c *Controller) GetAverageAfter(t time.Time) <-chan common.Sensor

func (*Controller) GetName

func (c *Controller) GetName() string

func (*Controller) Run

func (c *Controller) Run(ctx context.Context, wg *sync.WaitGroup)

func (*Controller) SetMaxM

func (c *Controller) SetMaxM(m int32)

type Disk

type Disk struct {
	Name  string
	IUsed int32
	IUse  int32
}

func (*Disk) Add

func (d *Disk) Add(a Disk)

func (*Disk) Div

func (d *Disk) Div(n int32)

type MDisks

type MDisks map[string]Disk

func (*MDisks) Add

func (d *MDisks) Add(a *MDisks)

func (*MDisks) Div

func (d *MDisks) Div(n int32)

type Sensor

type Sensor struct {
	Disks MDisks
}

func (*Sensor) Add

func (s *Sensor) Add(a *Sensor)

func (*Sensor) Div

func (s *Sensor) Div(n int32)

func (*Sensor) MakeResponse

func (s *Sensor) MakeResponse() *api.Responce

Jump to

Keyboard shortcuts

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