Documentation
¶
Index ¶
- Variables
- type Controller
- func (c *Controller) ApplicationCreateViewController(w http.ResponseWriter, r *http.Request)
- func (c *Controller) ApplicationDeleteViewController(w http.ResponseWriter, r *http.Request)
- func (c *Controller) ApplicationImportToEnvironmentFormController(w http.ResponseWriter, r *http.Request)
- func (c *Controller) ApplicationListViewController(w http.ResponseWriter, r *http.Request)
- func (c *Controller) ApplicationMappingToEnvironmentFormController(w http.ResponseWriter, r *http.Request)
- func (c *Controller) ApplicationUpdateViewController(w http.ResponseWriter, r *http.Request)
- func (c *Controller) ApplicationViewController(w http.ResponseWriter, r *http.Request)
- func (c *Controller) AuthMiddleware(next http.Handler) http.Handler
- func (c *Controller) CacheTemplates()
- func (c *Controller) ClientCreateViewController(w http.ResponseWriter, r *http.Request)
- func (c *Controller) ClientDeleteViewController(w http.ResponseWriter, r *http.Request)
- func (c *Controller) ClientListViewController(w http.ResponseWriter, r *http.Request)
- func (c *Controller) ClientUpdateViewController(w http.ResponseWriter, r *http.Request)
- func (c *Controller) ClientViewController(w http.ResponseWriter, r *http.Request)
- func (c *Controller) CurrentUser(r *http.Request) *model.User
- func (c *Controller) DashboardController(w http.ResponseWriter, r *http.Request)
- func (c *Controller) DatabaseCreateViewController(w http.ResponseWriter, r *http.Request)
- func (c *Controller) DatabaseDeleteViewController(w http.ResponseWriter, r *http.Request)
- func (c *Controller) DatabaseListViewController(w http.ResponseWriter, r *http.Request)
- func (c *Controller) DatabaseUpdateViewController(w http.ResponseWriter, r *http.Request)
- func (c *Controller) DatabaseViewController(w http.ResponseWriter, r *http.Request)
- func (c *Controller) DomainCheckSSLViewController(w http.ResponseWriter, r *http.Request)
- func (c *Controller) DomainCreateViewController(w http.ResponseWriter, r *http.Request)
- func (c *Controller) DomainDeleteViewController(w http.ResponseWriter, r *http.Request)
- func (c *Controller) DomainListViewController(w http.ResponseWriter, r *http.Request)
- func (c *Controller) DomainUpdateViewController(w http.ResponseWriter, r *http.Request)
- func (c *Controller) DomainViewController(w http.ResponseWriter, r *http.Request)
- func (c *Controller) EnvironmentCreateViewController(w http.ResponseWriter, r *http.Request)
- func (c *Controller) EnvironmentDeleteViewController(w http.ResponseWriter, r *http.Request)
- func (c *Controller) EnvironmentListViewController(w http.ResponseWriter, r *http.Request)
- func (c *Controller) EnvironmentUpdateViewController(w http.ResponseWriter, r *http.Request)
- func (c *Controller) EnvironmentViewController(w http.ResponseWriter, r *http.Request)
- func (c *Controller) FrameworkCreateViewController(w http.ResponseWriter, r *http.Request)
- func (c *Controller) FrameworkDeleteViewController(w http.ResponseWriter, r *http.Request)
- func (c *Controller) FrameworkListViewController(w http.ResponseWriter, r *http.Request)
- func (c *Controller) FrameworkUpdateViewController(w http.ResponseWriter, r *http.Request)
- func (c *Controller) FrameworkViewController(w http.ResponseWriter, r *http.Request)
- func (c *Controller) HealthController(w http.ResponseWriter, r *http.Request)
- func (c *Controller) LoginActionController(w http.ResponseWriter, r *http.Request)
- func (c *Controller) LoginPageController(w http.ResponseWriter, r *http.Request)
- func (c *Controller) PoolCreateViewController(w http.ResponseWriter, r *http.Request)
- func (c *Controller) PoolDeleteViewController(w http.ResponseWriter, r *http.Request)
- func (c *Controller) PoolListViewController(w http.ResponseWriter, r *http.Request)
- func (c *Controller) PoolUpdateViewController(w http.ResponseWriter, r *http.Request)
- func (c *Controller) PoolViewController(w http.ResponseWriter, r *http.Request)
- func (c *Controller) ProjectCreateViewController(w http.ResponseWriter, r *http.Request)
- func (c *Controller) ProjectDeleteViewController(w http.ResponseWriter, r *http.Request)
- func (c *Controller) ProjectListViewController(w http.ResponseWriter, r *http.Request)
- func (c *Controller) ProjectUpdateViewController(w http.ResponseWriter, r *http.Request)
- func (c *Controller) ProjectViewController(w http.ResponseWriter, r *http.Request)
- func (c *Controller) RoleCreateViewController(w http.ResponseWriter, r *http.Request)
- func (c *Controller) RoleDeleteViewController(w http.ResponseWriter, r *http.Request)
- func (c *Controller) RoleListViewController(w http.ResponseWriter, r *http.Request)
- func (c *Controller) RoleUpdateViewController(w http.ResponseWriter, r *http.Request)
- func (c *Controller) RoleViewController(w http.ResponseWriter, r *http.Request)
- func (c *Controller) RuntimeCreateViewController(w http.ResponseWriter, r *http.Request)
- func (c *Controller) RuntimeDeleteViewController(w http.ResponseWriter, r *http.Request)
- func (c *Controller) RuntimeListViewController(w http.ResponseWriter, r *http.Request)
- func (c *Controller) RuntimeUpdateViewController(w http.ResponseWriter, r *http.Request)
- func (c *Controller) RuntimeViewController(w http.ResponseWriter, r *http.Request)
- func (c *Controller) ServerCreateViewController(w http.ResponseWriter, r *http.Request)
- func (c *Controller) ServerDeleteViewController(w http.ResponseWriter, r *http.Request)
- func (c *Controller) ServerListViewController(w http.ResponseWriter, r *http.Request)
- func (c *Controller) ServerUpdateViewController(w http.ResponseWriter, r *http.Request)
- func (c *Controller) ServerViewController(w http.ResponseWriter, r *http.Request)
- func (c *Controller) UserCreateAPIController(w http.ResponseWriter, r *http.Request)
- func (c *Controller) UserCreateViewController(w http.ResponseWriter, r *http.Request)
- func (c *Controller) UserDeleteAPIController(w http.ResponseWriter, r *http.Request)
- func (c *Controller) UserDeleteViewController(w http.ResponseWriter, r *http.Request)
- func (c *Controller) UserListAPIController(w http.ResponseWriter, r *http.Request)
- func (c *Controller) UserListViewController(w http.ResponseWriter, r *http.Request)
- func (c *Controller) UserUpdateAPIController(w http.ResponseWriter, r *http.Request)
- func (c *Controller) UserUpdateViewController(w http.ResponseWriter, r *http.Request)
- func (c *Controller) UserViewAPIController(w http.ResponseWriter, r *http.Request)
- func (c *Controller) UserViewController(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
var ( // ApplicationApplicationIDInvalidErrorMessage is the error message prefix for the invalid application id. ApplicationApplicationIDInvalidErrorMessage = "Invalid application id" // ApplicationCreateClientIDInvalidErrorMessage is the error message for the invalid client id in the application form. ApplicationCreateClientIDInvalidErrorMessage = "Invalid client id" // ApplicationCreateCreateApplicationErrorMessage is the error message for the failed application creation. ApplicationCreateCreateApplicationErrorMessage = "Failed to create the application" // ApplicationCreateDatabaseIDInvalidErrorMessage is the error message for the invalid database id in the application form. ApplicationCreateDatabaseIDInvalidErrorMessage = "Invalid database id" // ApplicationCreateDomainIDInvalidErrorMessage is the error message for the invalid domain id in the application form. ApplicationCreateDomainIDInvalidErrorMessage = "Invalid domain id" // ApplicationCreateEnvironmentIDInvalidErrorMessage is the error message for the invalid environment id in the application form. ApplicationCreateEnvironmentIDInvalidErrorMessage = "Invalid environment id" // ApplicationCreateFailedToGetClientsErrorMessage is the error message for the failed clients get. ApplicationCreateFailedToGetClientsErrorMessage = "Failed to get clients" // ApplicationCreateFailedToGetDatabasesErrorMessage is the error message for the failed databases get. ApplicationCreateFailedToGetDatabasesErrorMessage = "Failed to get databases" // ApplicationCreateFailedToGetDomainsErrorMessage is the error message for the failed domains get. ApplicationCreateFailedToGetDomainsErrorMessage = "Failed to get domains" // ApplicationCreateFailedToGetEnvironmentsErrorMessage is the error message for the failed environments get. ApplicationCreateFailedToGetEnvironmentsErrorMessage = "Failed to get environments" // ApplicationCreateFailedToGetFrameworksErrorMessage is the error message for the failed frameworks get. ApplicationCreateFailedToGetFrameworksErrorMessage = "Failed to get frameworks" // ApplicationCreateFailedToGetPoolsErrorMessage is the error message for the failed pools get. ApplicationCreateFailedToGetPoolsErrorMessage = "Failed to get pools" // ApplicationCreateFailedToGetProjectsErrorMessage is the error message for the failed projects get. ApplicationCreateFailedToGetProjectsErrorMessage = "Failed to get projects" // ApplicationCreateFailedToGetRuntimesErrorMessage is the error message for the failed runtimes get. ApplicationCreateFailedToGetRuntimesErrorMessage = "Failed to get runtimes" // ApplicationCreateFrameworkIDInvalidErrorMessage is the error message for the invalid framework id in the application form. ApplicationCreateFrameworkIDInvalidErrorMessage = "Invalid framework id" // ApplicationCreatePoolIDInvalidErrorMessage is the error message for the invalid pool id in the application form. ApplicationCreatePoolIDInvalidErrorMessage = "Invalid pool id" // ApplicationCreateProjectIDInvalidErrorMessage is the error message for the invalid project id in the application form. ApplicationCreateProjectIDInvalidErrorMessage = "Invalid project id" // ApplicationCreateRequiredFieldMissing is the error message for the required fields in the application create. ApplicationCreateRequiredFieldMissing = "Client, project, environment are required" // ApplicationCreateRuntimeIDInvalidErrorMessage is the error message for the invalid runtime id in the application form. ApplicationCreateRuntimeIDInvalidErrorMessage = "Invalid runtime id" // ApplicationDeleteFailedToDeleteErrorMessage is the error message for the failed application deletion. ApplicationDeleteFailedToDeleteErrorMessage = "Failed to delete the application" // ApplicationFailedToGetApplicationErrorMessage is the error message for the failed application get. ApplicationFailedToGetApplicationErrorMessage = "Failed to get application data" // ApplicationImportFailedToGetEnvironmentErrorMessage is the error message for the failed environment get. ApplicationImportFailedToGetEnvironmentErrorMessage = "Failed to get environment" // ApplicationImportFailedToSaveFileErrorMessage is the error message for the failed file save. ApplicationImportFailedToSaveFileErrorMessage = "Failed to save the file" // ApplicationImportInvalidEnvironmentIDErrorMessage is the error message for the invalid environment id in the application import form. ApplicationImportInvalidEnvironmentIDErrorMessage = "Invalid environment id" // ApplicationListFailedToGetApplicationsErrorMessage is the error message for the failed applications get. ApplicationListFailedToGetApplicationsErrorMessage = "Failed to get applications" // ApplicationUpdateUpdateApplicationErrorMessage is the error message for the failed application update. ApplicationUpdateUpdateApplicationErrorMessage = "Failed to update the application" // AuthFailedToGenerateSessionKeyErrorMessage is the error message for the failed session key generation. AuthFailedToGenerateSessionKeyErrorMessage = "Failed to generate session key" // ClientClientIDInvalidErrorMessage is the error message prefix for the invalid client id. ClientClientIDInvalidErrorMessage = "Invalid client id" // ClientCreateCreateClientErrorMessage is the error message for the failed client creation. ClientCreateCreateClientErrorMessage = "Failed to create the client" // ClientCreateRequiredFieldMissing is the error message for the required fields in the client create. ClientCreateRequiredFieldMissing = "Name is required" // ClientDeleteFailedToDeleteErrorMessage is the error message for the failed client deletion. ClientDeleteFailedToDeleteErrorMessage = "Failed to delete the client" // ClientFailedToGetClientErrorMessage is the error message for the failed client get. ClientFailedToGetClientErrorMessage = "Failed to get client data" // ClientListFailedToGetClientsErrorMessage is the error message for the failed clients get. ClientListFailedToGetClientsErrorMessage = "Failed to get clients" // ClientUpdateRequiredFieldMissing is the error message for the required fields in the client update. ClientUpdateRequiredFieldMissing = "Name is required" // ClientUpdateUpdateClientErrorMessage is the error message for the failed client update. ClientUpdateUpdateClientErrorMessage = "Failed to update the client" // DatabaseCreateCreateDatabaseErrorMessage is the error message for the failed database creation. DatabaseCreateCreateDatabaseErrorMessage = "Failed to create the database" // DatabaseCreateRequiredFieldMissing is the error message for the required fields in the database create. DatabaseCreateRequiredFieldMissing = "Name is required" // DatabaseDeleteFailedToDeleteErrorMessage is the error message for the failed database deletion. DatabaseDeleteFailedToDeleteErrorMessage = "Failed to delete the database" // DatabaseDatabaseIDInvalidErrorMessage is the error message prefix for the invalid database id. DatabaseDatabaseIDInvalidErrorMessage = "Invalid database id" // DatabaseFailedToGetDatabaseErrorMessage is the error message for the failed database get. DatabaseFailedToGetDatabaseErrorMessage = "Failed to get database data" // DatabaseListFailedToGetDatabasesErrorMessage is the error message for the failed databases get. DatabaseListFailedToGetDatabasesErrorMessage = "Failed to get databases" // DatabaseUpdateRequiredFieldMissing is the error message for the required fields in the database update. DatabaseUpdateRequiredFieldMissing = "Name is required" // DatabaseUpdateUpdateDatabaseErrorMessage is the error message for the failed database update. DatabaseUpdateUpdateDatabaseErrorMessage = "Failed to update the database" // DomainCheckSSLFailedToUpdateDomainErrorMessage is the error message for the failed domain update. DomainCheckSSLFailedToUpdateDomainErrorMessage = "Failed to update the domain" // DomainCreateCreateDomainErrorMessage is the error message for the failed domain creation. DomainCreateCreateDomainErrorMessage = "Failed to create the domain" // DomainCreateRequiredFieldMissing is the error message for the required fields in the domain create. DomainCreateRequiredFieldMissing = "Name is required" // DomainDeleteFailedToDeleteErrorMessage is the error message for the failed domain deletion. DomainDeleteFailedToDeleteErrorMessage = "Failed to delete the domain" // DomainDomainIDInvalidErrorMessage is the error message prefix for the invalid domain id. DomainDomainIDInvalidErrorMessage = "Invalid domain id" // DomainFailedToGetDomainErrorMessage is the error message for the failed domain get. DomainFailedToGetDomainErrorMessage = "Failed to get domain data" // DomainListFailedToGetDomainsErrorMessage is the error message for the failed domains get. DomainListFailedToGetDomainsErrorMessage = "Failed to get domains" // DomainUpdateRequiredFieldMissing is the error message for the required fields in the domain update. DomainUpdateRequiredFieldMissing = "Name is required" // DomainUpdateUpdateDomainErrorMessage is the error message for the failed domain update. DomainUpdateUpdateDomainErrorMessage = "Failed to update the domain" // EnvironmentCreateCreateEnvironmentErrorMessage is the error message for the failed environment creation. EnvironmentCreateCreateEnvironmentErrorMessage = "Failed to create the environment" // EnvironmentCreateDatabaseIDInvalidErrorMessage is the error message for the invalid database id in the environment form. EnvironmentCreateDatabaseIDInvalidErrorMessage = "Invalid database id" // EnvironmentCreateFailedToGetDatabasesErrorMessage is the error message for the failed databases get. EnvironmentCreateFailedToGetDatabasesErrorMessage = "Failed to get databases" // EnvironmentCreateFailedToGetServersErrorMessage is the error message for the failed servers get EnvironmentCreateFailedToGetServersErrorMessage = "Failed to get projects" // EnvironmentCreateServerIDInvalidErrorMessage is the error message for the invalid server id in the environment form. EnvironmentCreateServerIDInvalidErrorMessage = "Invalid server id" // EnvironmentCreateRequiredFieldMissing is the error message for the required fields in the environment create. EnvironmentCreateRequiredFieldMissing = "Name is required" // EnvironmentDeleteFailedToDeleteErrorMessage is the error message for the failed environment deletion. EnvironmentDeleteFailedToDeleteErrorMessage = "Failed to delete the environment" // EnvironmentEnvironmentIDInvalidErrorMessage is the error message prefix for the invalid environment id. EnvironmentEnvironmentIDInvalidErrorMessage = "Invalid environment id" // EnvironmentFailedToGetEnvironmentErrorMessage is the error message for the failed environment get. EnvironmentFailedToGetEnvironmentErrorMessage = "Failed to get environment data" // EnvironmentListFailedToGetServersErrorMessage is the error message for the failed servers get. EnvironmentListFailedToGetServersErrorMessage = "Failed to get servers" // EnvironmentListFailedToGetDatabasesErrorMessage is the error message for the failed databases get. EnvironmentListFailedToGetDatabasesErrorMessage = "Failed to get databases" // EnvironmentListFailedToGetEnvironmentsErrorMessage is the error message for the failed environments get. EnvironmentListFailedToGetEnvironmentsErrorMessage = "Failed to get environments" // EnvironmentListDatabaseIDInvalidErrorMessage is the error message for the invalid database id in the environment list form. EnvironmentListDatabaseIDInvalidErrorMessage = "Invalid database id" // EnvironmentListServerIDInvalidErrorMessage is the error message for the invalid server id in the environment list form. EnvironmentListServerIDInvalidErrorMessage = "Invalid server id" // EnvironmentUpdateDatabaseIDInvalidErrorMessage is the error message for the invalid database id in the environment form. EnvironmentUpdateDatabaseIDInvalidErrorMessage = "Invalid database id" // EnvironmentUpdateFailedToGetDatabasesErrorMessage is the error message for the failed databases get. EnvironmentUpdateFailedToGetDatabasesErrorMessage = "Failed to get databases" // EnvironmentUpdateFailedToGetServersErrorMessage is the error message for the failed servers get. EnvironmentUpdateFailedToGetServersErrorMessage = "Failed to get servers" // EnvironmentUpdateRequiredFieldMissing is the error message for the required fields in the environment update. EnvironmentUpdateRequiredFieldMissing = "Name is required" // EnvironmentUpdateServerIDInvalidErrorMessage is the error message for the invalid server id in the environment form. EnvironmentUpdateServerIDInvalidErrorMessage = "Invalid server id" // EnvironmentUpdateUpdateEnvironmentErrorMessage is the error message for the failed environment update. EnvironmentUpdateUpdateEnvironmentErrorMessage = "Failed to update the environment" // FrameworkCreateCreateFrameworkErrorMessage is the error message for the failed framework creation. FrameworkCreateCreateFrameworkErrorMessage = "Failed to create the framework" // FrameworkCreateRequiredFieldMissing is the error message for the required fields in the framework create. FrameworkCreateRequiredFieldMissing = "Name is required" // FrameworkDeleteFailedToDeleteErrorMessage is the error message for the failed framework deletion. FrameworkDeleteFailedToDeleteErrorMessage = "Failed to delete the framework" // FrameworkFailedToGetFrameworkErrorMessage is the error message for the failed framework get. FrameworkFailedToGetFrameworkErrorMessage = "Failed to get framework data" // FrameworkFrameworkIDInvalidErrorMessage is the error message prefix for the invalid framework id. FrameworkFrameworkIDInvalidErrorMessage = "Invalid framework id" // FrameworkListFailedToGetFrameworksErrorMessage is the error message for the failed frameworks get. FrameworkListFailedToGetFrameworksErrorMessage = "Failed to get frameworks" // FrameworkUpdateRequiredFieldMissing is the error message for the required fields in the framework update. FrameworkUpdateRequiredFieldMissing = "Name is required" // FrameworkUpdateUpdateFrameworkErrorMessage is the error message for the failed framework update. FrameworkUpdateUpdateFrameworkErrorMessage = "Failed to update the framework" // PoolCreateCreatePoolErrorMessage is the error message for the failed pool creation. PoolCreateCreatePoolErrorMessage = "Failed to create the pool" // PoolCreateRequiredFieldMissing is the error message for the required fields in the pool create. PoolCreateRequiredFieldMissing = "Name is required" // PoolDeleteFailedToDeleteErrorMessage is the error message for the failed pool deletion. PoolDeleteFailedToDeleteErrorMessage = "Failed to delete the pool" // PoolPoolIDInvalidErrorMessage is the error message prefix for the invalid pool id. PoolPoolIDInvalidErrorMessage = "Invalid pool id" // PoolFailedToGetPoolErrorMessage is the error message for the failed pool get. PoolFailedToGetPoolErrorMessage = "Failed to get pool data" // PoolListFailedToGetPoolsErrorMessage is the error message for the failed pools get. PoolListFailedToGetPoolsErrorMessage = "Failed to get pools" // PoolUpdateRequiredFieldMissing is the error message for the required fields in the pool update. PoolUpdateRequiredFieldMissing = "Name is required" // PoolUpdateUpdatePoolErrorMessage is the error message for the failed pool update. PoolUpdateUpdatePoolErrorMessage = "Failed to update the pool" // ProjectCreateCreateProjectErrorMessage is the error message for the failed project creation. ProjectCreateCreateProjectErrorMessage = "Failed to create the project" // ProjectCreateRequiredFieldMissing is the error message for the required fields in the project create. ProjectCreateRequiredFieldMissing = "Name is required" // ProjectDeleteFailedToDeleteErrorMessage is the error message for the failed project deletion. ProjectDeleteFailedToDeleteErrorMessage = "Failed to delete the project" // ProjectFailedToGetProjectErrorMessage is the error message for the failed project get. ProjectFailedToGetProjectErrorMessage = "Failed to get project data" // ProjectListFailedToGetProjectsErrorMessage is the error message for the failed projects get. ProjectListFailedToGetProjectsErrorMessage = "Failed to get projects" // ProjectProjectIDInvalidErrorMessage is the error message prefix for the invalid project id. ProjectProjectIDInvalidErrorMessage = "Invalid project id" // ProjectUpdateRequiredFieldMissing is the error message for the required fields in the project update. ProjectUpdateRequiredFieldMissing = "Name is required" // ProjectUpdateUpdateProjectErrorMessage is the error message for the failed project update. ProjectUpdateUpdateProjectErrorMessage = "Failed to update the project" // RoleFailedToGetRoleErrorMessage is the error message for the failed role get. RoleFailedToGetRoleErrorMessage = "Failed to get role data" // RoleFailedToGetResourcesErrorMessage is the error message for the failed resources get. RoleFailedToGetResourcesErrorMessage = "Failed to get resources" // RoleRoleIDInvalidErrorMessage is the error message prefix for the invalid role id. RoleRoleIDInvalidErrorMessage = "Invalid role id" // RoleResourceIDInvalidErrorMessage is the error message for the invalid resource id in the role form. RoleResourceIDInvalidErrorMessage = "Invalid resource id" // RoleCreateRequiredFieldMissing is the error message for the required fields in the role create. RoleCreateRequiredFieldMissing = "Name is required" // RoleCreateCreateRoleErrorMessage is the error message for the failed role creation. RoleCreateCreateRoleErrorMessage = "Failed to create the role" // RoleDeleteFailedToDeleteErrorMessage is the error message for the failed role deletion. RoleDeleteFailedToDeleteErrorMessage = "Failed to delete the role" // RoleUpdateRequiredFieldMissing is the error message for the required fields in the role update. RoleUpdateRequiredFieldMissing = "Name is required" // RoleUpdateUpdateRoleErrorMessage is the error message for the failed role update. RoleUpdateUpdateRoleErrorMessage = "Failed to update the role" // RoleListFailedToGetRolesErrorMessage is the error message for the failed roles get. RoleListFailedToGetRolesErrorMessage = "Failed to get roles" // RuntimeCreateCreateRuntimeErrorMessage is the error message for the failed runtime creation. RuntimeCreateCreateRuntimeErrorMessage = "Failed to create the runtime" // RuntimeCreateRequiredFieldMissing is the error message for the required fields in the runtime create. RuntimeCreateRequiredFieldMissing = "Name is required" // RuntimeDeleteFailedToDeleteErrorMessage is the error message for the failed runtime deletion. RuntimeDeleteFailedToDeleteErrorMessage = "Failed to delete the runtime" // RuntimeRuntimeIDInvalidErrorMessage is the error message prefix for the invalid runtime id. RuntimeRuntimeIDInvalidErrorMessage = "Invalid runtime id" // RuntimeFailedToGetRuntimeErrorMessage is the error message for the failed runtime get. RuntimeFailedToGetRuntimeErrorMessage = "Failed to get runtime data" // RuntimeListFailedToGetRuntimesErrorMessage is the error message for the failed runtimes get. RuntimeListFailedToGetRuntimesErrorMessage = "Failed to get runtimes" // RuntimeUpdateRequiredFieldMissing is the error message for the required fields in the runtime update. RuntimeUpdateRequiredFieldMissing = "Name is required" // RuntimeUpdateUpdateRuntimeErrorMessage is the error message for the failed runtime update. RuntimeUpdateUpdateRuntimeErrorMessage = "Failed to update the runtime" // ServerCreateCreateServerErrorMessage is the error message for the failed server creation. ServerCreateCreateServerErrorMessage = "Failed to create the server" // ServerCreateRequiredFieldMissing is the error message for the required fields in the server create. ServerCreateRequiredFieldMissing = "Name and remote address are required" // ServerCreatePoolIDInvalidErrorMessage is the error message for the invalid pool id in the server form. ServerCreatePoolIDInvalidErrorMessage = "Invalid pool id" // ServerCreateFailedToGetRuntimesErrorMessage is the error message for the failed runtimes get. ServerCreateFailedToGetRuntimesErrorMessage = "Failed to get runtimes" // ServerCreateFailedToGetPoolsErrorMessage is the error message for the failed pools get. ServerCreateFailedToGetPoolsErrorMessage = "Failed to get pools" // ServerCreateRuntimeIDInvalidErrorMessage is the error message for the invalid runtime id in the server form. ServerCreateRuntimeIDInvalidErrorMessage = "Invalid runtime id" // ServerDeleteFailedToDeleteErrorMessage is the error message for the failed server deletion. ServerDeleteFailedToDeleteErrorMessage = "Failed to delete the server" // ServerServerIDInvalidErrorMessage is the error message prefix for the invalid server id. ServerServerIDInvalidErrorMessage = "Invalid server id" // ServerFailedToGetServerErrorMessage is the error message for the failed server get. ServerFailedToGetServerErrorMessage = "Failed to get server data" // ServerListFailedToGetPoolsErrorMessage is the error message for the failed pools get. ServerListFailedToGetPoolsErrorMessage = "Failed to get pools" // ServerListFailedToGetRuntimesErrorMessage is the error message for the failed runtimes get. ServerListFailedToGetRuntimesErrorMessage = "Failed to get runtimes" // ServerListFailedToGetServersErrorMessage is the error message for the failed servers get. ServerListFailedToGetServersErrorMessage = "Failed to get servers" // ServerListPoolIDInvalidErrorMessage is the error message for the invalid pool id in the server list form. ServerListPoolIDInvalidErrorMessage = "Invalid pool id" // ServerListRuntimeIDInvalidErrorMessage is the error message for the invalid runtime id in the server list form. ServerListRuntimeIDInvalidErrorMessage = "Invalid runtime id" // ServerUpdateRequiredFieldMissing is the error message for the required fields in the server update. ServerUpdateRequiredFieldMissing = "Name and remote address are required" // ServerUpdateUpdateServerErrorMessage is the error message for the failed server update. ServerUpdateUpdateServerErrorMessage = "Failed to update the server" // ServerUpdatePoolIDInvalidErrorMessage is the error message for the invalid pool id in the server form. ServerUpdatePoolIDInvalidErrorMessage = "Invalid pool id" // ServerUpdateRuntimeIDInvalidErrorMessage is the error message for the invalid runtime id in the server form. ServerUpdateRuntimeIDInvalidErrorMessage = "Invalid runtime id" // UserCreateRequiredFieldMissing is the error message for the required fields in the user create. UserCreateRequiredFieldMissing = "Name, email, password and role are required" // UserCreateCreateUserErrorMessagePrefix is the error message prefix for the failed user creation. UserCreateCreateUserErrorMessagePrefix = "Internal server error - failed to create the user" // UserUpdateFailedToGetUserErrorMessage is the error message for the failed user get. UserUpdateFailedToGetUserErrorMessage = "Internal server error - failed to get the user" // UserUpdateRequiredFieldMissing is the error message for the required fields in the user update. UserUpdateRequiredFieldMissing = "Name, email and role are required" // UserUpdateFailedToUpdateUserErrorMessage is the error message for the failed user update. UserUpdateFailedToUpdateUserErrorMessage = "Internal server error - failed to update the user" // UserDeleteFailedToDeleteErrorMessage is the error message for the failed user deletion. UserDeleteFailedToDeleteErrorMessage = "Internal server error - failed to delete the user" // UserListFailedToGetUsersErrorMessage is the error message for the failed users get. UserListFailedToGetUsersErrorMessage = "Internal server error - failed to get the users" // UserPasswordEncriptionFailedErrorMessage is the error message for the failed password encryption. UserPasswordEncriptionFailedErrorMessage = "Internal server error - failed to encrypt the password" // UserRoleIDInvalidErrorMessagePrefix is the error message prefix for the invalid role id. UserRoleIDInvalidErrorMessagePrefix = "Invalid role id" // UserUserIDInvalidErrorMessagePrefix is the error message prefix for the invalid user id. UserUserIDInvalidErrorMessagePrefix = "Invalid user id" // UserFailedToGetUserErrorMessage is the error message for the failed user get. UserFailedToGetUserErrorMessage = "Failed to get user data" // UserFailedToGetRolesErrorMessage is the error message for the failed roles get. UserFailedToGetRolesErrorMessage = "Failed to get roles" )
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller type for controller it holds the dependencies for the controller
func New ¶
func New( repositoryContainer model.RepositoryContainer, sessionStore *session.Store, csvStorage storage.CSVStorage, renderer *render.Renderer, ) *Controller
New creates a new controller
func (*Controller) ApplicationCreateViewController ¶
func (c *Controller) ApplicationCreateViewController(w http.ResponseWriter, r *http.Request)
ApplicationCreateViewController is the controller for the application create view. On case of get request, it returns the application create page. On case of post request, it creates the application and redirects to the list page.
func (*Controller) ApplicationDeleteViewController ¶
func (c *Controller) ApplicationDeleteViewController(w http.ResponseWriter, r *http.Request)
ApplicationDeleteViewController is the controller for the application delete form. It is responsible for deleting a application. It redirects to the application list page.
func (*Controller) ApplicationImportToEnvironmentFormController ¶
func (c *Controller) ApplicationImportToEnvironmentFormController(w http.ResponseWriter, r *http.Request)
ApplicationImportToEnvironmentFormController is the controller for the application import to environment form. It is responsible for handling the forms that guides you throught the import process.
func (*Controller) ApplicationListViewController ¶
func (c *Controller) ApplicationListViewController(w http.ResponseWriter, r *http.Request)
ApplicationListViewController is the controller for the application list view.
func (*Controller) ApplicationMappingToEnvironmentFormController ¶
func (c *Controller) ApplicationMappingToEnvironmentFormController(w http.ResponseWriter, r *http.Request)
ApplicationMappingToEnvironmentFormController is the controller for the application mapping to environment form. It is responsible for handling the forms that guides you throught the mapping process.
func (*Controller) ApplicationUpdateViewController ¶
func (c *Controller) ApplicationUpdateViewController(w http.ResponseWriter, r *http.Request)
ApplicationUpdateViewController is the controller for the application update view. On case of get request, it returns the application update page. On case of post request, it updates the application and redirects to the list page.
func (*Controller) ApplicationViewController ¶
func (c *Controller) ApplicationViewController(w http.ResponseWriter, r *http.Request)
ApplicationViewController is the controller for the application view page. GET /admin/application/view/{applicationId} It renders the application view page.
func (*Controller) AuthMiddleware ¶
func (c *Controller) AuthMiddleware(next http.Handler) http.Handler
AuthMiddleware is the authentication middleware. It is responsible for checking if the user is authenticated.
func (*Controller) CacheTemplates ¶
func (c *Controller) CacheTemplates()
CacheTemplates builds the templates and stores them in templates.
func (*Controller) ClientCreateViewController ¶
func (c *Controller) ClientCreateViewController(w http.ResponseWriter, r *http.Request)
ClientCreateViewController is the controller for the client create view. On case of get request, it returns the client create page. On case of post request, it creates the client and redirects to the list page.
func (*Controller) ClientDeleteViewController ¶
func (c *Controller) ClientDeleteViewController(w http.ResponseWriter, r *http.Request)
ClientDeleteViewController is the controller for the client delete form. It is responsible for deleting a client. It redirects to the client list page.
func (*Controller) ClientListViewController ¶
func (c *Controller) ClientListViewController(w http.ResponseWriter, r *http.Request)
ClientListViewController is the controller for the client list view.
func (*Controller) ClientUpdateViewController ¶
func (c *Controller) ClientUpdateViewController(w http.ResponseWriter, r *http.Request)
ClientUpdateViewController is the controller for the client update view. On case of get request, it returns the client update page. On case of post request, it updates the client and redirects to the list page.
func (*Controller) ClientViewController ¶
func (c *Controller) ClientViewController(w http.ResponseWriter, r *http.Request)
ClientViewController is the controller for the client view page. GET /admin/client/view/{clientId} It renders the client view page.
func (*Controller) CurrentUser ¶
func (c *Controller) CurrentUser(r *http.Request) *model.User
CurrentUser returns the current user.
func (*Controller) DashboardController ¶
func (c *Controller) DashboardController(w http.ResponseWriter, r *http.Request)
DashboardController is the dashboard controller.
func (*Controller) DatabaseCreateViewController ¶
func (c *Controller) DatabaseCreateViewController(w http.ResponseWriter, r *http.Request)
DatabaseCreateViewController is the controller for the database create view. On case of get request, it returns the database create page. On case of post request, it creates the database and redirects to the list page.
func (*Controller) DatabaseDeleteViewController ¶
func (c *Controller) DatabaseDeleteViewController(w http.ResponseWriter, r *http.Request)
DatabaseDeleteViewController is the controller for the database delete form. It is responsible for deleting a database. It redirects to the database list page.
func (*Controller) DatabaseListViewController ¶
func (c *Controller) DatabaseListViewController(w http.ResponseWriter, r *http.Request)
DatabaseListViewController is the controller for the database list view.
func (*Controller) DatabaseUpdateViewController ¶
func (c *Controller) DatabaseUpdateViewController(w http.ResponseWriter, r *http.Request)
DatabaseUpdateViewController is the controller for the database update view. On case of get request, it returns the database update page. On case of post request, it updates the database and redirects to the list page.
func (*Controller) DatabaseViewController ¶
func (c *Controller) DatabaseViewController(w http.ResponseWriter, r *http.Request)
DatabaseViewController is the controller for the database view page. GET /admin/database/view/{databaseId} It renders the database view page.
func (*Controller) DomainCheckSSLViewController ¶
func (c *Controller) DomainCheckSSLViewController(w http.ResponseWriter, r *http.Request)
DomainCheckSSLViewController is the controller for the domain check ssl view. It is responsible for checking the ssl status of a domain. It redirects to the domain view page.
func (*Controller) DomainCreateViewController ¶
func (c *Controller) DomainCreateViewController(w http.ResponseWriter, r *http.Request)
DomainCreateViewController is the controller for the domain create view. On case of get request, it returns the domain create page. On case of post request, it creates the domain and redirects to the list page.
func (*Controller) DomainDeleteViewController ¶
func (c *Controller) DomainDeleteViewController(w http.ResponseWriter, r *http.Request)
DomainDeleteViewController is the controller for the domain delete form. It is responsible for deleting a domain. It redirects to the domain list page.
func (*Controller) DomainListViewController ¶
func (c *Controller) DomainListViewController(w http.ResponseWriter, r *http.Request)
DomainListViewController is the controller for the domain list view.
func (*Controller) DomainUpdateViewController ¶
func (c *Controller) DomainUpdateViewController(w http.ResponseWriter, r *http.Request)
DomainUpdateViewController is the controller for the domain update view. On case of get request, it returns the domain update page. On case of post request, it updates the domain and redirects to the list page.
func (*Controller) DomainViewController ¶
func (c *Controller) DomainViewController(w http.ResponseWriter, r *http.Request)
DomainViewController is the controller for the domain view page. GET /admin/domain/view/{domainId} It renders the domain view page.
func (*Controller) EnvironmentCreateViewController ¶
func (c *Controller) EnvironmentCreateViewController(w http.ResponseWriter, r *http.Request)
EnvironmentCreateViewController is the controller for the environment create view. On case of get request, it returns the environment create page. On case of post request, it creates the environment and redirects to the list page.
func (*Controller) EnvironmentDeleteViewController ¶
func (c *Controller) EnvironmentDeleteViewController(w http.ResponseWriter, r *http.Request)
EnvironmentDeleteViewController is the controller for the environment delete form. It is responsible for deleting a environment. It redirects to the environment list page.
func (*Controller) EnvironmentListViewController ¶
func (c *Controller) EnvironmentListViewController(w http.ResponseWriter, r *http.Request)
EnvironmentListViewController is the controller for the environment list view.
func (*Controller) EnvironmentUpdateViewController ¶
func (c *Controller) EnvironmentUpdateViewController(w http.ResponseWriter, r *http.Request)
EnvironmentUpdateViewController is the controller for the environment update view. On case of get request, it returns the environment update page. On case of post request, it updates the environment and redirects to the list page.
func (*Controller) EnvironmentViewController ¶
func (c *Controller) EnvironmentViewController(w http.ResponseWriter, r *http.Request)
EnvironmentViewController is the controller for the environment view page. GET /admin/environment/view/{environmentId} It renders the environment view page.
func (*Controller) FrameworkCreateViewController ¶
func (c *Controller) FrameworkCreateViewController(w http.ResponseWriter, r *http.Request)
FrameworkCreateViewController is the controller for the framework create view. On case of get request, it returns the framework create page. On case of post request, it creates the framework and redirects to the list page.
func (*Controller) FrameworkDeleteViewController ¶
func (c *Controller) FrameworkDeleteViewController(w http.ResponseWriter, r *http.Request)
FrameworkDeleteViewController is the controller for the framework delete form. It is responsible for deleting a framework. It redirects to the framework list page.
func (*Controller) FrameworkListViewController ¶
func (c *Controller) FrameworkListViewController(w http.ResponseWriter, r *http.Request)
FrameworkListViewController is the controller for the framework list view.
func (*Controller) FrameworkUpdateViewController ¶
func (c *Controller) FrameworkUpdateViewController(w http.ResponseWriter, r *http.Request)
FrameworkUpdateViewController is the controller for the framework update view. On case of get request, it returns the framework update page. On case of post request, it updates the framework and redirects to the list page.
func (*Controller) FrameworkViewController ¶
func (c *Controller) FrameworkViewController(w http.ResponseWriter, r *http.Request)
FrameworkViewController is the controller for the framework view page. GET /admin/framework/view/{frameworkId} It renders the framework view page.
func (*Controller) HealthController ¶
func (c *Controller) HealthController(w http.ResponseWriter, r *http.Request)
HealthController is the health controller. It is responsible for handling health checks.
func (*Controller) LoginActionController ¶
func (c *Controller) LoginActionController(w http.ResponseWriter, r *http.Request)
LoginActionController is the login action controller. It is responsible for handling the login action.
func (*Controller) LoginPageController ¶
func (c *Controller) LoginPageController(w http.ResponseWriter, r *http.Request)
LoginPageController is the login controller. It returns the login page. in case of the user is already authenticated, it redirects to the dashboard.
func (*Controller) PoolCreateViewController ¶
func (c *Controller) PoolCreateViewController(w http.ResponseWriter, r *http.Request)
PoolCreateViewController is the controller for the pool create view. On case of get request, it returns the pool create page. On case of post request, it creates the pool and redirects to the list page.
func (*Controller) PoolDeleteViewController ¶
func (c *Controller) PoolDeleteViewController(w http.ResponseWriter, r *http.Request)
PoolDeleteViewController is the controller for the pool delete form. It is responsible for deleting a pool. It redirects to the pool list page.
func (*Controller) PoolListViewController ¶
func (c *Controller) PoolListViewController(w http.ResponseWriter, r *http.Request)
PoolListViewController is the controller for the pool list view.
func (*Controller) PoolUpdateViewController ¶
func (c *Controller) PoolUpdateViewController(w http.ResponseWriter, r *http.Request)
PoolUpdateViewController is the controller for the pool update view. On case of get request, it returns the pool update page. On case of post request, it updates the pool and redirects to the list page.
func (*Controller) PoolViewController ¶
func (c *Controller) PoolViewController(w http.ResponseWriter, r *http.Request)
PoolViewController is the controller for the pool view page. GET /admin/pool/view/{poolId} It renders the pool view page.
func (*Controller) ProjectCreateViewController ¶
func (c *Controller) ProjectCreateViewController(w http.ResponseWriter, r *http.Request)
ProjectCreateViewController is the controller for the project create view. On case of get request, it returns the project create page. On case of post request, it creates the project and redirects to the list page.
func (*Controller) ProjectDeleteViewController ¶
func (c *Controller) ProjectDeleteViewController(w http.ResponseWriter, r *http.Request)
ProjectDeleteViewController is the controller for the project delete form. It is responsible for deleting a project. It redirects to the project list page.
func (*Controller) ProjectListViewController ¶
func (c *Controller) ProjectListViewController(w http.ResponseWriter, r *http.Request)
ProjectListViewController is the controller for the project list view.
func (*Controller) ProjectUpdateViewController ¶
func (c *Controller) ProjectUpdateViewController(w http.ResponseWriter, r *http.Request)
ProjectUpdateViewController is the controller for the project update view. On case of get request, it returns the project update page. On case of post request, it updates the project and redirects to the list page.
func (*Controller) ProjectViewController ¶
func (c *Controller) ProjectViewController(w http.ResponseWriter, r *http.Request)
ProjectViewController is the controller for the project view page. GET /admin/project/view/{projectId} It renders the project view page.
func (*Controller) RoleCreateViewController ¶
func (c *Controller) RoleCreateViewController(w http.ResponseWriter, r *http.Request)
RoleCreateViewController is the controller for the role create view. On case of get request, it returns the role create page. On case of post request, it creates the role and redirects to the list page.
func (*Controller) RoleDeleteViewController ¶
func (c *Controller) RoleDeleteViewController(w http.ResponseWriter, r *http.Request)
RoleDeleteViewController is the controller for the role delete form. It is responsible for deleting a role. It redirects to the role list page.
func (*Controller) RoleListViewController ¶
func (c *Controller) RoleListViewController(w http.ResponseWriter, r *http.Request)
RoleListViewController is the controller for the role list view.
func (*Controller) RoleUpdateViewController ¶
func (c *Controller) RoleUpdateViewController(w http.ResponseWriter, r *http.Request)
RoleUpdateViewController is the controller for the role update view. On case of get request, it returns the role update page. On case of post request, it updates the role and redirects to the list page.
func (*Controller) RoleViewController ¶
func (c *Controller) RoleViewController(w http.ResponseWriter, r *http.Request)
RoleViewController is the controller for the role view page. GET /admin/role/view/{roleId} It renders the role view page.
func (*Controller) RuntimeCreateViewController ¶
func (c *Controller) RuntimeCreateViewController(w http.ResponseWriter, r *http.Request)
RuntimeCreateViewController is the controller for the runtime create view. On case of get request, it returns the runtime create page. On case of post request, it creates the runtime and redirects to the list page.
func (*Controller) RuntimeDeleteViewController ¶
func (c *Controller) RuntimeDeleteViewController(w http.ResponseWriter, r *http.Request)
RuntimeDeleteViewController is the controller for the runtime delete form. It is responsible for deleting a runtime. It redirects to the runtime list page.
func (*Controller) RuntimeListViewController ¶
func (c *Controller) RuntimeListViewController(w http.ResponseWriter, r *http.Request)
RuntimeListViewController is the controller for the runtime list view.
func (*Controller) RuntimeUpdateViewController ¶
func (c *Controller) RuntimeUpdateViewController(w http.ResponseWriter, r *http.Request)
RuntimeUpdateViewController is the controller for the runtime update view. On case of get request, it returns the runtime update page. On case of post request, it updates the runtime and redirects to the list page.
func (*Controller) RuntimeViewController ¶
func (c *Controller) RuntimeViewController(w http.ResponseWriter, r *http.Request)
RuntimeViewController is the controller for the runtime view page. GET /admin/runtime/view/{runtimeId} It renders the runtime view page.
func (*Controller) ServerCreateViewController ¶
func (c *Controller) ServerCreateViewController(w http.ResponseWriter, r *http.Request)
ServerCreateViewController is the controller for the server create view. On case of get request, it returns the server create page. On case of post request, it creates the server and redirects to the list page.
func (*Controller) ServerDeleteViewController ¶
func (c *Controller) ServerDeleteViewController(w http.ResponseWriter, r *http.Request)
ServerDeleteViewController is the controller for the server delete form. It is responsible for deleting a server. It redirects to the server list page.
func (*Controller) ServerListViewController ¶
func (c *Controller) ServerListViewController(w http.ResponseWriter, r *http.Request)
ServerListViewController is the controller for the server list view.
func (*Controller) ServerUpdateViewController ¶
func (c *Controller) ServerUpdateViewController(w http.ResponseWriter, r *http.Request)
ServerUpdateViewController is the controller for the server update view. On case of get request, it returns the server update page. On case of post request, it updates the server and redirects to the list page.
func (*Controller) ServerViewController ¶
func (c *Controller) ServerViewController(w http.ResponseWriter, r *http.Request)
ServerViewController is the controller for the server view page. GET /admin/server/view/{serverId} It renders the server view page.
func (*Controller) UserCreateAPIController ¶
func (c *Controller) UserCreateAPIController(w http.ResponseWriter, r *http.Request)
UserCreateAPIController is the controller for the user create API. It is responsible for creating a new user. It returns the created user as JSON. Example request: curl -X POST http://localhost:8090/api/user/create -d "name=Admin&email=system@admin&password=admin" Example response: {"ID":1,"Name":"Admin","Email":"system@admin","CreatedAt":"2024-05-27T15:12:24.894037Z","UpdatedAt":"2024-05-27T15:12:24.894037Z","Password":"$2a$10$8QIzpaZqZEEI3RVKKjGnh.GJ3DqLEIewuuRMGGCnRD3VW3v7ZodUW"}
func (*Controller) UserCreateViewController ¶
func (c *Controller) UserCreateViewController(w http.ResponseWriter, r *http.Request)
UserCreateViewController is the controller for the user create view. On case of get request, it returns the user create page. On case of post request, it creates the user and redirects to the list page.
func (*Controller) UserDeleteAPIController ¶
func (c *Controller) UserDeleteAPIController(w http.ResponseWriter, r *http.Request)
UserDeleteAPIController is the controller for the user delete API. It is responsible for deleting a user. Example request: curl -X DELETE http://localhost:8090/api/user/delete/1
func (*Controller) UserDeleteViewController ¶
func (c *Controller) UserDeleteViewController(w http.ResponseWriter, r *http.Request)
UserDeleteViewController is the controller for the user delete view. It is responsible for deleting a user. It redirects to the user list page.
func (*Controller) UserListAPIController ¶
func (c *Controller) UserListAPIController(w http.ResponseWriter, r *http.Request)
UserListAPIController is the controller for the user list API. It is responsible for returning all users. Example request: curl -X GET http://localhost:8090/api/user/list
func (*Controller) UserListViewController ¶
func (c *Controller) UserListViewController(w http.ResponseWriter, r *http.Request)
UserListViewController is the controller for the user list view.
func (*Controller) UserUpdateAPIController ¶
func (c *Controller) UserUpdateAPIController(w http.ResponseWriter, r *http.Request)
UserUpdateAPIController is the controller for the user update API. It is responsible for updating a user. It returns the updated user as JSON. Example request: curl -X POST http://localhost:8090/api/user/update/1 -d "name=Bob&email=bob@bob&password=password"
func (*Controller) UserUpdateViewController ¶
func (c *Controller) UserUpdateViewController(w http.ResponseWriter, r *http.Request)
UserUpdateViewController is the controller for the user update view. On case of get request, it returns the user update page. On case of post request, it updates the user and redirects to the list page.
func (*Controller) UserViewAPIController ¶
func (c *Controller) UserViewAPIController(w http.ResponseWriter, r *http.Request)
UserViewAPIController is the controller for the user view API. It is responsible for returning the user data as JSON. Example request: curl -X GET http://localhost:8090/api/user/view/1
func (*Controller) UserViewController ¶
func (c *Controller) UserViewController(w http.ResponseWriter, r *http.Request)
UserViewController is the controller for the user view page.