MCPcopy Create free account

hub / github.com/aitjcize/Overlord / functions

Functions651 in github.com/aitjcize/Overlord

↓ 54 callersFunctionResponseError
ResponseError writes an error response to the client with standard format
overlord/http_utils.go:22
↓ 42 callersMethodClose
(self)
py/ghost.py:118
↓ 34 callersMethodSendResponse
(self, omsg, status, payload=None)
py/ghost.py:631
↓ 30 callersMethodServeHTTP
ServeHTTP method for serving JSON-RPC over HTTP.
overlord/ghost.go:1839
↓ 23 callersFunctioncreateAuthRequest
(jwtToken, method, url string, body []byte)
overlord/admin_api_test.go:93
↓ 21 callersFunctionloginAs
(router *mux.Router, username string, pwd ...string)
overlord/admin_api_test.go:112
↓ 20 callersMethodMarshal
()
overlord/rpc.go:30
↓ 18 callersMethodCreateUser
CreateUser creates a new user in the database
overlord/db.go:157
↓ 18 callersFunctionNewErrorResponse
NewErrorResponse creates a new Response object with an error status.
overlord/rpc.go:102
↓ 17 callersFunctionResponseSuccess
ResponseSuccess writes a success response to the client
overlord/http_utils.go:36
↓ 15 callersMethodContext
(self)
py/ghost.py:176
↓ 15 callersFunctionNewRequest
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 callersMethodInitialize
Initialize initializes the database.
overlord/db.go:503
↓ 14 callersMethodconnect
()
apps/dashboard/src/services/monitor.js:45
↓ 14 callersFunctionextractData
(response)
apps/dashboard/src/services/api.js:6
↓ 13 callersMethodPull
(self, args)
py/ovl.py:1842
↓ 12 callersFunctionNewResponse
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 callersMethodregisterRoutes
register handlers for http routes.
overlord/overlord.go:1068
↓ 11 callersMethodAddUserToGroup
AddUserToGroup adds a user to a group
overlord/db.go:312
↓ 11 callersMethodSendRequest
SendRequest sends a Request.
overlord/rpc.go:169
↓ 11 callersFunctionsetupTestDatabaseManager
(t *testing.T)
overlord/db_test.go:15
↓ 11 callersFunctionsetupTestOverlord
(t *testing.T)
overlord/admin_api_test.go:82
↓ 11 callersMethodstart
()
apps/dashboard/src/services/monitor.js:13
↓ 10 callersMethodCreateGroup
CreateGroup creates a new group in the database
overlord/db.go:273
↓ 10 callersMethod_AdminApiCall
Make an API call to the admin endpoints.
py/ovl.py:2226
↓ 9 callersMethodAuthenticateUser
AuthenticateUser authenticates a user with the provided credentials
overlord/db.go:212
↓ 9 callersMethodIsUserAdmin
IsUserAdmin checks if a user is a member of the admin group
overlord/db.go:207
↓ 9 callersMethodRemoveUserFromGroup
RemoveUserFromGroup removes a user from a group
overlord/db.go:333
↓ 9 callersMethodStart
Start bootstraps and start the client.
overlord/ghost.go:1891
↓ 9 callersFunctionWebSocketSendError
WebSocketSendError sends an error message to the client
overlord/http_utils.go:66
↓ 9 callersMethodgetHandler
Generic handler for remote command
overlord/conn_server.go:462
↓ 8 callersFunctionResponseJSON
ResponseJSON writes a JSON response to the client with standard format
overlord/http_utils.go:48
↓ 8 callersMethodSSLContext
(self)
py/ovl.py:353
↓ 8 callersMethodSendRequest
(self, name, args, handler=None, timeo
py/ghost.py:617
↓ 8 callersMethodUnauthorized
Unauthorized returns a 401 Unauthorized response.
overlord/auth.go:287
↓ 8 callersMethodUpgrade
()
overlord/ghost.go:480
↓ 8 callersFunctionUrlOpen
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 callersMethodCheckAllowlist
CheckAllowlist checks if a user has access based on the allowlist
overlord/db.go:434
↓ 7 callersFunctionGetAdminStatusFromContext
GetAdminStatusFromContext gets the admin status from the request context
overlord/auth.go:247
↓ 7 callersFunctionGetUserFromContext
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 callersFunctionNewGhost
NewGhost creates a Ghost object.
overlord/ghost.go:223
↓ 7 callersMethodPush
(self, args)
py/ovl.py:1930
↓ 7 callersMethodSetAllowlist
SetAllowlist sets the allowlist of users and groups that can access this ghost
overlord/ghost.go:315
↓ 7 callersMethodfileno
(self)
py/ghost.py:92
↓ 6 callersMethodBroadcastEvent
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 callersMethodGetUserByUsername
GetUserByUsername retrieves a user by username
overlord/db.go:227
↓ 6 callersMethodIsUserInGroup
IsUserInGroup checks if a user is a member of a specific group
overlord/db.go:403
↓ 6 callersFunctionNewDatabaseManager
NewDatabaseManager creates a new database manager
overlord/db.go:61
↓ 6 callersMethodSend
(self, *args, **kwargs)
py/ghost.py:109
↓ 6 callersMethodSendErrorResponse
(self, omsg, error)
py/ghost.py:635
↓ 6 callersMethodSpawnGhost
Spawn a child ghost with specific mode. Returns: The spawned child process pid.
py/ghost.py:447
↓ 6 callersMethod_GetJSON
(self, path)
test/overlord_e2e_unittest.py:186
↓ 6 callersFunction_RecvExact
Read exactly n bytes from sock; return None on EOF.
py/ovl.py:203
↓ 6 callersFunctiongetCurrentUser
getCurrentUser gets the current user name with multiple fallbacks
overlord/utils.go:79
↓ 5 callersMethodCheckClient
(self)
py/ovl.py:1192
↓ 5 callersMethodConnect
Connect connects to the database
overlord/db.go:68
↓ 5 callersMethodDeleteGroup
DeleteGroup deletes a group from the database
overlord/db.go:301
↓ 5 callersMethodGetAllGroups
GetAllGroups returns all groups
overlord/db.go:486
↓ 5 callersFunctionGhostRPCServer
Returns handler to Ghost's JSON RPC server.
py/ghost.py:1464
↓ 5 callersFunctionKillGraceful
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 callersFunctionParseEntityName
ParseEntityName parses an entity string (u/username or g/groupname) and returns the type and name
overlord/db.go:413
↓ 5 callersMethodRecv
(self, bufsize, flags=0)
py/ghost.py:95
↓ 5 callersMethodSetSid
SetSid sets the Session ID for the Ghost instance.
overlord/ghost.go:257
↓ 5 callersMethodStopListen
StopListen stops ConnServer's Listen loop.
overlord/conn_server.go:105
↓ 5 callersMethodUpdateUserPassword
UpdateUserPassword updates a user's password
overlord/db.go:237
↓ 5 callersMethod__init__
(self, path, perm=0o644, is_symlink=False, link_ta
py/ovl.py:911
↓ 5 callersFunctionghostRPCStubServer
Returns a ghostRPCStub client object which can be used to call ghostRPCStub methods.
overlord/ghost.go:1921
↓ 5 callersFunctionrunWithSudo
runWithSudo executes a command with sudo privileges
overlord/sysutils_linux.go:140
↓ 4 callersMethodClients
(self)
py/ovl.py:561
↓ 4 callersMethodDeleteUser
DeleteUser deletes a user from the database
overlord/db.go:256
↓ 4 callersMethodEnd
(self)
py/ovl.py:324
↓ 4 callersMethodGetAllUsers
GetAllUsers returns all users
overlord/db.go:479
↓ 4 callersMethodGetGroupUsers
GetGroupUsers returns all users in a group
overlord/db.go:493
↓ 4 callersMethodGetJWTSecret
GetJWTSecret returns the JWT secret from the database
overlord/db.go:152
↓ 4 callersMethodGetRPCServer
Returns the Overlord client daemon RPC server.
py/ovl.py:420
↓ 4 callersFunctionGetTerminalSize
Retrieve terminal window size.
py/ovl.py:222
↓ 4 callersMethodGetUserGroups
GetUserGroups returns all groups that a user belongs to
overlord/db.go:387
↓ 4 callersMethodRecvBuf
Only recive from buffer.
py/ghost.py:112
↓ 4 callersMethodSendResponse
SendResponse sends a Response.
overlord/rpc.go:179
↓ 4 callersMethodSetIgnoreChild
(self, status)
py/ghost.py:289
↓ 4 callersMethodSetTimeout
SetTimeout sets the timeout of request. The default timeout is is defined in requestTimeoutSeconds.
overlord/rpc.go:62
↓ 4 callersMethodTimestamp
(self)
py/ghost.py:485
↓ 4 callersMethod_Fstat
(self, path)
py/ghost.py:939
↓ 4 callersMethodcheckAllowlist
checkAllowlist checks if the provided username has access to the ghost agent based on the allowlist property
overlord/overlord.go:1343
↓ 4 callersFunctionuserExists
Helper function to check if a user exists
overlord/admin_api_test.go:101
↓ 3 callersMethodEnabled
(self)
py/ghost.py:170
↓ 3 callersFunctionFindUnusedPort
()
test/overlord_e2e_unittest.py:34
↓ 3 callersFunctionGenerateRandomSecret
GenerateRandomSecret generates a cryptographically secure random string
overlord/db.go:88
↓ 3 callersMethodGetGroupByName
GetGroupByName retrieves a group by name
overlord/db.go:291
↓ 3 callersFunctionGetTLSCertPath
(host)
py/ovl.py:116
↓ 3 callersFunctionMakeRequestUrl
Create a full URL with the correct protocol and host.
py/ovl.py:120
↓ 3 callersFunctionModeStr
ModeStr translate client mode to string.
overlord/constants.go:30
↓ 3 callersMethodReset
Reset state and clear request handlers.
py/ghost.py:602
↓ 3 callersMethodSendMessage
Serialize the message and send it through the socket.
py/ghost.py:613
↓ 3 callersMethodSetFileOp
SetFileOp sets the file operation to perform.
overlord/ghost.go:294
↓ 3 callersMethodSetProgress
(self, percentage, size=None)
py/ovl.py:299
↓ 3 callersMethodStartServer
(self)
py/ovl.py:1351
↓ 3 callersMethodUnRecv
(self, buf)
py/ghost.py:106
↓ 3 callersMethodaddWebsocketContext
addWebsocketContext adds an websocket context to the overlord state.
overlord/overlord.go:326
↓ 3 callersMethodexistsInAddr
(target string)
overlord/ghost.go:320
next →1–100 of 651, ranked by callers