Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aitjcize/Overlord
/ functions
Functions
651 in github.com/aitjcize/Overlord
⨍
Functions
651
◇
Types & classes
82
↓ 54 callers
Function
ResponseError
ResponseError writes an error response to the client with standard format
overlord/http_utils.go:22
↓ 42 callers
Method
Close
(self)
py/ghost.py:118
↓ 34 callers
Method
SendResponse
(self, omsg, status, payload=None)
py/ghost.py:631
↓ 30 callers
Method
ServeHTTP
ServeHTTP method for serving JSON-RPC over HTTP.
overlord/ghost.go:1839
↓ 23 callers
Function
createAuthRequest
(jwtToken, method, url string, body []byte)
overlord/admin_api_test.go:93
↓ 21 callers
Function
loginAs
(router *mux.Router, username string, pwd ...string)
overlord/admin_api_test.go:112
↓ 20 callers
Method
Marshal
()
overlord/rpc.go:30
↓ 18 callers
Method
CreateUser
CreateUser creates a new user in the database
overlord/db.go:157
↓ 18 callers
Function
NewErrorResponse
NewErrorResponse creates a new Response object with an error status.
overlord/rpc.go:102
↓ 17 callers
Function
ResponseSuccess
ResponseSuccess writes a success response to the client
overlord/http_utils.go:36
↓ 15 callers
Method
Context
(self)
py/ghost.py:176
↓ 15 callers
Function
NewRequest
NewRequest creats a new Request object. name is the name of the request. params is map between string and any other JSON-serializable data structure.
overlord/rpc.go:46
↓ 14 callers
Method
Initialize
Initialize initializes the database.
overlord/db.go:503
↓ 14 callers
Method
connect
()
apps/dashboard/src/services/monitor.js:45
↓ 14 callers
Function
extractData
(response)
apps/dashboard/src/services/api.js:6
↓ 13 callers
Method
Pull
(self, args)
py/ovl.py:1842
↓ 12 callers
Function
NewResponse
NewResponse creates a new Response object. rid is the request ID of the request this response is intended for. response is the response status text. p
overlord/rpc.go:88
↓ 12 callers
Method
registerRoutes
register handlers for http routes.
overlord/overlord.go:1068
↓ 11 callers
Method
AddUserToGroup
AddUserToGroup adds a user to a group
overlord/db.go:312
↓ 11 callers
Method
SendRequest
SendRequest sends a Request.
overlord/rpc.go:169
↓ 11 callers
Function
setupTestDatabaseManager
(t *testing.T)
overlord/db_test.go:15
↓ 11 callers
Function
setupTestOverlord
(t *testing.T)
overlord/admin_api_test.go:82
↓ 11 callers
Method
start
()
apps/dashboard/src/services/monitor.js:13
↓ 10 callers
Method
CreateGroup
CreateGroup creates a new group in the database
overlord/db.go:273
↓ 10 callers
Method
_AdminApiCall
Make an API call to the admin endpoints.
py/ovl.py:2226
↓ 9 callers
Method
AuthenticateUser
AuthenticateUser authenticates a user with the provided credentials
overlord/db.go:212
↓ 9 callers
Method
IsUserAdmin
IsUserAdmin checks if a user is a member of the admin group
overlord/db.go:207
↓ 9 callers
Method
RemoveUserFromGroup
RemoveUserFromGroup removes a user from a group
overlord/db.go:333
↓ 9 callers
Method
Start
Start bootstraps and start the client.
overlord/ghost.go:1891
↓ 9 callers
Function
WebSocketSendError
WebSocketSendError sends an error message to the client
overlord/http_utils.go:66
↓ 9 callers
Method
getHandler
Generic handler for remote command
overlord/conn_server.go:462
↓ 8 callers
Function
ResponseJSON
ResponseJSON writes a JSON response to the client with standard format
overlord/http_utils.go:48
↓ 8 callers
Method
SSLContext
(self)
py/ovl.py:353
↓ 8 callers
Method
SendRequest
(self, name, args, handler=None, timeo
py/ghost.py:617
↓ 8 callers
Method
Unauthorized
Unauthorized returns a 401 Unauthorized response.
overlord/auth.go:287
↓ 8 callers
Method
Upgrade
()
overlord/ghost.go:480
↓ 8 callers
Function
UrlOpen
Open a URL with proper headers. Args: state: DaemonState object. url: URL to open. headers: Additional headers to add. data: Data t
py/ovl.py:129
↓ 7 callers
Method
CheckAllowlist
CheckAllowlist checks if a user has access based on the allowlist
overlord/db.go:434
↓ 7 callers
Function
GetAdminStatusFromContext
GetAdminStatusFromContext gets the admin status from the request context
overlord/auth.go:247
↓ 7 callers
Function
GetUserFromContext
GetUserFromContext gets the username from the request context and returns the username and a boolean indicating if it was found.
overlord/auth.go:241
↓ 7 callers
Function
NewGhost
NewGhost creates a Ghost object.
overlord/ghost.go:223
↓ 7 callers
Method
Push
(self, args)
py/ovl.py:1930
↓ 7 callers
Method
SetAllowlist
SetAllowlist sets the allowlist of users and groups that can access this ghost
overlord/ghost.go:315
↓ 7 callers
Method
fileno
(self)
py/ghost.py:92
↓ 6 callers
Method
BroadcastEvent
BroadcastEvent broadcasts an event to all monitor clients If mid is not empty, the event will only be sent to clients with permission to access that a
overlord/overlord.go:355
↓ 6 callers
Method
GetUserByUsername
GetUserByUsername retrieves a user by username
overlord/db.go:227
↓ 6 callers
Method
IsUserInGroup
IsUserInGroup checks if a user is a member of a specific group
overlord/db.go:403
↓ 6 callers
Function
NewDatabaseManager
NewDatabaseManager creates a new database manager
overlord/db.go:61
↓ 6 callers
Method
Send
(self, *args, **kwargs)
py/ghost.py:109
↓ 6 callers
Method
SendErrorResponse
(self, omsg, error)
py/ghost.py:635
↓ 6 callers
Method
SpawnGhost
Spawn a child ghost with specific mode. Returns: The spawned child process pid.
py/ghost.py:447
↓ 6 callers
Method
_GetJSON
(self, path)
test/overlord_e2e_unittest.py:186
↓ 6 callers
Function
_RecvExact
Read exactly n bytes from sock; return None on EOF.
py/ovl.py:203
↓ 6 callers
Function
getCurrentUser
getCurrentUser gets the current user name with multiple fallbacks
overlord/utils.go:79
↓ 5 callers
Method
CheckClient
(self)
py/ovl.py:1192
↓ 5 callers
Method
Connect
Connect connects to the database
overlord/db.go:68
↓ 5 callers
Method
DeleteGroup
DeleteGroup deletes a group from the database
overlord/db.go:301
↓ 5 callers
Method
GetAllGroups
GetAllGroups returns all groups
overlord/db.go:486
↓ 5 callers
Function
GhostRPCServer
Returns handler to Ghost's JSON RPC server.
py/ghost.py:1464
↓ 5 callers
Function
KillGraceful
Kill a process gracefully by first sending SIGTERM, wait for some time, then send SIGKILL to make sure it's killed.
py/ovl.py:168
↓ 5 callers
Function
ParseEntityName
ParseEntityName parses an entity string (u/username or g/groupname) and returns the type and name
overlord/db.go:413
↓ 5 callers
Method
Recv
(self, bufsize, flags=0)
py/ghost.py:95
↓ 5 callers
Method
SetSid
SetSid sets the Session ID for the Ghost instance.
overlord/ghost.go:257
↓ 5 callers
Method
StopListen
StopListen stops ConnServer's Listen loop.
overlord/conn_server.go:105
↓ 5 callers
Method
UpdateUserPassword
UpdateUserPassword updates a user's password
overlord/db.go:237
↓ 5 callers
Method
__init__
(self, path, perm=0o644, is_symlink=False, link_ta
py/ovl.py:911
↓ 5 callers
Function
ghostRPCStubServer
Returns a ghostRPCStub client object which can be used to call ghostRPCStub methods.
overlord/ghost.go:1921
↓ 5 callers
Function
runWithSudo
runWithSudo executes a command with sudo privileges
overlord/sysutils_linux.go:140
↓ 4 callers
Method
Clients
(self)
py/ovl.py:561
↓ 4 callers
Method
DeleteUser
DeleteUser deletes a user from the database
overlord/db.go:256
↓ 4 callers
Method
End
(self)
py/ovl.py:324
↓ 4 callers
Method
GetAllUsers
GetAllUsers returns all users
overlord/db.go:479
↓ 4 callers
Method
GetGroupUsers
GetGroupUsers returns all users in a group
overlord/db.go:493
↓ 4 callers
Method
GetJWTSecret
GetJWTSecret returns the JWT secret from the database
overlord/db.go:152
↓ 4 callers
Method
GetRPCServer
Returns the Overlord client daemon RPC server.
py/ovl.py:420
↓ 4 callers
Function
GetTerminalSize
Retrieve terminal window size.
py/ovl.py:222
↓ 4 callers
Method
GetUserGroups
GetUserGroups returns all groups that a user belongs to
overlord/db.go:387
↓ 4 callers
Method
RecvBuf
Only recive from buffer.
py/ghost.py:112
↓ 4 callers
Method
SendResponse
SendResponse sends a Response.
overlord/rpc.go:179
↓ 4 callers
Method
SetIgnoreChild
(self, status)
py/ghost.py:289
↓ 4 callers
Method
SetTimeout
SetTimeout sets the timeout of request. The default timeout is is defined in requestTimeoutSeconds.
overlord/rpc.go:62
↓ 4 callers
Method
Timestamp
(self)
py/ghost.py:485
↓ 4 callers
Method
_Fstat
(self, path)
py/ghost.py:939
↓ 4 callers
Method
checkAllowlist
checkAllowlist checks if the provided username has access to the ghost agent based on the allowlist property
overlord/overlord.go:1343
↓ 4 callers
Function
userExists
Helper function to check if a user exists
overlord/admin_api_test.go:101
↓ 3 callers
Method
Enabled
(self)
py/ghost.py:170
↓ 3 callers
Function
FindUnusedPort
()
test/overlord_e2e_unittest.py:34
↓ 3 callers
Function
GenerateRandomSecret
GenerateRandomSecret generates a cryptographically secure random string
overlord/db.go:88
↓ 3 callers
Method
GetGroupByName
GetGroupByName retrieves a group by name
overlord/db.go:291
↓ 3 callers
Function
GetTLSCertPath
(host)
py/ovl.py:116
↓ 3 callers
Function
MakeRequestUrl
Create a full URL with the correct protocol and host.
py/ovl.py:120
↓ 3 callers
Function
ModeStr
ModeStr translate client mode to string.
overlord/constants.go:30
↓ 3 callers
Method
Reset
Reset state and clear request handlers.
py/ghost.py:602
↓ 3 callers
Method
SendMessage
Serialize the message and send it through the socket.
py/ghost.py:613
↓ 3 callers
Method
SetFileOp
SetFileOp sets the file operation to perform.
overlord/ghost.go:294
↓ 3 callers
Method
SetProgress
(self, percentage, size=None)
py/ovl.py:299
↓ 3 callers
Method
StartServer
(self)
py/ovl.py:1351
↓ 3 callers
Method
UnRecv
(self, buf)
py/ghost.py:106
↓ 3 callers
Method
addWebsocketContext
addWebsocketContext adds an websocket context to the overlord state.
overlord/overlord.go:326
↓ 3 callers
Method
existsInAddr
(target string)
overlord/ghost.go:320
next →
1–100 of 651, ranked by callers