controllers

package
v0.0.0-...-870cc59 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2023 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
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

func BulkUpdateApps(c *gin.Context)

BulkUpdateApps updates multiple application documents in mongoDB

func CreateApp

func CreateApp(c *gin.Context)

CreateApp creates an application via gRPC

func CreateDatabase

func CreateDatabase(c *gin.Context)

CreateDatabase creates a database via gRPC

func CreateRepository

func CreateRepository(c *gin.Context)

Endpoint to create repository in GitHub

func DeleteApp

func DeleteApp(c *gin.Context)

DeleteApp deletes an application via gRPC

func DeleteDatabase

func DeleteDatabase(c *gin.Context)

DeleteDatabase deletes a database via gRPC

func DeleteUser

func DeleteUser(c *gin.Context)

DeleteUser deletes the user from database

func DeleteUserByAdmin

func DeleteUserByAdmin(c *gin.Context)

DeleteUserByAdmin deletes the user from database

func DeployWebTerminal

func DeployWebTerminal(c *gin.Context)

DeployWebTerminal shares an application container's shell over web using `gotty`

func FetchAllInstancesByUser

func FetchAllInstancesByUser(c *gin.Context)

FetchAllInstancesByUser returns all instances owned by a user

func FetchAppLogs

func FetchAppLogs(c *gin.Context)

FetchAppLogs returns the docker container logs of an application via gRPC

func FetchAppsByUser

func FetchAppsByUser(c *gin.Context)

FetchAppsByUser returns all applications owned by a user

func FetchDatabasesByUser

func FetchDatabasesByUser(c *gin.Context)

FetchDatabasesByUser returns all databases owned by a user

func FetchMetrics

func FetchMetrics(c *gin.Context)

FetchMetrics retrieves the metrics of an application's container

func GctlLogin

func GctlLogin(c *gin.Context)

GctlLogin validates the email id and alllow user to login in gctl

func GetAllApplications

func GetAllApplications(c *gin.Context)

GetAllApplications gets all the applications from DB

func GetAllDatabases

func GetAllDatabases(c *gin.Context)

GetAllDatabases gets all the Databases info from mongoDB

func GetAllNodes

func GetAllNodes(c *gin.Context)

GetAllNodes fetches all the nodes registered on redis corresponding to their service

func GetAllUsers

func GetAllUsers(c *gin.Context)

GetAllUsers gets all the users registered on the app

func GetApplicationInfo

func GetApplicationInfo(c *gin.Context)

GetApplicationInfo gets info regarding a particular application

func GetDatabaseInfo

func GetDatabaseInfo(c *gin.Context)

GetDatabaseInfo gets info regarding a particular database

func GetLoggedInUserInfo

func GetLoggedInUserInfo(c *gin.Context)

GetLoggedInUserInfo returns info regarding the current logged in user

func GetNodesByName

func GetNodesByName(c *gin.Context)

GetNodesByName fetches master nodes for 'master' and others for 'workers' Rest specific service nodes are returned

func GetUserInfo

func GetUserInfo(c *gin.Context)

GetUserInfo gets info regarding particular user

func GrantSuperuserPrivilege

func GrantSuperuserPrivilege(c *gin.Context)

GrantSuperuserPrivilege grants superuser access to a user

func Handle404

func Handle404(c *gin.Context)

Handle404 handles 404 errors

func RebuildApp

func RebuildApp(c *gin.Context)

RebuildApp rebuilds an application via gRPC

func Register

func Register(c *gin.Context)

Register handles registration of new users

func RevokeSuperuserPrivilege

func RevokeSuperuserPrivilege(c *gin.Context)

RevokeSuperuserPrivilege revokes superuser access from a user

func RevokeToken

func RevokeToken(c *gin.Context)

RevokeToken updates the uuid of user so that gctl token gets invalidated

func TransferApplicationOwnership

func TransferApplicationOwnership(c *gin.Context)

TransferApplicationOwnership transfers the ownership of an application to another user

func TransferDatabaseOwnership

func TransferDatabaseOwnership(c *gin.Context)

TransferDatabaseOwnership transfers the ownership of a database to another user

func UpdateAppByName

func UpdateAppByName(c *gin.Context)

UpdateAppByName updates the app getting name from url params

func UpdatePassword

func UpdatePassword(c *gin.Context)

UpdatePassword updates the password of a user

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL