Documentation
¶
Index ¶
- type CPUCol
- type CompactCol
- func NewCIDCol() CompactCol
- func NewCPUCol() CompactCol
- func NewCpuScaledCol() CompactCol
- func NewCreatedCol() CompactCol
- func NewIOCol() CompactCol
- func NewImageCol() CompactCol
- func NewIpsCol() CompactCol
- func NewMemCol() CompactCol
- func NewNameCol() CompactCol
- func NewNetCol() CompactCol
- func NewPIDCol() CompactCol
- func NewPortsCol() CompactCol
- func NewStatus() CompactCol
- func NewUptimeCol() CompactCol
- type CompactGrid
- func (cg *CompactGrid) AddRows(rows ...RowBufferer)
- func (cg *CompactGrid) Align()
- func (cg *CompactGrid) Buffer() ui.Buffer
- func (cg *CompactGrid) Clear()
- func (cg *CompactGrid) GetHeight() int
- func (cg *CompactGrid) MaxRows() int
- func (cg *CompactGrid) SetWidth(w int)
- func (cg *CompactGrid) SetX(x int)
- func (cg *CompactGrid) SetY(y int)
- type CompactHeader
- type CompactRow
- func (row *CompactRow) Buffer() ui.Buffer
- func (row *CompactRow) GetHeight() int
- func (row *CompactRow) Highlight()
- func (row *CompactRow) Reset()
- func (row *CompactRow) SetMeta(m models.Meta)
- func (row *CompactRow) SetMetrics(m models.Metrics)
- func (row *CompactRow) SetWidths(totalWidth int, widths []int)
- func (row *CompactRow) SetY(y int)
- func (row *CompactRow) UnHighlight()
- type GaugeCol
- type IOCol
- type MemCol
- type MetaCol
- type NetCol
- type NewCompactColFn
- type PIDCol
- type RowBg
- type RowBufferer
- type Status
- type TextCol
- func (w *TextCol) FixedWidth() int
- func (w *TextCol) GrowPriority() int
- func (w *TextCol) Header() string
- func (w *TextCol) Highlight()
- func (w *TextCol) MaxWidth() int
- func (w *TextCol) MinWidth() int
- func (w *TextCol) Reset()
- func (w *TextCol) SetMeta(models.Meta)
- func (w *TextCol) SetMetrics(models.Metrics)
- func (w *TextCol) UnHighlight()
- type UptimeCol
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CPUCol ¶
type CPUCol struct {
*GaugeCol
// contains filtered or unexported fields
}
func (*CPUCol) SetMetrics ¶
type CompactCol ¶
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 ¶
func NewCIDCol() CompactCol
func NewCPUCol ¶
func NewCPUCol() CompactCol
func NewCpuScaledCol ¶
func NewCpuScaledCol() CompactCol
func NewCreatedCol ¶
func NewCreatedCol() CompactCol
func NewIOCol ¶
func NewIOCol() CompactCol
func NewImageCol ¶
func NewImageCol() CompactCol
func NewIpsCol ¶
func NewIpsCol() CompactCol
func NewMemCol ¶
func NewMemCol() CompactCol
func NewNameCol ¶
func NewNameCol() CompactCol
func NewNetCol ¶
func NewNetCol() CompactCol
func NewPIDCol ¶
func NewPIDCol() CompactCol
func NewPortsCol ¶
func NewPortsCol() CompactCol
func NewStatus ¶
func NewStatus() CompactCol
func NewUptimeCol ¶
func NewUptimeCol() 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 ¶
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 ¶
type CompactRow struct {
Bg *RowBg
Cols []CompactCol
X, Y int
Height int
// contains filtered or unexported fields
}
func NewCompactRow ¶
func NewCompactRow() *CompactRow
func (*CompactRow) Buffer ¶
func (row *CompactRow) Buffer() ui.Buffer
func (*CompactRow) GetHeight ¶
func (row *CompactRow) GetHeight() int
func (*CompactRow) Highlight ¶
func (row *CompactRow) Highlight()
func (*CompactRow) Reset ¶
func (row *CompactRow) Reset()
Set gauges, counters, etc. to default unread values
func (*CompactRow) SetMeta ¶
func (row *CompactRow) SetMeta(m models.Meta)
func (*CompactRow) SetMetrics ¶
func (row *CompactRow) SetMetrics(m models.Metrics)
func (*CompactRow) SetWidths ¶
func (row *CompactRow) SetWidths(totalWidth int, widths []int)
func (*CompactRow) SetY ¶
func (row *CompactRow) SetY(y int)
func (*CompactRow) UnHighlight ¶
func (row *CompactRow) UnHighlight()
type MetaCol ¶
type MetaCol struct {
*TextCol
// contains filtered or unexported fields
}
Column that shows container's meta property i.e. name, id, image tc.
type NewCompactColFn ¶
type NewCompactColFn func() CompactCol
type RowBg ¶
func (*RowBg) UnHighlight ¶
func (w *RowBg) UnHighlight()
type RowBufferer ¶
type Status ¶
Status indicator
func (*Status) FixedWidth ¶
func (*Status) SetMetrics ¶
func (*Status) UnHighlight ¶
func (s *Status) UnHighlight()
type TextCol ¶
func NewTextCol ¶
func (*TextCol) FixedWidth ¶
func (*TextCol) GrowPriority ¶ added in v0.1.16
func (*TextCol) SetMetrics ¶
func (*TextCol) UnHighlight ¶
func (w *TextCol) UnHighlight()
Click to show internal directories.
Click to hide internal directories.