Documentation ¶
Index ¶
- func AddEmail(ctx *context.APIContext)
- func BlockUser(ctx *context.APIContext)
- func CheckFollowing(ctx *context.APIContext)
- func CheckMyFollowing(ctx *context.APIContext)
- func CheckUserBlock(ctx *context.APIContext)
- func CreateAccessToken(ctx *context.APIContext)
- func CreateGPGKey(ctx *context.APIContext)
- func CreateHook(ctx *context.APIContext)
- func CreateOauth2Application(ctx *context.APIContext)
- func CreateOrUpdateSecret(ctx *context.APIContext)
- func CreatePublicKey(ctx *context.APIContext)
- func CreateUserGPGKey(ctx *context.APIContext, form api.CreateGPGKeyOption, uid int64)
- func CreateUserPublicKey(ctx *context.APIContext, form api.CreateKeyOption, uid int64)
- func CreateVariable(ctx *context.APIContext)
- func DeleteAccessToken(ctx *context.APIContext)
- func DeleteAvatar(ctx *context.APIContext)
- func DeleteEmail(ctx *context.APIContext)
- func DeleteGPGKey(ctx *context.APIContext)
- func DeleteHook(ctx *context.APIContext)
- func DeleteOauth2Application(ctx *context.APIContext)
- func DeletePublicKey(ctx *context.APIContext)
- func DeleteSecret(ctx *context.APIContext)
- func DeleteVariable(ctx *context.APIContext)
- func EditHook(ctx *context.APIContext)
- func Follow(ctx *context.APIContext)
- func GetAuthenticatedUser(ctx *context.APIContext)
- func GetGPGKey(ctx *context.APIContext)
- func GetHook(ctx *context.APIContext)
- func GetInfo(ctx *context.APIContext)
- func GetMyStarredRepos(ctx *context.APIContext)
- func GetMyWatchedRepos(ctx *context.APIContext)
- func GetOauth2Application(ctx *context.APIContext)
- func GetPublicKey(ctx *context.APIContext)
- func GetRegistrationToken(ctx *context.APIContext)
- func GetStarredRepos(ctx *context.APIContext)
- func GetUserByParams(ctx *context.APIContext) *user_model.User
- func GetUserByParamsName(ctx *context.APIContext, name string) *user_model.User
- func GetUserHeatmapData(ctx *context.APIContext)
- func GetUserSettings(ctx *context.APIContext)
- func GetVariable(ctx *context.APIContext)
- func GetVerificationToken(ctx *context.APIContext)
- func GetWatchedRepos(ctx *context.APIContext)
- func HandleAddGPGKeyError(ctx *context.APIContext, err error, token string)
- func IsStarring(ctx *context.APIContext)
- func IsWatching(ctx *context.APIContext)
- func ListAccessTokens(ctx *context.APIContext)
- func ListBlocks(ctx *context.APIContext)
- func ListEmails(ctx *context.APIContext)
- func ListFollowers(ctx *context.APIContext)
- func ListFollowing(ctx *context.APIContext)
- func ListGPGKeys(ctx *context.APIContext)
- func ListHooks(ctx *context.APIContext)
- func ListMyFollowers(ctx *context.APIContext)
- func ListMyFollowing(ctx *context.APIContext)
- func ListMyGPGKeys(ctx *context.APIContext)
- func ListMyPublicKeys(ctx *context.APIContext)
- func ListMyRepos(ctx *context.APIContext)
- func ListOauth2Applications(ctx *context.APIContext)
- func ListOrgRepos(ctx *context.APIContext)
- func ListPublicKeys(ctx *context.APIContext)
- func ListUserActivityFeeds(ctx *context.APIContext)
- func ListUserRepos(ctx *context.APIContext)
- func ListVariables(ctx *context.APIContext)
- func Search(ctx *context.APIContext)
- func Star(ctx *context.APIContext)
- func UnblockUser(ctx *context.APIContext)
- func Unfollow(ctx *context.APIContext)
- func Unstar(ctx *context.APIContext)
- func Unwatch(ctx *context.APIContext)
- func UpdateAvatar(ctx *context.APIContext)
- func UpdateOauth2Application(ctx *context.APIContext)
- func UpdateUserSettings(ctx *context.APIContext)
- func UpdateVariable(ctx *context.APIContext)
- func VerifyUserGPGKey(ctx *context.APIContext)
- func Watch(ctx *context.APIContext)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BlockUser ¶ added in v1.22.0
func BlockUser(ctx *context.APIContext)
func CheckFollowing ¶
func CheckFollowing(ctx *context.APIContext)
CheckFollowing check if one user is following another user
func CheckMyFollowing ¶
func CheckMyFollowing(ctx *context.APIContext)
CheckMyFollowing whether the given user is followed by the authenticated user
func CheckUserBlock ¶ added in v1.22.0
func CheckUserBlock(ctx *context.APIContext)
func CreateAccessToken ¶
func CreateAccessToken(ctx *context.APIContext)
CreateAccessToken create access tokens
func CreateGPGKey ¶ added in v1.2.0
func CreateGPGKey(ctx *context.APIContext)
CreateGPGKey create a GPG key belonging to the authenticated user
func CreateHook ¶ added in v1.20.0
func CreateHook(ctx *context.APIContext)
CreateHook create a hook for the authenticated user
func CreateOauth2Application ¶ added in v1.12.0
func CreateOauth2Application(ctx *context.APIContext)
CreateOauth2Application is the handler to create a new OAuth2 Application for the authenticated user
func CreateOrUpdateSecret ¶ added in v1.21.0
func CreateOrUpdateSecret(ctx *context.APIContext)
create or update one secret of the user scope
func CreatePublicKey ¶
func CreatePublicKey(ctx *context.APIContext)
CreatePublicKey create one public key for me
func CreateUserGPGKey ¶ added in v1.2.0
func CreateUserGPGKey(ctx *context.APIContext, form api.CreateGPGKeyOption, uid int64)
CreateUserGPGKey creates new GPG key to given user by ID.
func CreateUserPublicKey ¶
func CreateUserPublicKey(ctx *context.APIContext, form api.CreateKeyOption, uid int64)
CreateUserPublicKey creates new public key to given user by ID.
func CreateVariable ¶ added in v1.22.0
func CreateVariable(ctx *context.APIContext)
CreateVariable create a user-level variable
func DeleteAccessToken ¶ added in v1.6.0
func DeleteAccessToken(ctx *context.APIContext)
DeleteAccessToken delete access tokens
func DeleteAvatar ¶ added in v1.21.0
func DeleteAvatar(ctx *context.APIContext)
DeleteAvatar deletes the Avatar of an User
func DeleteGPGKey ¶ added in v1.2.0
func DeleteGPGKey(ctx *context.APIContext)
DeleteGPGKey remove a GPG key belonging to the authenticated user
func DeleteHook ¶ added in v1.20.0
func DeleteHook(ctx *context.APIContext)
DeleteHook delete a hook of the authenticated user
func DeleteOauth2Application ¶ added in v1.12.0
func DeleteOauth2Application(ctx *context.APIContext)
DeleteOauth2Application delete OAuth2 Application
func DeletePublicKey ¶
func DeletePublicKey(ctx *context.APIContext)
DeletePublicKey delete one public key
func DeleteSecret ¶ added in v1.21.0
func DeleteSecret(ctx *context.APIContext)
DeleteSecret delete one secret of the user scope
func DeleteVariable ¶ added in v1.22.0
func DeleteVariable(ctx *context.APIContext)
DeleteVariable delete a user-level variable which is created by current doer
func EditHook ¶ added in v1.20.0
func EditHook(ctx *context.APIContext)
EditHook modify a hook of the authenticated user
func GetAuthenticatedUser ¶
func GetAuthenticatedUser(ctx *context.APIContext)
GetAuthenticatedUser get current user's information
func GetGPGKey ¶ added in v1.2.0
func GetGPGKey(ctx *context.APIContext)
GetGPGKey get the GPG key based on a id
func GetHook ¶ added in v1.20.0
func GetHook(ctx *context.APIContext)
GetHook get the authenticated user's hook by id
func GetMyStarredRepos ¶ added in v1.0.0
func GetMyStarredRepos(ctx *context.APIContext)
GetMyStarredRepos returns the repos that the authenticated user has starred
func GetMyWatchedRepos ¶ added in v1.1.0
func GetMyWatchedRepos(ctx *context.APIContext)
GetMyWatchedRepos returns the repos that the authenticated user is watching
func GetOauth2Application ¶ added in v1.12.0
func GetOauth2Application(ctx *context.APIContext)
GetOauth2Application get OAuth2 Application
func GetRegistrationToken ¶ added in v1.22.0
func GetRegistrationToken(ctx *context.APIContext)
GetRegistrationToken returns the token to register user runners
func GetStarredRepos ¶ added in v1.0.0
func GetStarredRepos(ctx *context.APIContext)
GetStarredRepos returns the repos that the given user has starred
func GetUserByParams ¶
func GetUserByParams(ctx *context.APIContext) *user_model.User
GetUserByParams returns user whose name is presented in URL (":username").
func GetUserByParamsName ¶
func GetUserByParamsName(ctx *context.APIContext, name string) *user_model.User
GetUserByParamsName get user by name
func GetUserHeatmapData ¶ added in v1.7.0
func GetUserHeatmapData(ctx *context.APIContext)
GetUserHeatmapData is the handler to get a users heatmap
func GetUserSettings ¶ added in v1.15.0
func GetUserSettings(ctx *context.APIContext)
GetUserSettings returns user settings
func GetVariable ¶ added in v1.22.0
func GetVariable(ctx *context.APIContext)
GetVariable get a user-level variable which is created by current doer
func GetVerificationToken ¶ added in v1.15.0
func GetVerificationToken(ctx *context.APIContext)
GetVerificationToken returns the current token to be signed for this user
func GetWatchedRepos ¶ added in v1.1.0
func GetWatchedRepos(ctx *context.APIContext)
GetWatchedRepos returns the repos that the user specified in ctx is watching
func HandleAddGPGKeyError ¶ added in v1.2.0
func HandleAddGPGKeyError(ctx *context.APIContext, err error, token string)
HandleAddGPGKeyError handle add GPGKey error
func IsStarring ¶ added in v1.0.0
func IsStarring(ctx *context.APIContext)
IsStarring returns whether the authenticated is starring the repo
func IsWatching ¶ added in v1.1.0
func IsWatching(ctx *context.APIContext)
IsWatching returns whether the authenticated user is watching the repo specified in ctx
func ListAccessTokens ¶
func ListAccessTokens(ctx *context.APIContext)
ListAccessTokens list all the access tokens
func ListBlocks ¶ added in v1.22.0
func ListBlocks(ctx *context.APIContext)
func ListEmails ¶
func ListEmails(ctx *context.APIContext)
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
func ListFollowers ¶
func ListFollowers(ctx *context.APIContext)
ListFollowers list the given user's followers
func ListFollowing ¶
func ListFollowing(ctx *context.APIContext)
ListFollowing list the users that the given user is following
func ListGPGKeys ¶ added in v1.2.0
func ListGPGKeys(ctx *context.APIContext)
ListGPGKeys get the GPG key list of a user
func ListHooks ¶ added in v1.20.0
func ListHooks(ctx *context.APIContext)
ListHooks list the authenticated user's webhooks
func ListMyFollowers ¶
func ListMyFollowers(ctx *context.APIContext)
ListMyFollowers list the authenticated user's followers
func ListMyFollowing ¶
func ListMyFollowing(ctx *context.APIContext)
ListMyFollowing list the users that the authenticated user is following
func ListMyGPGKeys ¶ added in v1.2.0
func ListMyGPGKeys(ctx *context.APIContext)
ListMyGPGKeys get the GPG key list of the authenticated user
func ListMyPublicKeys ¶
func ListMyPublicKeys(ctx *context.APIContext)
ListMyPublicKeys list all of the authenticated user's public keys
func ListMyRepos ¶ added in v1.1.0
func ListMyRepos(ctx *context.APIContext)
ListMyRepos - list the repositories you own or have access to.
func ListOauth2Applications ¶ added in v1.12.0
func ListOauth2Applications(ctx *context.APIContext)
ListOauth2Applications list all the Oauth2 application
func ListOrgRepos ¶ added in v1.2.0
func ListOrgRepos(ctx *context.APIContext)
ListOrgRepos - list the repositories of an organization.
func ListPublicKeys ¶
func ListPublicKeys(ctx *context.APIContext)
ListPublicKeys list the given user's public keys
func ListUserActivityFeeds ¶ added in v1.20.0
func ListUserActivityFeeds(ctx *context.APIContext)
func ListUserRepos ¶ added in v1.1.0
func ListUserRepos(ctx *context.APIContext)
ListUserRepos - list the repos owned by the given user.
func ListVariables ¶ added in v1.22.0
func ListVariables(ctx *context.APIContext)
ListVariables list user-level variables
func Star ¶ added in v1.0.0
func Star(ctx *context.APIContext)
Star the repo specified in the APIContext, as the authenticated user
func UnblockUser ¶ added in v1.22.0
func UnblockUser(ctx *context.APIContext)
func Unstar ¶ added in v1.0.0
func Unstar(ctx *context.APIContext)
Unstar the repo specified in the APIContext, as the authenticated user
func Unwatch ¶ added in v1.1.0
func Unwatch(ctx *context.APIContext)
Unwatch the repo specified in ctx, as the authenticated user
func UpdateAvatar ¶ added in v1.21.0
func UpdateAvatar(ctx *context.APIContext)
UpdateAvatar updates the Avatar of an User
func UpdateOauth2Application ¶ added in v1.12.0
func UpdateOauth2Application(ctx *context.APIContext)
UpdateOauth2Application update OAuth2 Application
func UpdateUserSettings ¶ added in v1.15.0
func UpdateUserSettings(ctx *context.APIContext)
UpdateUserSettings returns user settings
func UpdateVariable ¶ added in v1.22.0
func UpdateVariable(ctx *context.APIContext)
UpdateVariable update a user-level variable which is created by current doer
func VerifyUserGPGKey ¶ added in v1.15.0
func VerifyUserGPGKey(ctx *context.APIContext)
VerifyUserGPGKey creates new GPG key to given user by ID.
func Watch ¶ added in v1.1.0
func Watch(ctx *context.APIContext)
Watch the repo specified in ctx, as the authenticated user
Types ¶
This section is empty.