compact

package
v0.7.6 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2021 License: MIT Imports: 6 Imported by: 21

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CPUCol added in v0.7.4

type CPUCol struct {
	*GaugeCol
	// contains filtered or unexported fields
}

func (*CPUCol) SetMetrics added in v0.7.4

func (w *CPUCol) SetMetrics(m models.Metrics)

type CompactCol added in v0.7.4

type CompactCol interface {
	ui.GridBufferer
	Reset()
	Header() string  // header text to display for column
	FixedWidth() int // fixed width size. if == 0, width is automatically calculated
	Highlight()
	UnHighlight()
	SetMeta(models.Meta)
	SetMetrics(models.Metrics)
}

func NewCIDCol added in v0.7.4

func NewCIDCol() CompactCol

func NewCPUCol added in v0.7.4

func NewCPUCol() CompactCol

func NewCpuScaledCol added in v0.7.6

func NewCpuScaledCol() CompactCol

func NewCreatedCol added in v0.7.6

func NewCreatedCol() CompactCol

func NewIOCol added in v0.7.4

func NewIOCol() CompactCol

func NewImageCol added in v0.7.6

func NewImageCol() CompactCol

func NewIpsCol added in v0.7.6

func NewIpsCol() CompactCol

func NewMemCol added in v0.7.4

func NewMemCol() CompactCol

func NewNameCol added in v0.7.4

func NewNameCol() CompactCol

func NewNetCol added in v0.7.4

func NewNetCol() CompactCol

func NewPIDCol added in v0.7.4

func NewPIDCol() CompactCol

func NewPortsCol added in v0.7.6

func NewPortsCol() CompactCol

func NewStatus

func NewStatus() CompactCol

type CompactGrid

type CompactGrid struct {
	ui.GridBufferer

	Rows   []RowBufferer
	X, Y   int
	Width  int
	Height int
	Offset int // starting row offset
	// contains filtered or unexported fields
}

func NewCompactGrid

func NewCompactGrid() *CompactGrid

func (*CompactGrid) AddRows

func (cg *CompactGrid) AddRows(rows ...RowBufferer)

func (*CompactGrid) Align

func (cg *CompactGrid) Align()

func (*CompactGrid) Buffer

func (cg *CompactGrid) Buffer() ui.Buffer

func (*CompactGrid) Clear

func (cg *CompactGrid) Clear()

func (*CompactGrid) GetHeight

func (cg *CompactGrid) GetHeight() int

func (*CompactGrid) MaxRows

func (cg *CompactGrid) MaxRows() int

func (*CompactGrid) SetWidth

func (cg *CompactGrid) SetWidth(w int)

func (*CompactGrid) SetX

func (cg *CompactGrid) SetX(x int)

func (*CompactGrid) SetY

func (cg *CompactGrid) SetY(y int)

type CompactHeader

type CompactHeader struct {
	X, Y   int
	Width  int
	Height int
	// contains filtered or unexported fields
}

func NewCompactHeader

func NewCompactHeader() *CompactHeader

func (*CompactHeader) Buffer

func (row *CompactHeader) Buffer() ui.Buffer

func (*CompactHeader) GetHeight

func (row *CompactHeader) GetHeight() int

func (*CompactHeader) SetWidths added in v0.7.4

func (row *CompactHeader) SetWidths(totalWidth int, widths []int)

func (*CompactHeader) SetX

func (row *CompactHeader) SetX(x int)

func (*CompactHeader) SetY

func (row *CompactHeader) SetY(y int)

type CompactRow added in v0.7.4

type CompactRow struct {
	Bg     *RowBg
	Cols   []CompactCol
	X, Y   int
	Height int
	// contains filtered or unexported fields
}

func NewCompactRow added in v0.7.4

func NewCompactRow() *CompactRow

func (*CompactRow) Buffer added in v0.7.4

func (row *CompactRow) Buffer() ui.Buffer

func (*CompactRow) GetHeight added in v0.7.4

func (row *CompactRow) GetHeight() int

func (*CompactRow) Highlight added in v0.7.4

func (row *CompactRow) Highlight()

func (*CompactRow) Reset added in v0.7.4

func (row *CompactRow) Reset()

Set gauges, counters, etc. to default unread values

func (*CompactRow) SetMeta added in v0.7.4

func (row *CompactRow) SetMeta(m models.Meta)

func (*CompactRow) SetMetrics added in v0.7.4

func (row *CompactRow) SetMetrics(m models.Metrics)

func (*CompactRow) SetWidths added in v0.7.4

func (row *CompactRow) SetWidths(totalWidth int, widths []int)

func (*CompactRow) SetY added in v0.7.4

func (row *CompactRow) SetY(y int)

func (*CompactRow) UnHighlight added in v0.7.4

func (row *CompactRow) UnHighlight()

type GaugeCol

type GaugeCol struct {
	*ui.Gauge
	// contains filtered or unexported fields
}

func NewGaugeCol

func NewGaugeCol(header string) *GaugeCol

func (*GaugeCol) Buffer added in v0.7.4

func (w *GaugeCol) Buffer() ui.Buffer

func (*GaugeCol) FixedWidth added in v0.7.4

func (w *GaugeCol) FixedWidth() int

func (*GaugeCol) Header added in v0.7.4

func (w *GaugeCol) Header() string

func (*GaugeCol) Highlight added in v0.7.2

func (w *GaugeCol) Highlight()

GaugeCol implements CompactCol

func (*GaugeCol) Reset

func (w *GaugeCol) Reset()

func (*GaugeCol) SetMeta added in v0.7.4

func (w *GaugeCol) SetMeta(models.Meta)

GaugeCol implements CompactCol

func (*GaugeCol) SetMetrics added in v0.7.4

func (w *GaugeCol) SetMetrics(models.Metrics)

func (*GaugeCol) UnHighlight added in v0.7.2

func (w *GaugeCol) UnHighlight()

GaugeCol implements CompactCol

type IOCol added in v0.7.4

type IOCol struct {
	*TextCol
}

func (*IOCol) SetMetrics added in v0.7.4

func (w *IOCol) SetMetrics(m models.Metrics)

type MemCol added in v0.7.4

type MemCol struct {
	*GaugeCol
}

func (*MemCol) SetMetrics added in v0.7.4

func (w *MemCol) SetMetrics(m models.Metrics)

type MetaCol added in v0.7.6

type MetaCol struct {
	*TextCol
	// contains filtered or unexported fields
}

Column that shows container's meta property i.e. name, id, image tc.

func (*MetaCol) SetMeta added in v0.7.6

func (w *MetaCol) SetMeta(m models.Meta)

type NetCol added in v0.7.4

type NetCol struct {
	*TextCol
}

func (*NetCol) SetMetrics added in v0.7.4

func (w *NetCol) SetMetrics(m models.Metrics)

type NewCompactColFn added in v0.7.4

type NewCompactColFn func() CompactCol

type PIDCol added in v0.7.4

type PIDCol struct {
	*TextCol
}

func (*PIDCol) SetMetrics added in v0.7.4

func (w *PIDCol) SetMetrics(m models.Metrics)

type RowBg added in v0.7.2

type RowBg struct {
	*ui.Par
}

func NewRowBg added in v0.7.2

func NewRowBg() *RowBg

func (*RowBg) Highlight added in v0.7.2

func (w *RowBg) Highlight()

func (*RowBg) UnHighlight added in v0.7.2

func (w *RowBg) UnHighlight()

type RowBufferer added in v0.7.4

type RowBufferer interface {
	SetY(int)
	SetWidths(int, []int)
	GetHeight() int
	Buffer() ui.Buffer
}

type Status

type Status struct {
	*ui.Block
	// contains filtered or unexported fields
}

Status indicator

func (*Status) Buffer added in v0.7.1

func (s *Status) Buffer() ui.Buffer

func (*Status) FixedWidth added in v0.7.4

func (s *Status) FixedWidth() int

func (*Status) Header added in v0.7.4

func (s *Status) Header() string

func (*Status) Highlight added in v0.7.4

func (s *Status) Highlight()

func (*Status) Reset added in v0.7.4

func (s *Status) Reset()

Status implements CompactCol

func (*Status) SetMeta added in v0.7.4

func (s *Status) SetMeta(m models.Meta)

func (*Status) SetMetrics added in v0.7.4

func (s *Status) SetMetrics(models.Metrics)

func (*Status) UnHighlight added in v0.7.4

func (s *Status) UnHighlight()

type TextCol

type TextCol struct {
	*ui.Par
	// contains filtered or unexported fields
}

func NewTextCol

func NewTextCol(header string) *TextCol

func (*TextCol) FixedWidth added in v0.7.4

func (w *TextCol) FixedWidth() int

func (*TextCol) Header added in v0.7.4

func (w *TextCol) Header() string

func (*TextCol) Highlight

func (w *TextCol) Highlight()

func (*TextCol) Reset

func (w *TextCol) Reset()

TextCol implements CompactCol

func (*TextCol) SetMeta added in v0.7.4

func (w *TextCol) SetMeta(models.Meta)

func (*TextCol) SetMetrics added in v0.7.4

func (w *TextCol) SetMetrics(models.Metrics)

func (*TextCol) UnHighlight

func (w *TextCol) UnHighlight()

Jump to

Keyboard shortcuts

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