Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/bcicen/ctop
/ functions
Functions
450 in github.com/bcicen/ctop
⨍
Functions
450
◇
Types & classes
79
↓ 30 callers
Method
Buffer
()
cwidgets/compact/row.go:19
↓ 23 callers
Function
HandleKeys
Apply a common handler function to all given keys
keys.go:37
↓ 19 callers
Method
SetMeta
(models.Meta)
cwidgets/main.go:11
↓ 16 callers
Method
GetMeta
(k string)
container/main.go:65
↓ 12 callers
Method
Len
()
cursor.go:18
↓ 12 callers
Method
Loop
()
connector/mock.go:78
↓ 11 callers
Method
Clear
()
cwidgets/compact/grid.go:40
↓ 11 callers
Method
MaxRows
()
cwidgets/compact/grid.go:49
↓ 10 callers
Method
Get
Get returns a single container.Container by ID
connector/main.go:24
↓ 10 callers
Function
NewTextCol
(header string)
cwidgets/compact/text.go:110
↓ 10 callers
Method
SetState
(s string)
container/main.go:69
↓ 9 callers
Method
Align
()
cwidgets/single/mem.go:37
↓ 9 callers
Method
Set
(allEnvs string)
cwidgets/single/env.go:27
↓ 8 callers
Method
Append
(val int)
cwidgets/single/hist.go:16
↓ 8 callers
Function
Init
()
logging/main.go:55
↓ 8 callers
Method
SetWidth
(w int)
cwidgets/single/main.go:54
↓ 8 callers
Method
SetY
(int)
cwidgets/compact/row.go:16
↓ 8 callers
Method
StatusErr
(err error)
logging/main.go:50
↓ 8 callers
Function
Update
Set param value
config/param.go:47
↓ 7 callers
Method
Highlight
fixed width size. if == 0, width is automatically calculated
cwidgets/compact/column.go:51
↓ 7 callers
Method
UnHighlight
()
cwidgets/compact/column.go:52
↓ 6 callers
Function
ByteFormat64Short
(n int64)
cwidgets/util.go:42
↓ 6 callers
Function
Confirm
Create a confirmation dialog with a given description string and func to perform if confirmed
menus.go:406
↓ 6 callers
Function
GetSwitchVal
GetSwitchVal returns Switch value by key
config/switch.go:47
↓ 6 callers
Function
GetVal
GetVal gets Param value by key
config/param.go:42
↓ 6 callers
Method
Idx
Idx returns current cursor index
cursor.go:74
↓ 6 callers
Method
Selected
()
cursor.go:20
↓ 6 callers
Method
SelectedValue
()
widgets/menu/main.go:84
↓ 6 callers
Function
confirmTxt
(a, n string)
menus.go:494
↓ 6 callers
Function
quote
(s string)
config/main.go:35
↓ 5 callers
Method
AddItems
Append Item to Menu
widgets/menu/main.go:39
↓ 5 callers
Method
Exit
()
logging/main.go:123
↓ 5 callers
Function
NewMenu
()
widgets/menu/main.go:24
↓ 5 callers
Method
Text
Use label as display text of item, if given
widgets/menu/items.go:9
↓ 5 callers
Function
Toggle
Toggle a boolean switch
config/switch.go:64
↓ 5 callers
Function
percent
return rounded percentage
connector/collector/main.go:30
↓ 5 callers
Method
setText
(s string)
cwidgets/compact/text.go:142
↓ 5 callers
Function
splitLine
(line string, lineSize int)
widgets/view.go:111
↓ 4 callers
Method
Align
()
cwidgets/single/main.go:83
↓ 4 callers
Function
ByteFormatShort
(n int)
cwidgets/util.go:40
↓ 4 callers
Function
NewDiffHist
(max int)
cwidgets/single/hist.go:29
↓ 4 callers
Function
RedrawRows
(clr bool)
grid.go:47
↓ 4 callers
Method
SetUpdater
(u cwidgets.WidgetUpdater)
container/main.go:55
↓ 4 callers
Method
Sort
()
container/sort.go:102
↓ 4 callers
Method
Update
(read int64, write int64)
cwidgets/single/io.go:41
↓ 4 callers
Function
byteFormat
(n float64, short bool)
cwidgets/util.go:44
↓ 4 callers
Function
colIndex
return index of column with given name, if any
config/columns.go:168
↓ 4 callers
Function
quote
(s string)
debug.go:69
↓ 3 callers
Method
All
All returns a pre-sorted container.Containers of all discovered containers
connector/main.go:22
↓ 3 callers
Function
ColumnsString
ColumnsString returns an ordered and comma-delimited string of currently enabled Columns
config/columns.go:88
↓ 3 callers
Method
Filter
()
container/sort.go:113
↓ 3 callers
Method
FixedWidth
header text to display for column
cwidgets/compact/column.go:50
↓ 3 callers
Method
GetLibc
(id string)
connector/runc.go:97
↓ 3 callers
Function
GetSwitch
GetSwitch returns Switch by key
config/switch.go:34
↓ 3 callers
Method
Logs
()
connector/collector/main.go:19
↓ 3 callers
Function
New
(id string, collector collector.Collector, manager manager.Manager)
container/main.go:32
↓ 3 callers
Function
NewGaugeCol
(header string)
cwidgets/compact/gauge.go:59
↓ 3 callers
Function
NewIntHist
(max int)
cwidgets/single/hist.go:9
↓ 3 callers
Method
RefreshContainers
Refresh containers from source, returning whether the quantity of containers has changed and any error
cursor.go:30
↓ 3 callers
Function
RefreshDisplay
()
grid.go:108
↓ 3 callers
Method
Resize
Adjusts text inside this view according to the window size. No need to call ui.Render(...) after calling this method, it is called automatically
widgets/view.go:49
↓ 3 callers
Method
ScrollPage
()
cursor.go:84
↓ 3 callers
Method
SetWidth
(w int)
cwidgets/compact/grid.go:48
↓ 3 callers
Method
Stop
()
connector/manager/main.go:9
↓ 3 callers
Function
headerPar
(x int, s string)
widgets/header.go:78
↓ 3 callers
Method
setError
(err error)
connector/main.go:58
↓ 2 callers
Method
Append
(s string)
widgets/error.go:39
↓ 2 callers
Function
ByteFormat
convenience methods
cwidgets/util.go:39
↓ 2 callers
Method
Display
()
widgets/status.go:31
↓ 2 callers
Function
EnabledColumns
EnabledColumns returns an ordered array of enabled column names
config/columns.go:91
↓ 2 callers
Method
Exec
(cmd []string)
connector/manager/main.go:14
↓ 2 callers
Function
Get
Get Param by key
config/param.go:29
↓ 2 callers
Method
Get
Docker implements Connector
connector/docker.go:285
↓ 2 callers
Method
GetHeight
()
cwidgets/compact/row.go:18
↓ 2 callers
Method
GetHeight
GetHeight returns total column height
cwidgets/single/main.go:73
↓ 2 callers
Method
Init
Create Mock containers
connector/mock.go:31
↓ 2 callers
Method
MustGet
MustGet gets a single ctop container in the map matching libc container, creating one anew if not existing
connector/runc.go:185
↓ 2 callers
Method
MustGet
MustGet gets a single container, creating one anew if not existing
connector/docker.go:267
↓ 2 callers
Function
NewCompactRow
()
cwidgets/compact/row.go:30
↓ 2 callers
Function
NewMetrics
()
models/main.go:46
↓ 2 callers
Method
Remove
()
connector/manager/main.go:10
↓ 2 callers
Method
Reset
Set an initial cursor position, if possible
cursor.go:58
↓ 2 callers
Method
Reset
()
cwidgets/compact/column.go:48
↓ 2 callers
Method
Running
()
connector/collector/main.go:20
↓ 2 callers
Method
SetX
(x int)
cwidgets/compact/grid.go:46
↓ 2 callers
Function
Shutdown
()
main.go:118
↓ 2 callers
Method
Start
()
connector/manager/main.go:8
↓ 2 callers
Method
Status
(s string)
logging/main.go:49
↓ 2 callers
Method
StatusQueued
()
logging/main.go:48
↓ 2 callers
Method
Stream
()
connector/collector/main.go:18
↓ 2 callers
Method
Wait
Wait blocks until the underlying connection is lost
connector/main.go:26
↓ 2 callers
Method
Write
(p []byte)
connector/manager/docker.go:54
↓ 2 callers
Method
addStatus
(sm statusMsg)
logging/main.go:51
↓ 2 callers
Method
delByID
Remove containers by ID
connector/runc.go:216
↓ 2 callers
Method
delByID
Remove containers by ID
connector/docker.go:293
↓ 2 callers
Function
getConfigPath
determine config path from environment
config/file.go:116
↓ 2 callers
Method
makeContainer
(aggression int64, health bool)
connector/mock.go:55
↓ 2 callers
Function
makeState
()
connector/mock.go:146
↓ 2 callers
Function
mkInfoRows
Build row(s) from a key and value string
cwidgets/single/info.go:41
↓ 2 callers
Function
newRowWidgets
()
cwidgets/compact/column.go:31
next →
1–100 of 450, ranked by callers