Documentation ¶
Index ¶
- func Account(ctx *context.Context)
- func AccountPost(ctx *context.Context)
- func AdoptOrDeleteRepository(ctx *context.Context)
- func Appearance(ctx *context.Context)
- func Applications(ctx *context.Context)
- func ApplicationsPost(ctx *context.Context)
- func AvatarPost(ctx *context.Context)
- func DeleteAccount(ctx *context.Context)
- func DeleteApplication(ctx *context.Context)
- func DeleteAvatar(ctx *context.Context)
- func DeleteEmail(ctx *context.Context)
- func DeleteKey(ctx *context.Context)
- func DeleteOAuth2Application(ctx *context.Context)
- func DeleteWebhook(ctx *context.Context)
- func EmailPost(ctx *context.Context)
- func HandleUsernameChange(ctx *context.Context, user *user_model.User, newName string) error
- func InitializeCargoIndex(ctx *context.Context)
- func Keys(ctx *context.Context)
- func KeysPost(ctx *context.Context)
- func OAuth2ApplicationShow(ctx *context.Context)
- func OAuthApplicationsEdit(ctx *context.Context)
- func OAuthApplicationsPost(ctx *context.Context)
- func OAuthApplicationsRegenerateSecret(ctx *context.Context)
- func Organization(ctx *context.Context)
- func Packages(ctx *context.Context)
- func PackagesRuleAdd(ctx *context.Context)
- func PackagesRuleAddPost(ctx *context.Context)
- func PackagesRuleEdit(ctx *context.Context)
- func PackagesRuleEditPost(ctx *context.Context)
- func PackagesRulePreview(ctx *context.Context)
- func Profile(ctx *context.Context)
- func ProfilePost(ctx *context.Context)
- func RebuildCargoIndex(ctx *context.Context)
- func RedirectToDefaultSetting(ctx *context.Context)
- func RegenerateChefKeyPair(ctx *context.Context)
- func Repos(ctx *context.Context)
- func RevokeOAuth2Grant(ctx *context.Context)
- func UpdateAvatarSetting(ctx *context.Context, form *forms.AvatarForm, ctxUser *user_model.User) error
- func UpdateUIThemePost(ctx *context.Context)
- func UpdateUserHiddenComments(ctx *context.Context)
- func UpdateUserLang(ctx *context.Context)
- func Webhooks(ctx *context.Context)
- type OAuth2CommonHandlers
- func (oa *OAuth2CommonHandlers) AddApp(ctx *context.Context)
- func (oa *OAuth2CommonHandlers) DeleteApp(ctx *context.Context)
- func (oa *OAuth2CommonHandlers) EditSave(ctx *context.Context)
- func (oa *OAuth2CommonHandlers) EditShow(ctx *context.Context)
- func (oa *OAuth2CommonHandlers) RegenerateSecret(ctx *context.Context)
- func (oa *OAuth2CommonHandlers) RevokeGrant(ctx *context.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccountPost ¶
AccountPost response for change user's password
func AdoptOrDeleteRepository ¶
AdoptOrDeleteRepository adopts or deletes a repository
func Appearance ¶
Appearance render user's appearance settings
func Applications ¶
Applications render manage access token page
func ApplicationsPost ¶
ApplicationsPost response for add user's access token
func AvatarPost ¶
AvatarPost response for change user's avatar request
func DeleteAccount ¶
DeleteAccount render user suicide page and response for delete user himself
func DeleteApplication ¶
DeleteApplication response for delete user access token
func DeleteEmail ¶
DeleteEmail response for delete user's email
func DeleteOAuth2Application ¶
DeleteOAuth2Application deletes the given oauth2 application
func DeleteWebhook ¶
DeleteWebhook response for delete webhook
func HandleUsernameChange ¶
HandleUsernameChange handle username changes from user settings and admin interface
func InitializeCargoIndex ¶
func OAuth2ApplicationShow ¶
OAuth2ApplicationShow displays the given application
func OAuthApplicationsEdit ¶
OAuthApplicationsEdit response for editing oauth2 application
func OAuthApplicationsPost ¶
OAuthApplicationsPost response for adding a oauth2 application
func OAuthApplicationsRegenerateSecret ¶
OAuthApplicationsRegenerateSecret handles the post request for regenerating the secret
func Organization ¶
Organization render all the organization of the user
func PackagesRuleAdd ¶
func PackagesRuleAddPost ¶
func PackagesRuleEdit ¶
func PackagesRuleEditPost ¶
func PackagesRulePreview ¶
func ProfilePost ¶
ProfilePost response for change user's profile
func RebuildCargoIndex ¶
func RegenerateChefKeyPair ¶
func RevokeOAuth2Grant ¶
RevokeOAuth2Grant revokes the grant with the given id
func UpdateAvatarSetting ¶
func UpdateAvatarSetting(ctx *context.Context, form *forms.AvatarForm, ctxUser *user_model.User) error
UpdateAvatarSetting update user's avatar FIXME: limit size.
func UpdateUIThemePost ¶
UpdateUIThemePost is used to update users' specific theme
func UpdateUserHiddenComments ¶
UpdateUserHiddenComments update a user's shown comment types
func UpdateUserLang ¶
UpdateUserLang update a user's language
Types ¶
type OAuth2CommonHandlers ¶
type OAuth2CommonHandlers struct { OwnerID int64 // 0 for instance-wide, otherwise OrgID or UserID BasePathList string // the base URL for the application list page, eg: "/user/setting/applications" BasePathEditPrefix string // the base URL for the application edit page, will be appended with app id, eg: "/user/setting/applications/oauth2" TplAppEdit base.TplName // the template for the application edit page }
func (*OAuth2CommonHandlers) AddApp ¶
func (oa *OAuth2CommonHandlers) AddApp(ctx *context.Context)
AddApp adds an oauth2 application
func (*OAuth2CommonHandlers) DeleteApp ¶
func (oa *OAuth2CommonHandlers) DeleteApp(ctx *context.Context)
DeleteApp deletes the given oauth2 application
func (*OAuth2CommonHandlers) EditSave ¶
func (oa *OAuth2CommonHandlers) EditSave(ctx *context.Context)
EditSave saves the oauth2 application
func (*OAuth2CommonHandlers) EditShow ¶
func (oa *OAuth2CommonHandlers) EditShow(ctx *context.Context)
EditShow displays the given application
func (*OAuth2CommonHandlers) RegenerateSecret ¶
func (oa *OAuth2CommonHandlers) RegenerateSecret(ctx *context.Context)
RegenerateSecret regenerates the secret
func (*OAuth2CommonHandlers) RevokeGrant ¶
func (oa *OAuth2CommonHandlers) RevokeGrant(ctx *context.Context)
RevokeGrant revokes the grant