Documentation ¶
Index ¶
- Constants
- func BulkUpdateApps(c *gin.Context)
- func CreateApp(c *gin.Context)
- func CreateDatabase(c *gin.Context)
- func CreateRepository(c *gin.Context)
- func DeleteApp(c *gin.Context)
- func DeleteDatabase(c *gin.Context)
- func DeleteUser(c *gin.Context)
- func DeleteUserByAdmin(c *gin.Context)
- func DeployWebTerminal(c *gin.Context)
- func FetchAllInstancesByUser(c *gin.Context)
- func FetchAppLogs(c *gin.Context)
- func FetchAppsByUser(c *gin.Context)
- func FetchDatabasesByUser(c *gin.Context)
- func FetchMetrics(c *gin.Context)
- func GctlLogin(c *gin.Context)
- func GetAllApplications(c *gin.Context)
- func GetAllDatabases(c *gin.Context)
- func GetAllNodes(c *gin.Context)
- func GetAllUsers(c *gin.Context)
- func GetApplicationInfo(c *gin.Context)
- func GetDatabaseInfo(c *gin.Context)
- func GetLoggedInUserInfo(c *gin.Context)
- func GetNodesByName(c *gin.Context)
- func GetRedisLogs(c *gin.Context)
- func GetUserInfo(c *gin.Context)
- func GrantSuperuserPrivilege(c *gin.Context)
- func Handle404(c *gin.Context)
- func RebuildApp(c *gin.Context)
- func Register(c *gin.Context)
- func RevokeSuperuserPrivilege(c *gin.Context)
- func RevokeToken(c *gin.Context)
- func TransferApplicationOwnership(c *gin.Context)
- func TransferDatabaseOwnership(c *gin.Context)
- func UpdateAppByName(c *gin.Context)
- func UpdatePassword(c *gin.Context)
Constants ¶
const ( // WorkerNode is the reference to the worker nodes WorkerNode = "workers" // MasterNode is the reference to the master nodes MasterNode = "master" )
Variables ¶
This section is empty.
Functions ¶
func BulkUpdateApps ¶
BulkUpdateApps updates multiple application documents in mongoDB
func CreateDatabase ¶
CreateDatabase creates a database via gRPC
func CreateRepository ¶
Endpoint to create repository in GitHub
func DeleteDatabase ¶
DeleteDatabase deletes a database via gRPC
func DeleteUserByAdmin ¶
DeleteUserByAdmin deletes the user from database
func DeployWebTerminal ¶
DeployWebTerminal shares an application container's shell over web using `gotty`
func FetchAllInstancesByUser ¶
FetchAllInstancesByUser returns all instances owned by a user
func FetchAppLogs ¶
FetchAppLogs returns the docker container logs of an application via gRPC
func FetchAppsByUser ¶
FetchAppsByUser returns all applications owned by a user
func FetchDatabasesByUser ¶
FetchDatabasesByUser returns all databases owned by a user
func FetchMetrics ¶
FetchMetrics retrieves the metrics of an application's container
func GetAllApplications ¶
GetAllApplications gets all the applications from DB
func GetAllDatabases ¶
GetAllDatabases gets all the Databases info from mongoDB
func GetAllNodes ¶
GetAllNodes fetches all the nodes registered on redis corresponding to their service
func GetAllUsers ¶
GetAllUsers gets all the users registered on the app
func GetApplicationInfo ¶
GetApplicationInfo gets info regarding a particular application
func GetDatabaseInfo ¶
GetDatabaseInfo gets info regarding a particular database
func GetLoggedInUserInfo ¶
GetLoggedInUserInfo returns info regarding the current logged in user
func GetNodesByName ¶
GetNodesByName fetches master nodes for 'master' and others for 'workers' Rest specific service nodes are returned
func GetRedisLogs ¶
func GrantSuperuserPrivilege ¶
GrantSuperuserPrivilege grants superuser access to a user
func RevokeSuperuserPrivilege ¶
RevokeSuperuserPrivilege revokes superuser access from a user
func RevokeToken ¶
RevokeToken updates the uuid of user so that gctl token gets invalidated
func TransferApplicationOwnership ¶
TransferApplicationOwnership transfers the ownership of an application to another user
func TransferDatabaseOwnership ¶
TransferDatabaseOwnership transfers the ownership of a database to another user
func UpdateAppByName ¶
UpdateAppByName updates the app getting name from url params
func UpdatePassword ¶
UpdatePassword updates the password of a user
Types ¶
This section is empty.