package
0.0.0-20250331114127-736dde6625db
Repository: https://github.com/sdslabs/gasper.git
Documentation: pkg.go.dev
# Functions
BulkUpdateApps updates multiple application documents in mongoDB.
CreateApp creates an application via gRPC.
CreateDatabase creates a database via gRPC.
Endpoint to create repository in GitHub.
DeleteApp deletes an application via gRPC.
DeleteAppUsingAppName deletes an application via gRPC using appName as a parameter.
DeleteDatabase deletes a database via gRPC.
DeleteUser deletes the user from database.
DeleteUserByAdmin deletes the user from database.
DeployWebTerminal shares an application container's shell over web using `gotty`.
FetchAllInstancesByUser returns all instances owned by a user.
FetchAppLogs returns the docker container logs of an application via gRPC.
FetchAppsByUser returns all applications owned by a user.
FetchDatabasesByUser returns all databases owned by a user.
FetchMetrics retrieves the metrics of an application's container.
GctlLogin validates the email id and alllow user to login in gctl.
GetAllApplications gets all the applications from DB.
GetAllDatabases gets all the Databases info from mongoDB.
GetAllNodes fetches all the nodes registered on redis corresponding to their service.
GetAllUsers gets all the users registered on the app.
GetApplicationInfo gets info regarding a particular application.
GetDatabaseInfo gets info regarding a particular database.
GetLoggedInUserInfo returns info regarding the current logged in user.
GetNodesByName fetches master nodes for 'master' and others for 'workers' Rest specific service nodes are returned.
No description provided by the author
GetUserInfo gets info regarding particular user.
GrantSuperuserPrivilege grants superuser access to a user.
Handle404 handles 404 errors.
RebuildApp rebuilds an application via gRPC.
Register handles registration of new users.
RevokeSuperuserPrivilege revokes superuser access from a user.
RevokeToken updates the uuid of user so that gctl token gets invalidated.
TransferApplicationOwnership transfers the ownership of an application to another user.
TransferDatabaseOwnership transfers the ownership of a database to another user.
UpdateAppByName updates the app getting name from url params.
UpdateData updates the data of an application using the update request payload.
UpdatePassword updates the password of a user.
# Constants
MasterNode is the reference to the master nodes.
WorkerNode is the reference to the worker nodes.