display

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2019 License: GPL-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsBlacklistedVersion added in v0.2.3

func IsBlacklistedVersion() error

IsBlacklistedVersion returns an error if the detected versions are bad (e.g., kernel so old it dies not support events2).

func NewDetailView

func NewDetailView() *detailView

func NewOverView

func NewOverView() *overView

Types

type Displayer

type Displayer interface {
	// The main loop for a displayer. Program exits when this function returns.
	Display(<-chan resource.Event, <-chan error)
}

Displayer provides information to the user via the screen, printing to a file, writing to the network, ect.

type FancyTUI

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

func NewFancyTUI

func NewFancyTUI(d time.Duration, expert bool) FancyTUI

func (*FancyTUI) Display

func (f *FancyTUI) Display(event <-chan resource.Event, err <-chan error)

func (*FancyTUI) SetVersion

func (f *FancyTUI) SetVersion(v string)

func (*FancyTUI) UpdateDisp

func (f *FancyTUI) UpdateDisp()

func (*FancyTUI) UpdateResources

func (f *FancyTUI) UpdateResources(event <-chan resource.Event, err <-chan error)

type UglyPrinter

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

UglyPrinter is the bare minimum screen printer.

func NewUglyPrinter

func NewUglyPrinter(d time.Duration) UglyPrinter

func (*UglyPrinter) Display

func (u *UglyPrinter) Display(event <-chan resource.Event, err <-chan error)

Display clears the screen and resource information in a loop.

Jump to

Keyboard shortcuts

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