Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddUserController ¶
type AddUserController struct {
BaseController
}
AddUserController handles request for adding user with an admin role user
func (*AddUserController) Get ¶
func (ac *AddUserController) Get()
Get renders the Sign In page, it only works if the auth mode is set to db_auth
type BaseController ¶
type BaseController struct { beego.Controller i18n.Locale SelfRegistration bool IsLdapAdminUser bool IsAdmin bool AuthMode string }
BaseController wraps common methods such as i18n support, forward, which can be leveraged by other UI render controllers.
func (*BaseController) ForwardTo ¶
func (b *BaseController) ForwardTo(pageTitle string, pageName string)
ForwardTo setup layout and template for content for a page.
func (*BaseController) Prepare ¶
func (b *BaseController) Prepare()
Prepare extracts the language information from request and populate data for rendering templates.
type ChangePasswordController ¶
type ChangePasswordController struct {
BaseController
}
ChangePasswordController handles request to /changePassword
func (*ChangePasswordController) Get ¶
func (cpc *ChangePasswordController) Get()
Get renders the page for user to change password.
type CommonController ¶
type CommonController struct {
BaseController
}
CommonController handles request from UI that doesn't expect a page, such as /login /logout ...
func (*CommonController) Login ¶
func (c *CommonController) Login()
Login handles login request from UI.
func (*CommonController) Logout ¶
func (c *CommonController) Logout()
Logout handles UI request to logout.
func (*CommonController) ResetPassword ¶
func (cc *CommonController) ResetPassword()
ResetPassword handles request from the reset page and reset password
func (*CommonController) SendEmail ¶
func (cc *CommonController) SendEmail()
SendEmail verifies the Email address and contact SMTP server to send reset password Email.
func (*CommonController) SwitchLanguage ¶
func (c *CommonController) SwitchLanguage()
SwitchLanguage handles UI request to switch between different languages and re-render template based on language.
func (*CommonController) UserExists ¶
func (cc *CommonController) UserExists()
UserExists checks if user exists when user input value in sign in form.
type ForgotPasswordController ¶
type ForgotPasswordController struct {
BaseController
}
ForgotPasswordController handles request to /forgotPassword
func (*ForgotPasswordController) Get ¶
func (fpc *ForgotPasswordController) Get()
Get Renders the page for user to input Email to reset password.
type IndexController ¶
type IndexController struct {
BaseController
}
IndexController handles request to /
type ItemDetailController ¶
type ItemDetailController struct {
BaseController
}
ItemDetailController handles requet to /registry/detail, which shows the detail of a project.
func (*ItemDetailController) Get ¶
func (idc *ItemDetailController) Get()
Get will check if user has permission to view a certain project, if not user will be redirected to signin or his homepage. If the check is passed it renders the project detail page.
type ProjectController ¶
type ProjectController struct {
BaseController
}
ProjectController handles request to /registry/project
type RegisterController ¶
type RegisterController struct {
BaseController
}
RegisterController handles request to /register
func (*RegisterController) Get ¶
func (rc *RegisterController) Get()
Get renders the Sign In page, it only works if the auth mode is set to db_auth
type ResetPasswordController ¶
type ResetPasswordController struct {
BaseController
}
ResetPasswordController handles request to /resetPassword
func (*ResetPasswordController) Get ¶
func (rpc *ResetPasswordController) Get()
Get checks if reset_uuid in the reset link is valid and render the result page for user to reset password.
type SearchController ¶
type SearchController struct {
BaseController
}
SearchController handles request to /search
func (*SearchController) Get ¶
func (sc *SearchController) Get()
Get renders page for displaying search result.
type SignInController ¶
type SignInController struct {
BaseController
}
SignInController handles request to /signIn