godock: github.com/sqp/godock/services/DiskFree Index | Files

package DiskFree

import "github.com/sqp/godock/services/DiskFree"

Package DiskFree is a monitoring applet for Cairo-Dock.

Show disk usage for mounted partitions. Partitions can be autodetected or you can provide a list of partitions. You can also use autodetect with some partitions names to be listed first.

Partitions names are designed by their mount point like / or /home. Use the df command to know your partitions list.

Index

Package Files

DiskFree.go config.go

func NewApplet Uses

func NewApplet(base cdtype.AppBase, events *cdtype.Events) cdtype.AppInstance

NewApplet creates a new applet instance.

type Applet Uses

type Applet struct {
    cdtype.AppBase // Applet base and dock connection.
    // contains filtered or unexported fields
}

Applet defines a dock applet.

func (*Applet) Init Uses

func (app *Applet) Init(def *cdtype.Defaults, confLoaded bool)

Init loads user configuration if needed and initialise applet.

type DiskFree Uses

type DiskFree struct {
    sysinfo.RenderPercent
    // contains filtered or unexported fields
}

DiskFree is a data poller for disk usage monitoring.

func (*DiskFree) Check Uses

func (disks *DiskFree) Check()

Check updates disk usage information from the system.

func (*DiskFree) SetParts Uses

func (disks *DiskFree) SetParts(parts []string, autoDetect bool)

SetParts sets the user monitored pertitions.

Package DiskFree imports 3 packages (graph) and is imported by 1 packages. Updated 2016-09-13. Refresh now. Tools for package owners.