package
1.24.0-dev
Repository: https://github.com/go-gitea/gitea.git
Documentation: pkg.go.dev

# Functions

AddEmail add an email address.
CheckFollowing check if one user is following another user.
CheckMyFollowing whether the given user is followed by the authenticated user.
CreateAccessToken create access tokens.
CreateGPGKey create a GPG key belonging to the authenticated user.
CreateHook create a hook for the authenticated user.
CreateOauth2Application is the handler to create a new OAuth2 Application for the authenticated user.
create or update one secret of the user scope.
CreatePublicKey create one public key for me.
CreateUserGPGKey creates new GPG key to given user by ID.
CreateUserPublicKey creates new public key to given user by ID.
CreateVariable create a user-level variable.
DeleteAccessToken delete access tokens.
DeleteAvatar deletes the Avatar of an User.
DeleteEmail delete email.
DeleteGPGKey remove a GPG key belonging to the authenticated user.
DeleteHook delete a hook of the authenticated user.
DeleteOauth2Application delete OAuth2 Application.
DeletePublicKey delete one public key.
DeleteSecret delete one secret of the user scope.
DeleteVariable delete a user-level variable which is created by current doer.
EditHook modify a hook of the authenticated user.
Follow follow a user.
GetAuthenticatedUser get current user's information.
GetGPGKey get the GPG key based on a id.
GetHook get the authenticated user's hook by id.
GetInfo get user's information.
GetMyStarredRepos returns the repos that the authenticated user has starred.
GetMyWatchedRepos returns the repos that the authenticated user is watching.
GetOauth2Application get OAuth2 Application.
GetPublicKey get a public key.
GetRegistrationToken returns the token to register user runners.
GetStarredRepos returns the repos that the given user has starred.
GetUserByParams returns user whose name is presented in URL (":username").
GetUserByParamsName get user by name.
GetUserHeatmapData is the handler to get a users heatmap.
GetUserSettings returns user settings.
GetVariable get a user-level variable which is created by current doer.
GetVerificationToken returns the current token to be signed for this user.
GetWatchedRepos returns the repos that the user specified in ctx is watching.
HandleAddGPGKeyError handle add GPGKey error.
IsStarring returns whether the authenticated is starring the repo.
IsWatching returns whether the authenticated user is watching the repo specified in ctx.
ListAccessTokens list all the access tokens.
ListEmails list all of the authenticated user's email addresses see https://github.com/gogits/go-gogs-client/wiki/Users-Emails#list-email-addresses-for-a-user.
ListFollowers list the given user's followers.
ListFollowing list the users that the given user is following.
ListGPGKeys get the GPG key list of a user.
ListHooks list the authenticated user's webhooks.
ListMyFollowers list the authenticated user's followers.
ListMyFollowing list the users that the authenticated user is following.
ListMyGPGKeys get the GPG key list of the authenticated user.
ListMyPublicKeys list all of the authenticated user's public keys.
ListMyRepos - list the repositories you own or have access to.
ListOauth2Applications list all the Oauth2 application.
ListOrgRepos - list the repositories of an organization.
ListPublicKeys list the given user's public keys.
ListUserRepos - list the repos owned by the given user.
ListVariables list user-level variables.
Search search users.
Star the repo specified in the APIContext, as the authenticated user.
Unfollow unfollow a user.
Unstar the repo specified in the APIContext, as the authenticated user.
Unwatch the repo specified in ctx, as the authenticated user.
UpdateAvatar updates the Avatar of an User.
UpdateOauth2Application update OAuth2 Application.
UpdateUserSettings returns user settings.
UpdateVariable update a user-level variable which is created by current doer.
VerifyUserGPGKey creates new GPG key to given user by ID.
Watch the repo specified in ctx, as the authenticated user.