SYMBOL INDEX (515 symbols across 60 files) FILE: colors.go function InvertColorMap (line 53) | func InvertColorMap() { FILE: config/columns.go type Column (line 81) | type Column struct function ColumnsString (line 88) | func ColumnsString() string { return strings.Join(EnabledColumns(), ",") } function EnabledColumns (line 91) | func EnabledColumns() (a []string) { function ColumnToggle (line 103) | func ColumnToggle(name string) { function ColumnLeft (line 110) | func ColumnLeft(name string) { function ColumnRight (line 118) | func ColumnRight(name string) { function SetColumns (line 126) | func SetColumns(names []string) { function swapCols (line 155) | func swapCols(i, j int) { GlobalColumns[i], GlobalColumns[j] = GlobalCol... function popColumn (line 157) | func popColumn(name string) *Column { function colIndex (line 168) | func colIndex(name string) int { FILE: config/file.go type File (line 17) | type File struct function exportConfig (line 22) | func exportConfig() File { function Read (line 45) | func Read() error { function Write (line 79) | func Write() (path string, err error) { function getConfigPath (line 116) | func getConfigPath() (path string, err error) { function xdgSupport (line 137) | func xdgSupport() bool { FILE: config/main.go function Init (line 19) | func Init() { function quote (line 35) | func quote(s string) string { function getEnv (line 40) | func getEnv(key, defaultVal string) string { FILE: config/param.go type Param (line 22) | type Param struct function Get (line 29) | func Get(k string) *Param { function GetVal (line 42) | func GetVal(k string) string { function Update (line 47) | func Update(k, v string) { FILE: config/switch.go type Switch (line 27) | type Switch struct function GetSwitch (line 34) | func GetSwitch(k string) *Switch { function GetSwitchVal (line 47) | func GetSwitchVal(k string) bool { function UpdateSwitch (line 51) | func UpdateSwitch(k string, val bool) { function Toggle (line 64) | func Toggle(k string) { FILE: connector/collector/docker.go type Docker (line 9) | type Docker struct method Start (line 28) | func (c *Docker) Start() { method Running (line 60) | func (c *Docker) Running() bool { method Stream (line 64) | func (c *Docker) Stream() chan models.Metrics { method Logs (line 68) | func (c *Docker) Logs() LogCollector { method Stop (line 73) | func (c *Docker) Stop() { method ReadCPU (line 78) | func (c *Docker) ReadCPU(stats *api.Stats) { method ReadMem (line 96) | func (c *Docker) ReadMem(stats *api.Stats) { method ReadNet (line 102) | func (c *Docker) ReadNet(stats *api.Stats) { method ReadIO (line 111) | func (c *Docker) ReadIO(stats *api.Stats) { function NewDocker (line 20) | func NewDocker(client *api.Client, id string) *Docker { FILE: connector/collector/docker_logs.go type DockerLogs (line 14) | type DockerLogs struct method Stream (line 28) | func (l *DockerLogs) Stream() chan models.Log { method Stop (line 80) | func (l *DockerLogs) Stop() { l.done <- true } method parseTime (line 82) | func (l *DockerLogs) parseTime(s string) time.Time { method stripPfx (line 99) | func (l *DockerLogs) stripPfx(s string) string { function NewDockerLogs (line 20) | func NewDockerLogs(id string, client *api.Client) *DockerLogs { FILE: connector/collector/main.go type LogCollector (line 12) | type LogCollector interface type Collector (line 17) | type Collector interface function round (line 25) | func round(num float64) int { function percent (line 30) | func percent(val float64, total float64) int { FILE: connector/collector/mock.go type Mock (line 14) | type Mock struct method Running (line 31) | func (c *Mock) Running() bool { method Start (line 35) | func (c *Mock) Start() { method Stop (line 41) | func (c *Mock) Stop() { method Stream (line 46) | func (c *Mock) Stream() chan models.Metrics { method Logs (line 50) | func (c *Mock) Logs() LogCollector { method run (line 54) | func (c *Mock) run() { function NewMock (line 22) | func NewMock(a int64) *Mock { FILE: connector/collector/mock_logs.go constant mockLog (line 9) | mockLog = "Cura ob pro qui tibi inveni dum qua fit donec amare illic mea... type MockLogs (line 11) | type MockLogs struct method Stream (line 15) | func (l *MockLogs) Stream() chan models.Log { method Stop (line 31) | func (l *MockLogs) Stop() { l.done <- true } FILE: connector/collector/proc.go constant clockTicksPerSecond (line 13) | clockTicksPerSecond uint64 = 100 constant nanoSecondsPerSecond (line 14) | nanoSecondsPerSecond = 1e9 function getSysMemTotal (line 17) | func getSysMemTotal() int64 { function getSysCPUUsage (line 27) | func getSysCPUUsage() uint64 { FILE: connector/collector/runc.go type Runc (line 17) | type Runc struct method Running (line 39) | func (c *Runc) Running() bool { method Start (line 43) | func (c *Runc) Start() { method Stop (line 49) | func (c *Runc) Stop() { method Stream (line 54) | func (c *Runc) Stream() chan models.Metrics { method Logs (line 58) | func (c *Runc) Logs() LogCollector { method run (line 62) | func (c *Runc) run() { method ReadCPU (line 88) | func (c *Runc) ReadCPU(stats *cgroups.Stats) { method ReadMem (line 104) | func (c *Runc) ReadMem(stats *cgroups.Stats) { method ReadNet (line 113) | func (c *Runc) ReadNet(interfaces []*types.NetworkInterface) { method ReadIO (line 122) | func (c *Runc) ReadIO(stats *cgroups.Stats) { function NewRunc (line 29) | func NewRunc(libc libcontainer.Container) *Runc { FILE: connector/docker.go function init (line 18) | func init() { enabled["docker"] = NewDocker } type StatusUpdate (line 28) | type StatusUpdate struct type Docker (line 34) | type Docker struct method Wait (line 78) | func (cm *Docker) Wait() struct{} { return <-cm.closed } method watchEvents (line 81) | func (cm *Docker) watchEvents() { method refresh (line 173) | func (cm *Docker) refresh(c *container.Container) { method inspect (line 198) | func (cm *Docker) inspect(id string) (insp *api.Container, found bool,... method refreshAll (line 221) | func (cm *Docker) refreshAll() { method Loop (line 237) | func (cm *Docker) Loop() { method LoopStatuses (line 249) | func (cm *Docker) LoopStatuses() { method MustGet (line 268) | func (cm *Docker) MustGet(id string) *container.Container { method Get (line 286) | func (cm *Docker) Get(id string) (*container.Container, bool) { method delByID (line 294) | func (cm *Docker) delByID(id string) { method All (line 302) | func (cm *Docker) All() (containers container.Containers) { function NewDocker (line 43) | func NewDocker() (Connector, error) { function portsFormat (line 127) | func portsFormat(ports map[api.Port][]api.PortBinding) string { function webPort (line 145) | func webPort(ports map[api.Port][]api.PortBinding) string { function ipsFormat (line 162) | func ipsFormat(networks map[string]api.ContainerNetwork) string { function calcUptime (line 211) | func calcUptime(insp *api.Container) string { function shortName (line 315) | func shortName(name string) string { FILE: connector/main.go type ConnectorFn (line 18) | type ConnectorFn type Connector (line 20) | type Connector interface type ConnectorSuper (line 31) | type ConnectorSuper struct method Get (line 49) | func (cs *ConnectorSuper) Get() (Connector, error) { method setError (line 58) | func (cs *ConnectorSuper) setError(err error) { method loop (line 64) | func (cs *ConnectorSuper) loop() { function NewConnectorSuper (line 38) | func NewConnectorSuper(connFn ConnectorFn) *ConnectorSuper { function Enabled (line 89) | func Enabled() (a []string) { function ByName (line 99) | func ByName(s string) (*ConnectorSuper, error) { FILE: connector/manager/docker.go type Docker (line 11) | type Docker struct method Exec (line 83) | func (dc *Docker) Exec(cmd []string) error { method Start (line 105) | func (dc *Docker) Start() error { method Stop (line 117) | func (dc *Docker) Stop() error { method Remove (line 124) | func (dc *Docker) Remove() error { method Pause (line 131) | func (dc *Docker) Pause() error { method Unpause (line 138) | func (dc *Docker) Unpause() error { method Restart (line 145) | func (dc *Docker) Restart() error { function NewDocker (line 16) | func NewDocker(client *api.Client, id string) *Docker { type noClosableReader (line 24) | type noClosableReader struct method Read (line 28) | func (w *noClosableReader) Read(p []byte) (n int, err error) { constant STDIN (line 33) | STDIN = 0 constant STDOUT (line 34) | STDOUT = 1 constant STDERR (line 35) | STDERR = 2 type frameWriter (line 48) | type frameWriter struct method Write (line 54) | func (w *frameWriter) Write(p []byte) (n int, err error) { FILE: connector/manager/main.go type Manager (line 7) | type Manager interface FILE: connector/manager/mock.go type Mock (line 3) | type Mock struct method Start (line 9) | func (m *Mock) Start() error { method Stop (line 13) | func (m *Mock) Stop() error { method Remove (line 17) | func (m *Mock) Remove() error { method Pause (line 21) | func (m *Mock) Pause() error { method Unpause (line 25) | func (m *Mock) Unpause() error { method Restart (line 29) | func (m *Mock) Restart() error { method Exec (line 33) | func (m *Mock) Exec(cmd []string) error { function NewMock (line 5) | func NewMock() *Mock { FILE: connector/manager/runc.go type Runc (line 3) | type Runc struct method Start (line 9) | func (rc *Runc) Start() error { method Stop (line 13) | func (rc *Runc) Stop() error { method Remove (line 17) | func (rc *Runc) Remove() error { method Pause (line 21) | func (rc *Runc) Pause() error { method Unpause (line 25) | func (rc *Runc) Unpause() error { method Restart (line 29) | func (rc *Runc) Restart() error { method Exec (line 33) | func (rc *Runc) Exec(cmd []string) error { function NewRunc (line 5) | func NewRunc() *Runc { FILE: connector/mock.go function init (line 18) | func init() { enabled["mock"] = NewMock } type Mock (line 20) | type Mock struct method Init (line 32) | func (cs *Mock) Init() { method Wait (line 45) | func (cs *Mock) Wait() struct{} { method makeContainer (line 56) | func (cs *Mock) makeContainer(aggression int64, health bool) { method Loop (line 79) | func (cs *Mock) Loop() { method Get (line 93) | func (cs *Mock) Get(id string) (*container.Container, bool) { method All (line 103) | func (cs *Mock) All() container.Containers { method delByID (line 110) | func (cs *Mock) delByID(id string) { method del (line 120) | func (cs *Mock) del(idx ...int) { function NewMock (line 24) | func NewMock() (Connector, error) { function makeID (line 127) | func makeID() string { function makeName (line 135) | func makeName() string { function makeState (line 147) | func makeState() string { FILE: connector/runc.go function init (line 20) | func init() { enabled["runc"] = NewRunc } type RuncOpts (line 22) | type RuncOpts struct function NewRuncOpts (line 27) | func NewRuncOpts() (RuncOpts, error) { type Runc (line 52) | type Runc struct method GetLibc (line 97) | func (cm *Runc) GetLibc(id string) libcontainer.Container { method refresh (line 118) | func (cm *Runc) refresh(id string) { method refreshAll (line 151) | func (cm *Runc) refreshAll() { method Loop (line 178) | func (cm *Runc) Loop() { method MustGet (line 185) | func (cm *Runc) MustGet(id string) *container.Container { method delByID (line 216) | func (cm *Runc) delByID(id string) { method Wait (line 225) | func (cm *Runc) Wait() struct{} { return <-cm.closed } method Get (line 228) | func (cm *Runc) Get(id string) (*container.Container, bool) { method All (line 236) | func (cm *Runc) All() (containers container.Containers) { function NewRunc (line 62) | func NewRunc() (Connector, error) { FILE: container/main.go constant running (line 17) | running = "running" type Container (line 21) | type Container struct method RecreateWidgets (line 49) | func (c *Container) RecreateWidgets() { method SetUpdater (line 55) | func (c *Container) SetUpdater(u cwidgets.WidgetUpdater) { method SetMeta (line 60) | func (c *Container) SetMeta(k, v string) { method GetMeta (line 65) | func (c *Container) GetMeta(k string) string { method SetState (line 69) | func (c *Container) SetState(s string) { method Logs (line 83) | func (c *Container) Logs() collector.LogCollector { method Read (line 88) | func (c *Container) Read(stream chan models.Metrics) { method Start (line 101) | func (c *Container) Start() { method Stop (line 112) | func (c *Container) Stop() { method Remove (line 123) | func (c *Container) Remove() { method Pause (line 130) | func (c *Container) Pause() { method Unpause (line 141) | func (c *Container) Unpause() { method Restart (line 152) | func (c *Container) Restart() { method Exec (line 162) | func (c *Container) Exec(cmd []string) error { function New (line 32) | func New(id string, collector collector.Collector, manager manager.Manag... FILE: container/sort.go type sortMethod (line 11) | type sortMethod function SortFields (line 93) | func SortFields() (fields []string) { type Containers (line 100) | type Containers method Sort (line 102) | func (a Containers) Sort() { sort.Sort(a) } method Len (line 103) | func (a Containers) Len() int { return len(a) } method Swap (line 104) | func (a Containers) Swap(i, j int) { a[i], a[j] = a[j], a[i] } method Less (line 105) | func (a Containers) Less(i, j int) bool { method Filter (line 113) | func (a Containers) Filter() { function sumNet (line 130) | func sumNet(c *Container) int64 { return c.NetRx + c.NetTx } function sumIO (line 132) | func sumIO(c *Container) int64 { return c.IOBytesRead + c.IOBytesWrite } FILE: cursor.go type GridCursor (line 11) | type GridCursor struct method Len (line 18) | func (gc *GridCursor) Len() int { return len(gc.filtered) } method Selected (line 20) | func (gc *GridCursor) Selected() *container.Container { method RefreshContainers (line 30) | func (gc *GridCursor) RefreshContainers() (bool, error) { method Reset (line 58) | func (gc *GridCursor) Reset() { method Idx (line 74) | func (gc *GridCursor) Idx() int { method ScrollPage (line 84) | func (gc *GridCursor) ScrollPage() { method Up (line 106) | func (gc *GridCursor) Up() { method Down (line 125) | func (gc *GridCursor) Down() { method PgUp (line 144) | func (gc *GridCursor) PgUp() { method PgDown (line 167) | func (gc *GridCursor) PgDown() { method pgCount (line 191) | func (gc *GridCursor) pgCount() int { FILE: cwidgets/compact/column.go type NewCompactColFn (line 29) | type NewCompactColFn function newRowWidgets (line 31) | func newRowWidgets() []CompactCol { type CompactCol (line 46) | type CompactCol interface FILE: cwidgets/compact/gauge.go type CPUCol (line 12) | type CPUCol struct method SetMetrics (line 25) | func (w *CPUCol) SetMetrics(m models.Metrics) { function NewCPUCol (line 17) | func NewCPUCol() CompactCol { function NewCpuScaledCol (line 21) | func NewCpuScaledCol() CompactCol { type MemCol (line 39) | type MemCol struct method SetMetrics (line 47) | func (w *MemCol) SetMetrics(m models.Metrics) { function NewMemCol (line 43) | func NewMemCol() CompactCol { type GaugeCol (line 53) | type GaugeCol struct method Reset (line 68) | func (w *GaugeCol) Reset() { method Buffer (line 73) | func (w *GaugeCol) Buffer() ui.Buffer { method SetMeta (line 85) | func (w *GaugeCol) SetMeta(models.Meta) {} method SetMetrics (line 86) | func (w *GaugeCol) SetMetrics(models.Metrics) {} method Header (line 87) | func (w *GaugeCol) Header() string { return w.header } method FixedWidth (line 88) | func (w *GaugeCol) FixedWidth() int { return w.fWidth } method Highlight (line 91) | func (w *GaugeCol) Highlight() { method UnHighlight (line 97) | func (w *GaugeCol) UnHighlight() { function NewGaugeCol (line 59) | func NewGaugeCol(header string) *GaugeCol { function colorScale (line 102) | func colorScale(n int) ui.Attribute { FILE: cwidgets/compact/grid.go type CompactGrid (line 7) | type CompactGrid struct method Align (line 24) | func (cg *CompactGrid) Align() { method Clear (line 40) | func (cg *CompactGrid) Clear() { method GetHeight (line 45) | func (cg *CompactGrid) GetHeight() int { return len(cg.Rows) + cg.head... method SetX (line 46) | func (cg *CompactGrid) SetX(x int) { cg.X = x } method SetY (line 47) | func (cg *CompactGrid) SetY(y int) { cg.Y = y } method SetWidth (line 48) | func (cg *CompactGrid) SetWidth(w int) { cg.Width = w } method MaxRows (line 49) | func (cg *CompactGrid) MaxRows() int { return ui.TermHeight() - cg.h... method calcWidths (line 52) | func (cg *CompactGrid) calcWidths() []int { method pageRows (line 75) | func (cg *CompactGrid) pageRows() (rows []RowBufferer) { method Buffer (line 81) | func (cg *CompactGrid) Buffer() ui.Buffer { method AddRows (line 89) | func (cg *CompactGrid) AddRows(rows ...RowBufferer) { method rebuildHeader (line 93) | func (cg *CompactGrid) rebuildHeader() { function NewCompactGrid (line 18) | func NewCompactGrid() *CompactGrid { FILE: cwidgets/compact/header.go type CompactHeader (line 7) | type CompactHeader struct method GetHeight (line 23) | func (row *CompactHeader) GetHeight() int { method SetWidths (line 27) | func (row *CompactHeader) SetWidths(totalWidth int, widths []int) { method SetX (line 38) | func (row *CompactHeader) SetX(x int) { method SetY (line 42) | func (row *CompactHeader) SetY(y int) { method Buffer (line 49) | func (row *CompactHeader) Buffer() ui.Buffer { method clearFieldPars (line 57) | func (row *CompactHeader) clearFieldPars() { method addFieldPar (line 61) | func (row *CompactHeader) addFieldPar(s string) { function NewCompactHeader (line 16) | func NewCompactHeader() *CompactHeader { FILE: cwidgets/compact/row.go constant rowPadding (line 11) | rowPadding = 1 type RowBufferer (line 15) | type RowBufferer interface type CompactRow (line 22) | type CompactRow struct method SetMeta (line 41) | func (row *CompactRow) SetMeta(m models.Meta) { method SetMetrics (line 47) | func (row *CompactRow) SetMetrics(m models.Metrics) { method Reset (line 54) | func (row *CompactRow) Reset() { method GetHeight (line 60) | func (row *CompactRow) GetHeight() int { return row.Height } method SetY (line 64) | func (row *CompactRow) SetY(y int) { method SetWidths (line 76) | func (row *CompactRow) SetWidths(totalWidth int, widths []int) { method Buffer (line 89) | func (row *CompactRow) Buffer() ui.Buffer { method Highlight (line 98) | func (row *CompactRow) Highlight() { method UnHighlight (line 107) | func (row *CompactRow) UnHighlight() { function NewCompactRow (line 30) | func NewCompactRow() *CompactRow { type RowBg (line 116) | type RowBg struct method Highlight (line 128) | func (w *RowBg) Highlight() { w.Bg = ui.ThemeAttr("par.text.fg") } method UnHighlight (line 129) | func (w *RowBg) UnHighlight() { w.Bg = ui.ThemeAttr("par.text.bg") } function NewRowBg (line 120) | func NewRowBg() *RowBg { FILE: cwidgets/compact/status.go type Status (line 10) | type Status struct method Buffer (line 27) | func (s *Status) Buffer() ui.Buffer { method SetMeta (line 34) | func (s *Status) SetMeta(m models.Meta) { method Reset (line 40) | func (s *Status) Reset() {} method SetMetrics (line 41) | func (s *Status) SetMetrics(models.Metrics) {} method Highlight (line 42) | func (s *Status) Highlight() {} method UnHighlight (line 43) | func (s *Status) UnHighlight() {} method Header (line 44) | func (s *Status) Header() string { return "" } method FixedWidth (line 45) | func (s *Status) FixedWidth() int { return 3 } method setState (line 47) | func (s *Status) setState(val string) { method setHealth (line 72) | func (s *Status) setHealth(val string) { function NewStatus (line 16) | func NewStatus() CompactCol { FILE: cwidgets/compact/text.go type MetaCol (line 13) | type MetaCol struct method SetMeta (line 18) | func (w *MetaCol) SetMeta(m models.Meta) { function NewNameCol (line 22) | func NewNameCol() CompactCol { function NewCIDCol (line 28) | func NewCIDCol() CompactCol { function NewImageCol (line 34) | func NewImageCol() CompactCol { function NewPortsCol (line 38) | func NewPortsCol() CompactCol { function NewIpsCol (line 42) | func NewIpsCol() CompactCol { function NewCreatedCol (line 46) | func NewCreatedCol() CompactCol { type NetCol (line 52) | type NetCol struct method SetMetrics (line 60) | func (w *NetCol) SetMetrics(m models.Metrics) { function NewNetCol (line 56) | func NewNetCol() CompactCol { type IOCol (line 65) | type IOCol struct method SetMetrics (line 73) | func (w *IOCol) SetMetrics(m models.Metrics) { function NewIOCol (line 69) | func NewIOCol() CompactCol { type PIDCol (line 78) | type PIDCol struct method SetMetrics (line 88) | func (w *PIDCol) SetMetrics(m models.Metrics) { function NewPIDCol (line 82) | func NewPIDCol() CompactCol { type UptimeCol (line 92) | type UptimeCol struct method SetMeta (line 100) | func (w *UptimeCol) SetMeta(m models.Meta) { function NewUptimeCol (line 96) | func NewUptimeCol() CompactCol { type TextCol (line 104) | type TextCol struct method Highlight (line 123) | func (w *TextCol) Highlight() { method UnHighlight (line 129) | func (w *TextCol) UnHighlight() { method Reset (line 136) | func (w *TextCol) Reset() { w.setText("-") } method SetMeta (line 137) | func (w *TextCol) SetMeta(models.Meta) {} method SetMetrics (line 138) | func (w *TextCol) SetMetrics(models.Metrics) {} method Header (line 139) | func (w *TextCol) Header() string { return w.header } method FixedWidth (line 140) | func (w *TextCol) FixedWidth() int { return w.fWidth } method setText (line 142) | func (w *TextCol) setText(s string) { function NewTextCol (line 110) | func NewTextCol(header string) *TextCol { FILE: cwidgets/compact/util.go constant colSpacing (line 11) | colSpacing = 1 function centerParText (line 13) | func centerParText(p *ui.Par) { FILE: cwidgets/main.go type WidgetUpdater (line 10) | type WidgetUpdater interface type NullWidgetUpdater (line 15) | type NullWidgetUpdater struct method SetMeta (line 18) | func (wu NullWidgetUpdater) SetMeta(models.Meta) {} method SetMetrics (line 21) | func (wu NullWidgetUpdater) SetMetrics(models.Metrics) {} FILE: cwidgets/single/cpu.go type Cpu (line 7) | type Cpu struct method Update (line 30) | func (w *Cpu) Update(val int) { function NewCpu (line 12) | func NewCpu() *Cpu { FILE: cwidgets/single/env.go type Env (line 12) | type Env struct method Set (line 28) | func (w *Env) Set(allEnvs string) { function NewEnv (line 17) | func NewEnv() *Env { FILE: cwidgets/single/hist.go type IntHist (line 3) | type IntHist struct method Append (line 16) | func (h *IntHist) Append(val int) { function NewIntHist (line 9) | func NewIntHist(max int) *IntHist { type DiffHist (line 24) | type DiffHist struct method Append (line 33) | func (h *DiffHist) Append(val int) { function NewDiffHist (line 29) | func NewDiffHist(max int) *DiffHist { type FloatHist (line 41) | type FloatHist struct method Append (line 54) | func (h FloatHist) Append(val float64) { function NewFloatHist (line 47) | func NewFloatHist(max int) FloatHist { FILE: cwidgets/single/info.go type Info (line 11) | type Info struct method Set (line 26) | func (w *Info) Set(k, v string) { function NewInfo (line 16) | func NewInfo() *Info { function mkInfoRows (line 41) | func mkInfoRows(k, v string) (rows [][]string) { FILE: cwidgets/single/io.go type IO (line 11) | type IO struct method Update (line 41) | func (w *IO) Update(read int64, write int64) { function NewIO (line 17) | func NewIO() *IO { FILE: cwidgets/single/logs.go type LogLines (line 10) | type LogLines struct method tail (line 23) | func (ll *LogLines) tail(n int) []string { method getLines (line 30) | func (ll *LogLines) getLines(start, end int) []string { method add (line 37) | func (ll *LogLines) add(l models.Log) { function NewLogLines (line 15) | func NewLogLines(max int) *LogLines { type Logs (line 47) | type Logs struct method Align (line 70) | func (w *Logs) Align() { method Buffer (line 75) | func (w *Logs) Buffer() ui.Buffer { method lineHeight (line 83) | func (w *Logs) lineHeight(s string) int { return (len(s) / w.InnerWidt... function NewLogs (line 52) | func NewLogs(stream chan models.Log) *Logs { FILE: cwidgets/single/main.go type Single (line 15) | type Single struct method Up (line 38) | func (e *Single) Up() { method Down (line 46) | func (e *Single) Down() { method SetWidth (line 54) | func (e *Single) SetWidth(w int) { e.Width = w } method SetMeta (line 55) | func (e *Single) SetMeta(m models.Meta) { method SetMetrics (line 65) | func (e *Single) SetMetrics(m models.Metrics) { method GetHeight (line 73) | func (e *Single) GetHeight() (h int) { method Align (line 83) | func (e *Single) Align() { method Buffer (line 102) | func (e *Single) Buffer() ui.Buffer { method all (line 118) | func (e *Single) all() []ui.GridBufferer { function NewSingle (line 26) | func NewSingle() *Single { function termSizeError (line 129) | func termSizeError() *ui.Par { FILE: cwidgets/single/mem.go type Mem (line 10) | type Mem struct method Align (line 37) | func (w *Mem) Align() { method Buffer (line 46) | func (w *Mem) Buffer() ui.Buffer { method Update (line 78) | func (w *Mem) Update(val int, limit int) { function NewMem (line 18) | func NewMem() *Mem { function newMemLabel (line 54) | func newMemLabel() *ui.Par { function newMemChart (line 63) | func newMemChart() *ui.MBarChart { FILE: cwidgets/single/net.go type Net (line 11) | type Net struct method Update (line 41) | func (w *Net) Update(rx int64, tx int64) { function NewNet (line 17) | func NewNet() *Net { FILE: cwidgets/util.go constant _ (line 9) | _ = iota constant kib (line 10) | kib float64 = 1 << (10 * iota) constant mib (line 11) | mib constant gib (line 12) | gib constant tib (line 13) | tib constant pib (line 14) | pib function ByteFormat (line 39) | func ByteFormat(n int) string { return byteFormat(float64(n), f... function ByteFormatShort (line 40) | func ByteFormatShort(n int) string { return byteFormat(float64(n), t... function ByteFormat64 (line 41) | func ByteFormat64(n int64) string { return byteFormat(float64(n), f... function ByteFormat64Short (line 42) | func ByteFormat64Short(n int64) string { return byteFormat(float64(n), t... function byteFormat (line 44) | func byteFormat(n float64, short bool) string { function unpadFloat (line 61) | func unpadFloat(f float64, maxp int) string { function getPrecision (line 65) | func getPrecision(f float64, maxp int) int { FILE: debug.go function logEvent (line 14) | func logEvent(e ui.Event) { function runtimeStats (line 29) | func runtimeStats() { function runtimeStack (line 39) | func runtimeStack() { function dumpContainer (line 46) | func dumpContainer(c *container.Container) { function inspect (line 55) | func inspect(i interface{}) (s string) { function quote (line 69) | func quote(s string) string { FILE: grid.go function ShowConnError (line 9) | func ShowConnError(err error) (exit bool) { function RedrawRows (line 47) | func RedrawRows(clr bool) { function SingleView (line 76) | func SingleView() MenuFn { function RefreshDisplay (line 108) | func RefreshDisplay() error { function Display (line 120) | func Display() bool { FILE: keys.go function HandleKeys (line 37) | func HandleKeys(i string, f func()) { FILE: logging/main.go constant size (line 12) | size = 1024 type statusMsg (line 24) | type statusMsg struct type CTopLogger (line 29) | type CTopLogger struct method FlushStatus (line 36) | func (c *CTopLogger) FlushStatus() chan statusMsg { method StatusQueued (line 48) | func (c *CTopLogger) StatusQueued() bool { return len(c.sLog) > 0 } method Status (line 49) | func (c *CTopLogger) Status(s string) { c.addStatus(statusMsg{s... method StatusErr (line 50) | func (c *CTopLogger) StatusErr(err error) { c.addStatus(statusMsg{e... method addStatus (line 51) | func (c *CTopLogger) addStatus(sm statusMsg) { c.sLog = append(c.sLog,... method Statusf (line 53) | func (c *CTopLogger) Statusf(s string, a ...interface{}) { c.Status(fm... method tail (line 98) | func (log *CTopLogger) tail() chan string { method Exit (line 123) | func (log *CTopLogger) Exit() { function Init (line 55) | func Init() *CTopLogger { function debugMode (line 131) | func debugMode() bool { return os.Getenv("CTOP_DEBUG") == "1" } function debugModeTCP (line 132) | func debugModeTCP() bool { return os.Getenv("CTOP_DEBUG_TCP") == "1" } function debugModeFile (line 133) | func debugModeFile() string { return os.Getenv("CTOP_DEBUG_FILE") } FILE: logging/server.go constant socketPath (line 11) | socketPath = "./ctop.sock" constant socketAddr (line 12) | socketAddr = "0.0.0.0:9000" function getListener (line 20) | func getListener() net.Listener { function StartServer (line 34) | func StartServer() { function StopServer (line 53) | func StopServer() { function handler (line 60) | func handler(wc io.WriteCloser) { FILE: main.go function main (line 35) | func main() { function Shutdown (line 118) | func Shutdown() { function validSort (line 127) | func validSort(s string) { function panicExit (line 134) | func panicExit() { function printHelp (line 150) | func printHelp() { FILE: menus.go type MenuFn (line 17) | type MenuFn function HelpMenu (line 37) | func HelpMenu() MenuFn { function FilterMenu (line 56) | func FilterMenu() MenuFn { function SortMenu (line 89) | func SortMenu() MenuFn { function ColumnsMenu (line 120) | func ColumnsMenu() MenuFn { function ContainerMenu (line 203) | func ContainerMenu() MenuFn { function LogMenu (line 335) | func LogMenu() MenuFn { function ExecShell (line 364) | func ExecShell() MenuFn { function OpenInBrowser (line 389) | func OpenInBrowser() MenuFn { function Confirm (line 406) | func Confirm(txt string, fn func()) MenuFn { type toggleLog (line 460) | type toggleLog struct method Toggle (line 465) | func (t *toggleLog) Toggle(on bool) string { function logReader (line 472) | func logReader(container *container.Container) (logs chan widgets.Toggle... function confirmTxt (line 494) | func confirmTxt(a, n string) string { return fmt.Sprintf("%s container %... FILE: models/main.go type Log (line 5) | type Log struct type Meta (line 10) | type Meta method Get (line 26) | func (m Meta) Get(k string) string { function NewMeta (line 14) | func NewMeta(kvs ...string) Meta { type Metrics (line 33) | type Metrics struct function NewMetrics (line 46) | func NewMetrics() Metrics { FILE: widgets/error.go type ErrorView (line 11) | type ErrorView struct method Append (line 39) | func (w *ErrorView) Append(s string) { method Buffer (line 48) | func (w *ErrorView) Buffer() ui.Buffer { method Resize (line 57) | func (w *ErrorView) Resize() { function NewErrorView (line 16) | func NewErrorView() *ErrorView { FILE: widgets/header.go type CTopHeader (line 10) | type CTopHeader struct method Buffer (line 26) | func (c *CTopHeader) Buffer() ui.Buffer { method Align (line 36) | func (c *CTopHeader) Align() { method Height (line 40) | func (c *CTopHeader) Height() int { method SetCount (line 61) | func (c *CTopHeader) SetCount(val int) { method SetFilter (line 65) | func (c *CTopHeader) SetFilter(val string) { function NewCTopHeader (line 17) | func NewCTopHeader() *CTopHeader { function headerBgBordered (line 44) | func headerBgBordered() *ui.Par { function headerBg (line 52) | func headerBg() *ui.Par { function timeStr (line 73) | func timeStr() string { function headerPar (line 78) | func headerPar(x int, s string) *ui.Par { FILE: widgets/input.go type Padding (line 13) | type Padding type Input (line 15) | type Input struct method calcSize (line 41) | func (i *Input) calcSize() { method Buffer (line 46) | func (i *Input) Buffer() ui.Buffer { method Stream (line 61) | func (i *Input) Stream() chan string { method KeyPress (line 66) | func (i *Input) KeyPress(e ui.Event) { method InputHandlers (line 88) | func (i *Input) InputHandlers() { function NewInput (line 26) | func NewInput() *Input { FILE: widgets/menu/items.go type Item (line 3) | type Item struct method Text (line 9) | func (m Item) Text() string { type Items (line 16) | type Items method Len (line 26) | func (m Items) Len() int { return len(m) } method Swap (line 27) | func (m Items) Swap(a, b int) { m[a], m[b] = m[b], m[a] } method Less (line 28) | func (m Items) Less(a, b int) bool { function NewItems (line 18) | func NewItems(items ...Item) (mitems Items) { FILE: widgets/menu/main.go type Padding (line 9) | type Padding type Menu (line 11) | type Menu struct method AddItems (line 39) | func (m *Menu) AddItems(items ...Item) { method DelItem (line 47) | func (m *Menu) DelItem(s string) (success bool) { method ClearItems (line 60) | func (m *Menu) ClearItems() { method SetCursor (line 65) | func (m *Menu) SetCursor(s string) (success bool) { method SetToolTip (line 76) | func (m *Menu) SetToolTip(lines ...string) { method SelectedItem (line 80) | func (m *Menu) SelectedItem() Item { method SelectedValue (line 84) | func (m *Menu) SelectedValue() string { method Buffer (line 88) | func (m *Menu) Buffer() ui.Buffer { method Up (line 124) | func (m *Menu) Up() { method Down (line 131) | func (m *Menu) Down() { method refresh (line 139) | func (m *Menu) refresh() { method calcSize (line 148) | func (m *Menu) calcSize() { function NewMenu (line 24) | func NewMenu() *Menu { FILE: widgets/menu/tooltip.go type ToolTip (line 7) | type ToolTip struct method Buffer (line 30) | func (t *ToolTip) Buffer() ui.Buffer { method Align (line 49) | func (t *ToolTip) Align() { function NewToolTip (line 15) | func NewToolTip(lines ...string) *ToolTip { FILE: widgets/status.go type StatusLine (line 12) | type StatusLine struct method Display (line 31) | func (sl *StatusLine) Display() { method Show (line 51) | func (sl *StatusLine) Show(s string) { method ShowErr (line 57) | func (sl *StatusLine) ShowErr(s string) { method Buffer (line 63) | func (sl *StatusLine) Buffer() ui.Buffer { method Align (line 70) | func (sl *StatusLine) Align() { method Height (line 78) | func (sl *StatusLine) Height() int { return statusHeight } function NewStatusLine (line 17) | func NewStatusLine() *StatusLine { function statusBg (line 80) | func statusBg() *ui.Par { FILE: widgets/view.go type ToggleText (line 8) | type ToggleText interface type TextView (line 13) | type TextView struct method Resize (line 49) | func (t *TextView) Resize() { method Toggle (line 58) | func (t *TextView) Toggle() { method Buffer (line 63) | func (t *TextView) Buffer() ui.Buffer { method renderLoop (line 82) | func (t *TextView) renderLoop() { method readInputLoop (line 101) | func (t *TextView) readInputLoop() { function NewTextView (line 25) | func NewTextView(lines <-chan ToggleText) *TextView { function splitLine (line 111) | func splitLine(line string, lineSize int) []string { FILE: widgets/view_test.go function TestSplitEmptyLine (line 5) | func TestSplitEmptyLine(t *testing.T) { function TestSplitLineShorterThanLimit (line 13) | func TestSplitLineShorterThanLimit(t *testing.T) { function TestSplitLineLongerThanLimit (line 21) | func TestSplitLineLongerThanLimit(t *testing.T) { function TestSplitLineSameAsLimit (line 29) | func TestSplitLineSameAsLimit(t *testing.T) {