Documentation
¶
Index ¶
- type HttpHandler
- func (h *HttpHandler) AdminSettingsHandler(w http.ResponseWriter, r *http.Request)
- func (h *HttpHandler) AdminUserAddHandler(w http.ResponseWriter, r *http.Request)
- func (h *HttpHandler) AdminUserEditHandler(w http.ResponseWriter, r *http.Request)
- func (h *HttpHandler) AdminUserListHandler(w http.ResponseWriter, r *http.Request)
- func (h *HttpHandler) AdminUserRemoveHandler(w http.ResponseWriter, r *http.Request)
- func (h *HttpHandler) BuildDefinitionAddHandler(w http.ResponseWriter, r *http.Request)
- func (h *HttpHandler) BuildDefinitionEditHandler(w http.ResponseWriter, r *http.Request)
- func (h *HttpHandler) BuildDefinitionListHandler(w http.ResponseWriter, r *http.Request)
- func (h *HttpHandler) BuildDefinitionRemoveHandler(w http.ResponseWriter, r *http.Request)
- func (h *HttpHandler) BuildDefinitionRestartHandler(w http.ResponseWriter, r *http.Request)
- func (h *HttpHandler) BuildDefinitionShowHandler(w http.ResponseWriter, r *http.Request)
- func (h *HttpHandler) BuildExecutionListHandler(w http.ResponseWriter, r *http.Request)
- func (h *HttpHandler) BuildExecutionShowHandler(w http.ResponseWriter, r *http.Request)
- func (h *HttpHandler) ContextLogger(context string) *logrus.Entry
- func (h *HttpHandler) DownloadNewestArtifactHandler(w http.ResponseWriter, r *http.Request)
- func (h *HttpHandler) DownloadSpecificArtifactHandler(w http.ResponseWriter, r *http.Request)
- func (h *HttpHandler) IndexHandler(w http.ResponseWriter, r *http.Request)
- func (h *HttpHandler) InitiateBuildProcess(bd *entity.BuildDefinition, be *entity.BuildExecution)
- func (h *HttpHandler) Injector() *templateservice.Injector
- func (h *HttpHandler) LoginHandler(w http.ResponseWriter, r *http.Request)
- func (h *HttpHandler) LogoutHandler(w http.ResponseWriter, r *http.Request)
- func (h *HttpHandler) PayloadReceiveHandler(w http.ResponseWriter, r *http.Request)
- func (h *HttpHandler) RegistrationConfirmHandler(w http.ResponseWriter, r *http.Request)
- func (h *HttpHandler) RegistrationHandler(w http.ResponseWriter, r *http.Request)
- func (h *HttpHandler) RequestNewPasswordHandler(w http.ResponseWriter, r *http.Request)
- func (h *HttpHandler) ResetPasswordHandler(w http.ResponseWriter, r *http.Request)
- func (h *HttpHandler) StaticAssetHandler(w http.ResponseWriter, r *http.Request)
- func (h *HttpHandler) UserSettingsHandler(w http.ResponseWriter, r *http.Request)
- func (h *HttpHandler) VariableAddHandler(w http.ResponseWriter, r *http.Request)
- func (h *HttpHandler) VariableEditHandler(w http.ResponseWriter, r *http.Request)
- func (h *HttpHandler) VariableListHandler(w http.ResponseWriter, r *http.Request)
- func (h *HttpHandler) VariableRemoveHandler(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpHandler ¶
type HttpHandler struct { Configuration *configuration.AppConfig DBService *dbservice.DBService BuildService *buildservice.BuildService DeployService *deploymentservice.DeploymentService SessMgr *sessionstore.SessionManager Logger *logrus.Entry Mailer *mailer.Mailer }
func (*HttpHandler) AdminSettingsHandler ¶
func (h *HttpHandler) AdminSettingsHandler(w http.ResponseWriter, r *http.Request)
AdminSettingsHandler handles editing af administrative settings
func (*HttpHandler) AdminUserAddHandler ¶
func (h *HttpHandler) AdminUserAddHandler(w http.ResponseWriter, r *http.Request)
AdminUserAddHandler handles adding a new user account
func (*HttpHandler) AdminUserEditHandler ¶
func (h *HttpHandler) AdminUserEditHandler(w http.ResponseWriter, r *http.Request)
AdminUserEditHandler handles edits to an existing user account
func (*HttpHandler) AdminUserListHandler ¶
func (h *HttpHandler) AdminUserListHandler(w http.ResponseWriter, r *http.Request)
AdminUserListHandler lists all existing user accounts
func (*HttpHandler) AdminUserRemoveHandler ¶
func (h *HttpHandler) AdminUserRemoveHandler(w http.ResponseWriter, r *http.Request)
AdminUserRemoveHandler handles removals of user accounts
func (*HttpHandler) BuildDefinitionAddHandler ¶
func (h *HttpHandler) BuildDefinitionAddHandler(w http.ResponseWriter, r *http.Request)
BuildDefinitionAddHandler adds a new build definition
func (*HttpHandler) BuildDefinitionEditHandler ¶
func (h *HttpHandler) BuildDefinitionEditHandler(w http.ResponseWriter, r *http.Request)
BuildDefinitionEditHandler allows for editing an existing build definition
func (*HttpHandler) BuildDefinitionListHandler ¶
func (h *HttpHandler) BuildDefinitionListHandler(w http.ResponseWriter, r *http.Request)
BuildDefinitionListHandler lists all existing build definitions
func (*HttpHandler) BuildDefinitionRemoveHandler ¶
func (h *HttpHandler) BuildDefinitionRemoveHandler(w http.ResponseWriter, r *http.Request)
BuildDefinitionRemoveHandler removes an existing build definition
func (*HttpHandler) BuildDefinitionRestartHandler ¶
func (h *HttpHandler) BuildDefinitionRestartHandler(w http.ResponseWriter, r *http.Request)
BuildDefinitionRestartHandler restarts the build process for a given build definition
func (*HttpHandler) BuildDefinitionShowHandler ¶
func (h *HttpHandler) BuildDefinitionShowHandler(w http.ResponseWriter, r *http.Request)
BuildDefinitionShowHandler shows details of a build definition
func (*HttpHandler) BuildExecutionListHandler ¶
func (h *HttpHandler) BuildExecutionListHandler(w http.ResponseWriter, r *http.Request)
BuildExecutionListHandler lists all build executions in in descending order
func (*HttpHandler) BuildExecutionShowHandler ¶
func (h *HttpHandler) BuildExecutionShowHandler(w http.ResponseWriter, r *http.Request)
BuildExecutionShowHandler shows details of a specific build execution
func (*HttpHandler) ContextLogger ¶
func (h *HttpHandler) ContextLogger(context string) *logrus.Entry
func (*HttpHandler) DownloadNewestArtifactHandler ¶
func (h *HttpHandler) DownloadNewestArtifactHandler(w http.ResponseWriter, r *http.Request)
DownloadNewestArtifactHandler downloads the most recently created version of a produced artifact
func (*HttpHandler) DownloadSpecificArtifactHandler ¶
func (h *HttpHandler) DownloadSpecificArtifactHandler(w http.ResponseWriter, r *http.Request)
DownloadSpecificArtifactHandler downloads a artifact produced by a specific build execution
func (*HttpHandler) IndexHandler ¶
func (h *HttpHandler) IndexHandler(w http.ResponseWriter, r *http.Request)
IndexHandler serves the dashboard
func (*HttpHandler) InitiateBuildProcess ¶
func (h *HttpHandler) InitiateBuildProcess(bd *entity.BuildDefinition, be *entity.BuildExecution)
func (*HttpHandler) Injector ¶
func (h *HttpHandler) Injector() *templateservice.Injector
func (*HttpHandler) LoginHandler ¶
func (h *HttpHandler) LoginHandler(w http.ResponseWriter, r *http.Request)
LoginHandler handles logins
func (*HttpHandler) LogoutHandler ¶
func (h *HttpHandler) LogoutHandler(w http.ResponseWriter, r *http.Request)
LogoutHandler handles logouts
func (*HttpHandler) PayloadReceiveHandler ¶
func (h *HttpHandler) PayloadReceiveHandler(w http.ResponseWriter, r *http.Request)
PayloadReceiveHandler takes care of accepting the payload from the webhook HTTP call sent by a Git hoster
func (*HttpHandler) RegistrationConfirmHandler ¶
func (h *HttpHandler) RegistrationConfirmHandler(w http.ResponseWriter, r *http.Request)
RegistrationConfirmHandler handles confirmations for newly registered user accounts
func (*HttpHandler) RegistrationHandler ¶
func (h *HttpHandler) RegistrationHandler(w http.ResponseWriter, r *http.Request)
RegistrationHandler handles user account registrations
func (*HttpHandler) RequestNewPasswordHandler ¶
func (h *HttpHandler) RequestNewPasswordHandler(w http.ResponseWriter, r *http.Request)
RequestNewPasswordHandler handles password reset requests
func (*HttpHandler) ResetPasswordHandler ¶
func (h *HttpHandler) ResetPasswordHandler(w http.ResponseWriter, r *http.Request)
ResetPasswordHandler handles password resets
func (*HttpHandler) StaticAssetHandler ¶
func (h *HttpHandler) StaticAssetHandler(w http.ResponseWriter, r *http.Request)
StaticAssetHandler serves static file. http.FileServer does not work as desired
func (*HttpHandler) UserSettingsHandler ¶
func (h *HttpHandler) UserSettingsHandler(w http.ResponseWriter, r *http.Request)
UserSettingsHandler handles changing a user's own settings
func (*HttpHandler) VariableAddHandler ¶
func (h *HttpHandler) VariableAddHandler(w http.ResponseWriter, r *http.Request)
VariableAddHandler adds a new variable
func (*HttpHandler) VariableEditHandler ¶
func (h *HttpHandler) VariableEditHandler(w http.ResponseWriter, r *http.Request)
VariableEditHandler edits a variable
func (*HttpHandler) VariableListHandler ¶
func (h *HttpHandler) VariableListHandler(w http.ResponseWriter, r *http.Request)
VariableListHandler lists all variables available to the logged-in user
func (*HttpHandler) VariableRemoveHandler ¶
func (h *HttpHandler) VariableRemoveHandler(w http.ResponseWriter, r *http.Request)
VariableRemoveHandler removes a variable