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
- 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
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
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 ¶
func NewGaugeCol ¶
func (*GaugeCol) FixedWidth ¶ added in v0.7.4
func (*GaugeCol) Highlight ¶ added in v0.7.2
func (w *GaugeCol) Highlight()
GaugeCol implements CompactCol
func (*GaugeCol) SetMetrics ¶ added in v0.7.4
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
type MemCol ¶ added in v0.7.4
type MemCol struct {
*GaugeCol
}
func (*MemCol) SetMetrics ¶ added in v0.7.4
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.
type NetCol ¶ added in v0.7.4
type NetCol struct {
*TextCol
}
func (*NetCol) SetMetrics ¶ added in v0.7.4
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
type RowBg ¶ added in v0.7.2
func (*RowBg) UnHighlight ¶ added in v0.7.2
func (w *RowBg) UnHighlight()
type RowBufferer ¶ added in v0.7.4
type Status ¶
Status indicator
func (*Status) FixedWidth ¶ added in v0.7.4
func (*Status) SetMetrics ¶ added in v0.7.4
func (*Status) UnHighlight ¶ added in v0.7.4
func (s *Status) UnHighlight()
type TextCol ¶
func NewTextCol ¶
func (*TextCol) FixedWidth ¶ added in v0.7.4
func (*TextCol) SetMetrics ¶ added in v0.7.4
func (*TextCol) UnHighlight ¶
func (w *TextCol) UnHighlight()
Click to show internal directories.
Click to hide internal directories.