Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommonController ¶
type CommonController struct { beego.Controller i18n.Locale }
CommonController handles request from UI that doesn't expect a page, such as /SwitchLanguage /logout ...
func (*CommonController) Login ¶
func (cc *CommonController) Login()
Login handles login request from UI.
func (*CommonController) ResetPassword ¶
func (cc *CommonController) ResetPassword()
ResetPassword handles request from the reset page and reset password
func (*CommonController) SendResetEmail ¶
func (cc *CommonController) SendResetEmail()
SendResetEmail verifies the Email address and contact SMTP server to send reset password Email.
func (*CommonController) UserExists ¶
func (cc *CommonController) UserExists()
UserExists checks if user exists when user input value in sign in form.
type ErrorController ¶
type ErrorController struct {
beego.Controller
}
ErrorController handles beego error pages
func (*ErrorController) Error404 ¶
func (ec *ErrorController) Error404()
Error404 renders the 404 page
type OIDCController ¶
type OIDCController struct {
api.BaseController
}
OIDCController handles requests for OIDC login, callback and user onboard
func (*OIDCController) Callback ¶
func (oc *OIDCController) Callback()
Callback handles redirection from OIDC provider. It will exchange the token and kick off onboard if needed.
func (*OIDCController) Onboard ¶
func (oc *OIDCController) Onboard()
Onboard handles the request to onboard an user authenticated via OIDC provider
func (*OIDCController) Prepare ¶
func (oc *OIDCController) Prepare()
Prepare include public code path for call request handler of OIDCController
func (*OIDCController) RedirectLogin ¶
func (oc *OIDCController) RedirectLogin()
RedirectLogin redirect user's browser to OIDC provider's login page
type RegistryProxy ¶
type RegistryProxy struct {
beego.Controller
}
RegistryProxy is the endpoint on UI for a reverse proxy pointing to registry
func (*RegistryProxy) Handle ¶
func (p *RegistryProxy) Handle()
Handle is the only entrypoint for incoming requests, all requests must go through this func.
func (*RegistryProxy) Prepare ¶
func (p *RegistryProxy) Prepare()
Prepare turn off the xsrf check for registry proxy