Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/arshamalh/dockeroller
/ functions
Functions
229 in github.com/arshamalh/dockeroller
⨍
Functions
229
◇
Types & classes
25
↓ 47 callers
Method
Data
Data mocks base method.
telegram/handlers/mock_telebot_context_test.go:159
↓ 32 callers
Method
Get
(userID int64)
session/session.go:6
↓ 32 callers
Method
Respond
Respond mocks base method.
telegram/handlers/mock_telebot_context_test.go:475
↓ 29 callers
Method
Chat
Chat mocks base method.
telegram/handlers/mock_telebot_context_test.go:117
↓ 24 callers
Method
Edit
Edit mocks base method.
telegram/handlers/mock_telebot_context_test.go:201
↓ 24 callers
Method
Key
Turns button unique to a pair of (`\f` + button string value) so it can accessible for handlers.
telegram/btns/btns.go:6
↓ 15 callers
Function
NewCallbackResponse
(text string)
telegram/msgs/callback_responses.go:23
↓ 13 callers
Method
GetContainer
(containerID string)
docker/docker.go:14
↓ 13 callers
Method
String
Turns button unique directly to its string value without any extra information attached.
telegram/btns/btns.go:11
↓ 12 callers
Method
EXPECT
EXPECT returns an object that allows the caller to indicate expected use.
telegram/handlers/mock_telebot_context_test.go:38
↓ 12 callers
Function
FmtContainer
(container *entities.Container)
telegram/msgs/format.go:28
↓ 11 callers
Function
New
()
session/session.go:13
↓ 10 callers
Method
ContainersList
(ctx context.Context, filters filters.Args)
docker/docker.go:15
↓ 10 callers
Method
Send
Send mocks base method.
telegram/handlers/mock_telebot_context_test.go:493
↓ 7 callers
Function
FmtImage
(image *entities.Image)
telegram/msgs/format.go:38
↓ 7 callers
Method
GetImages
()
session/userdata.go:75
↓ 6 callers
Function
ContainerBack
(index int)
telegram/keyboards/containers.go:57
↓ 6 callers
Function
ContainersList
(index int, containerIsOn bool)
telegram/keyboards/containers.go:10
↓ 6 callers
Method
IsOn
()
entities/container.go:29
↓ 5 callers
Function
FmtMono
Monospace font is enabled by ` charater that is not supported in Go multiline string literals So we should format it using ” and replacing them. chara
telegram/msgs/format.go:14
↓ 5 callers
Method
GetContainerRemoveForm
()
session/userdata.go:102
↓ 5 callers
Method
Push
(value string)
entities/queue.go:28
↓ 5 callers
Method
SetContainers
(containers []*entities.Container)
session/userdata.go:63
↓ 5 callers
Method
SetScene
(scene entities.Scene)
session/userdata.go:17
↓ 4 callers
Method
EXPECT
EXPECT returns an object that allows the caller to indicate expected use.
telegram/handlers/mock_docker_test.go:40
↓ 4 callers
Method
GetImageRemoveForm
()
session/userdata.go:120
↓ 4 callers
Method
GetScene
()
session/userdata.go:27
↓ 4 callers
Function
ImageBack
(index int)
telegram/keyboards/images.go:53
↓ 4 callers
Function
ImagesList
(index int)
telegram/keyboards/images.go:10
↓ 4 callers
Function
NewQueue
Add to the end, remove from the beginning
entities/queue.go:24
↓ 4 callers
Method
Pop
Removes a Node from the queue and returns it, Returns an error if there is no available node
entities/queue.go:42
↓ 4 callers
Method
SetContainerRemoveForm
(force, removeVolumes bool)
session/userdata.go:91
↓ 4 callers
Function
SizeToHumanReadable
(size int64)
tools/human_readable_units.go:5
↓ 4 callers
Method
updateImagesList
(userID int64)
telegram/handlers/images.go:68
↓ 3 callers
Function
ContainerRemove
(index int, force, removeVolumes bool)
telegram/keyboards/containers.go:33
↓ 3 callers
Function
ImageRemove
(index int, force, pruneChildren bool)
telegram/keyboards/images.go:29
↓ 3 callers
Function
Indexer
Find the index of items in the list with index higher than length or less than length
tools/indexer.go:4
↓ 3 callers
Function
NewHandler
(bot *telebot.Bot, docker docker.Docker, session sessionPkg.Session)
telegram/handlers/handlers.go:17
↓ 3 callers
Method
SetImageRemoveForm
(force, pruneChildren bool)
session/userdata.go:109
↓ 3 callers
Method
Text
Text mocks base method.
telegram/handlers/mock_telebot_context_test.go:589
↓ 2 callers
Method
ContainerLogs
(containerID string)
docker/docker.go:16
↓ 2 callers
Method
ContainerPause
(containerID string)
docker/docker.go:22
↓ 2 callers
Method
ContainerRemove
(containerID string, removeForm *entities.ContainerRemoveForm)
docker/docker.go:20
↓ 2 callers
Method
ContainerRename
(containerID, newName string)
docker/docker.go:21
↓ 2 callers
Method
ContainerStart
(containerID string)
docker/docker.go:18
↓ 2 callers
Method
ContainerStats
(containerID string)
docker/docker.go:17
↓ 2 callers
Method
ContainerStop
(containerID string)
docker/docker.go:19
↓ 2 callers
Method
ContainerUnpause
(containerID string)
docker/docker.go:23
↓ 2 callers
Method
ContainersNavBtn
(ctx telebot.Context)
telegram/handlers/containers.go:31
↓ 2 callers
Method
GetContainers
()
session/userdata.go:55
↓ 2 callers
Method
GetCurrentContainer
()
session/userdata.go:43
↓ 2 callers
Method
GetCurrentImage
()
session/userdata.go:51
↓ 2 callers
Method
GetQuitChan
()
session/userdata.go:71
↓ 2 callers
Method
ImageRemove
(ctx context.Context, imageID string, force, pruneChildren bool)
docker/docker.go:27
↓ 2 callers
Method
ImageTag
(ctx context.Context, imageID, newTag string)
docker/docker.go:26
↓ 2 callers
Function
NewMockContext
NewMockContext creates a new mock instance.
telegram/handlers/mock_telebot_context_test.go:31
↓ 2 callers
Function
NewMockDocker
NewMockDocker creates a new mock instance.
telegram/handlers/mock_docker_test.go:33
↓ 2 callers
Method
SetCurrentContainer
(container *entities.Container)
session/userdata.go:39
↓ 2 callers
Method
SetCurrentImage
(image *entities.Image)
session/userdata.go:47
↓ 2 callers
Method
SetImages
(images []*entities.Image)
session/userdata.go:79
↓ 2 callers
Method
SetQuitChan
(quitChan chan struct{})
session/userdata.go:67
↓ 2 callers
Method
String
()
entities/queue.go:59
↓ 2 callers
Function
fakeContainers
(howMany int)
telegram/handlers/containers_test.go:127
↓ 2 callers
Function
newFakeContainers
()
session/userdata_test.go:81
↓ 2 callers
Function
newFakeImages
()
session/userdata_test.go:96
↓ 1 callers
Method
CPUUsage
These are formulas to calculate stats cpu_delta = cpu_stats.cpu_usage.total_usage - precpu_stats.cpu_usage.total_usage system_cpu_delta = cpu_stats.sy
entities/stats.go:42
↓ 1 callers
Method
ContainerRenameTextHandler
(ctx telebot.Context)
telegram/handlers/container_rename.go:39
↓ 1 callers
Method
ContainersList
(ctx context.Context, filters filters.Args)
docker/containers.go:12
↓ 1 callers
Function
Execute
()
cmd/cmd.go:8
↓ 1 callers
Function
FmtContainerRenamed
(old_name, new_name string)
telegram/msgs/format.go:70
↓ 1 callers
Function
FmtImageTagged
(id, tag string)
telegram/msgs/format.go:79
↓ 1 callers
Function
FmtStats
(stat entities.Stats)
telegram/msgs/format.go:56
↓ 1 callers
Method
ImageTagTextHandler
(ctx telebot.Context)
telegram/handlers/image_tag.go:38
↓ 1 callers
Method
ImagesList
()
docker/docker.go:25
↓ 1 callers
Function
InitGlobalLogger
(filename string)
log/log.go:19
↓ 1 callers
Method
MemoryUsage
Simplifying the memory usage calculations used_memory = memory_stats.usage - memory_stats.stats.cache available_memory = memory_stats.limit Memory usa
entities/stats.go:57
↓ 1 callers
Method
Message
Message mocks base method.
telegram/handlers/mock_telebot_context_test.go:343
↓ 1 callers
Function
New
()
docker/docker.go:30
↓ 1 callers
Method
StartHandler
(ctx telebot.Context)
telegram/handlers/general.go:14
↓ 1 callers
Method
String
()
entities/container.go:25
↓ 1 callers
Method
Update
Update mocks base method.
telegram/handlers/mock_telebot_context_test.go:603
↓ 1 callers
Function
Welcome
()
telegram/keyboards/keyboards.go:8
↓ 1 callers
Method
getImageStatus
Returns whether an image is dangling or used by containers, returns a list of ContainerIDs as the second argument, or nil if the Image is dangling or
docker/images.go:45
↓ 1 callers
Method
init
(userID int64)
session/session.go:26
↓ 1 callers
Function
newNode
(value string, next *Node)
entities/queue.go:10
↓ 1 callers
Function
registerStart
(root *cobra.Command)
cmd/start.go:18
↓ 1 callers
Function
start
(token string, whitelistedIDs []int64)
cmd/start.go:35
↓ 1 callers
Function
startTelegram
(docker docker.Docker, token string, whitelistedIDs []int64)
cmd/start.go:55
↓ 1 callers
Function
switchBtn
(keyboard *telebot.ReplyMarkup, index int, containerIsOn bool)
telegram/keyboards/containers.go:68
Method
Accept
Accept mocks base method.
telegram/handlers/mock_telebot_context_test.go:43
Method
Accept
Accept indicates an expected call of Accept.
telegram/handlers/mock_telebot_context_test.go:55
Method
Answer
Answer mocks base method.
telegram/handlers/mock_telebot_context_test.go:61
Method
Answer
Answer indicates an expected call of Answer.
telegram/handlers/mock_telebot_context_test.go:69
Method
Args
Args mocks base method.
telegram/handlers/mock_telebot_context_test.go:75
Method
Args
Args indicates an expected call of Args.
telegram/handlers/mock_telebot_context_test.go:83
Method
Bot
Bot mocks base method.
telegram/handlers/mock_telebot_context_test.go:89
Method
Bot
Bot indicates an expected call of Bot.
telegram/handlers/mock_telebot_context_test.go:97
Method
Callback
Callback mocks base method.
telegram/handlers/mock_telebot_context_test.go:103
Method
Callback
Callback indicates an expected call of Callback.
telegram/handlers/mock_telebot_context_test.go:111
Method
Chat
Chat indicates an expected call of Chat.
telegram/handlers/mock_telebot_context_test.go:125
next →
1–100 of 229, ranked by callers