setting

package
v0.19.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 24, 2023 License: MIT Imports: 37 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Account

func Account(ctx *context.Context)

Account renders change user's password, user's email and user suicide page

func AccountPost

func AccountPost(ctx *context.Context)

AccountPost response for change user's password

func AdoptOrDeleteRepository

func AdoptOrDeleteRepository(ctx *context.Context)

AdoptOrDeleteRepository adopts or deletes a repository

func Appearance

func Appearance(ctx *context.Context)

Appearance render user's appearance settings

func Applications

func Applications(ctx *context.Context)

Applications render manage access token page

func ApplicationsPost

func ApplicationsPost(ctx *context.Context)

ApplicationsPost response for add user's access token

func AvatarPost

func AvatarPost(ctx *context.Context)

AvatarPost response for change user's avatar request

func DeleteAccount

func DeleteAccount(ctx *context.Context)

DeleteAccount render user suicide page and response for delete user himself

func DeleteApplication

func DeleteApplication(ctx *context.Context)

DeleteApplication response for delete user access token

func DeleteAvatar

func DeleteAvatar(ctx *context.Context)

DeleteAvatar render delete avatar page

func DeleteEmail

func DeleteEmail(ctx *context.Context)

DeleteEmail response for delete user's email

func DeleteKey

func DeleteKey(ctx *context.Context)

DeleteKey response for delete user's SSH/GPG key

func DeleteOAuth2Application

func DeleteOAuth2Application(ctx *context.Context)

DeleteOAuth2Application deletes the given oauth2 application

func DeleteWebhook

func DeleteWebhook(ctx *context.Context)

DeleteWebhook response for delete webhook

func EmailPost

func EmailPost(ctx *context.Context)

EmailPost response for change user's email

func HandleUsernameChange

func HandleUsernameChange(ctx *context.Context, user *user_model.User, newName string) error

HandleUsernameChange handle username changes from user settings and admin interface

func InitializeCargoIndex

func InitializeCargoIndex(ctx *context.Context)

func Keys

func Keys(ctx *context.Context)

Keys render user's SSH/GPG public keys page

func KeysPost

func KeysPost(ctx *context.Context)

KeysPost response for change user's SSH/GPG keys

func OAuth2ApplicationShow

func OAuth2ApplicationShow(ctx *context.Context)

OAuth2ApplicationShow displays the given application

func OAuthApplicationsEdit

func OAuthApplicationsEdit(ctx *context.Context)

OAuthApplicationsEdit response for editing oauth2 application

func OAuthApplicationsPost

func OAuthApplicationsPost(ctx *context.Context)

OAuthApplicationsPost response for adding a oauth2 application

func OAuthApplicationsRegenerateSecret

func OAuthApplicationsRegenerateSecret(ctx *context.Context)

OAuthApplicationsRegenerateSecret handles the post request for regenerating the secret

func Organization

func Organization(ctx *context.Context)

Organization render all the organization of the user

func Packages

func Packages(ctx *context.Context)

func PackagesRuleAdd

func PackagesRuleAdd(ctx *context.Context)

func PackagesRuleAddPost

func PackagesRuleAddPost(ctx *context.Context)

func PackagesRuleEdit

func PackagesRuleEdit(ctx *context.Context)

func PackagesRuleEditPost

func PackagesRuleEditPost(ctx *context.Context)

func PackagesRulePreview

func PackagesRulePreview(ctx *context.Context)

func Profile

func Profile(ctx *context.Context)

Profile render user's profile page

func ProfilePost

func ProfilePost(ctx *context.Context)

ProfilePost response for change user's profile

func RebuildCargoIndex

func RebuildCargoIndex(ctx *context.Context)

func RedirectToDefaultSetting

func RedirectToDefaultSetting(ctx *context.Context)

func RegenerateChefKeyPair

func RegenerateChefKeyPair(ctx *context.Context)

func Repos

func Repos(ctx *context.Context)

Repos display a list of all repositories of the user

func RevokeOAuth2Grant

func RevokeOAuth2Grant(ctx *context.Context)

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

func UpdateUIThemePost(ctx *context.Context)

UpdateUIThemePost is used to update users' specific theme

func UpdateUserHiddenComments

func UpdateUserHiddenComments(ctx *context.Context)

UpdateUserHiddenComments update a user's shown comment types

func UpdateUserLang

func UpdateUserLang(ctx *context.Context)

UpdateUserLang update a user's language

func Webhooks

func Webhooks(ctx *context.Context)

Webhooks render webhook list page

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL