hdd

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2022 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// EntityHDD ...
	EntityHDD = string("hdd")

	// AttrPath ...
	AttrPath = "path"

	// AttrFstype ...
	AttrFstype = "fstype"

	// AttrTotal ...
	AttrTotal = "total"

	// AttrFree ...
	AttrFree = "free"

	// AttrUsed ...
	AttrUsed = "used"

	// AttrUsedPercent ...
	AttrUsedPercent = "used_percent"

	// AttrInodesTotal ...
	AttrInodesTotal = "inodes_total"

	// AttrInodesUsed ...
	AttrInodesUsed = "inodes_used"

	// AttrInodesFree ...
	AttrInodesFree = "inodes_free"

	// AttrInodesUsedPercent ...
	AttrInodesUsedPercent = "inodes_sed_percent"

	// AttrMountPoint ...
	AttrMountPoint = "mount_point"

	// Name ...
	Name = "hdd"

	// EntityType ...
	EntityType = "hdd"
)

Variables

This section is empty.

Functions

func New

func New() plugins.Plugable

New ...

func NewAttr

func NewAttr() m.Attributes

NewAttr ...

func NewSettings

func NewSettings() map[string]*m.Attribute

NewSettings ...

Types

type Actor

type Actor struct {
	*entity_manager.BaseActor

	MountPoint string
	// contains filtered or unexported fields
}

Actor ...

func NewActor

func NewActor(entity *m.Entity,
	entityManager entity_manager.EntityManager,
	eventBus bus.Bus) *Actor

NewActor ...

func (*Actor) Spawn

func (e *Actor) Spawn() entity_manager.PluginActor

Spawn ...

Jump to

Keyboard shortcuts

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