Documentation ¶
Index ¶
- func AddEmail(ctx *context.APIContext, form api.CreateEmailOption)
- func CheckFollowing(ctx *context.APIContext)
- func CheckMyFollowing(ctx *context.APIContext)
- func CreateAccessToken(ctx *context.APIContext, form api.CreateAccessTokenOption)
- func CreatePublicKey(ctx *context.APIContext, form api.CreateKeyOption)
- func CreateUserPublicKey(ctx *context.APIContext, form api.CreateKeyOption, uid int64)
- func DeleteEmail(ctx *context.APIContext, form api.CreateEmailOption)
- func DeletePublicKey(ctx *context.APIContext)
- func Follow(ctx *context.APIContext)
- func GetAuthenticatedUser(ctx *context.APIContext)
- func GetInfo(ctx *context.APIContext)
- func GetMyStarredRepos(ctx *context.APIContext)
- func GetMyWatchedRepos(ctx *context.APIContext)
- func GetPublicKey(ctx *context.APIContext)
- func GetStarredRepos(ctx *context.APIContext)
- func GetUserByParams(ctx *context.APIContext) *models.User
- func GetUserByParamsName(ctx *context.APIContext, name string) *models.User
- func GetWatchedRepos(ctx *context.APIContext)
- func IsStarring(ctx *context.APIContext)
- func IsWatching(ctx *context.APIContext)
- func ListAccessTokens(ctx *context.APIContext)
- func ListEmails(ctx *context.APIContext)
- func ListFollowers(ctx *context.APIContext)
- func ListFollowing(ctx *context.APIContext)
- func ListMyFollowers(ctx *context.APIContext)
- func ListMyFollowing(ctx *context.APIContext)
- func ListMyPublicKeys(ctx *context.APIContext)
- func ListMyRepos(ctx *context.APIContext)
- func ListPublicKeys(ctx *context.APIContext)
- func ListUserRepos(ctx *context.APIContext)
- func Search(ctx *context.APIContext)
- func Star(ctx *context.APIContext)
- func Unfollow(ctx *context.APIContext)
- func Unstar(ctx *context.APIContext)
- func Unwatch(ctx *context.APIContext)
- func Watch(ctx *context.APIContext)
- type WatchInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddEmail ¶
func AddEmail(ctx *context.APIContext, form api.CreateEmailOption)
AddEmail add email for me see https://github.com/gogits/go-gogs-client/wiki/Users-Emails#add-email-addresses
func CheckFollowing ¶
func CheckFollowing(ctx *context.APIContext)
CheckFollowing check if the repo is followed by user see https://github.com/gogits/go-gogs-client/wiki/Users-Followers#check-if-one-user-follows-another
func CheckMyFollowing ¶
func CheckMyFollowing(ctx *context.APIContext)
CheckMyFollowing check if the repo is followed by me see https://github.com/gogits/go-gogs-client/wiki/Users-Followers#check-if-you-are-following-a-user
func CreateAccessToken ¶
func CreateAccessToken(ctx *context.APIContext, form api.CreateAccessTokenOption)
CreateAccessToken create access tokens see https://github.com/gogits/go-gogs-client/wiki/Users#create-a-access-token
func CreatePublicKey ¶
func CreatePublicKey(ctx *context.APIContext, form api.CreateKeyOption)
CreatePublicKey create one public key for me see https://github.com/gogits/go-gogs-client/wiki/Users-Public-Keys#create-a-public-key
func CreateUserPublicKey ¶
func CreateUserPublicKey(ctx *context.APIContext, form api.CreateKeyOption, uid int64)
CreateUserPublicKey creates new public key to given user by ID.
func DeleteEmail ¶
func DeleteEmail(ctx *context.APIContext, form api.CreateEmailOption)
DeleteEmail delete email see https://github.com/gogits/go-gogs-client/wiki/Users-Emails#delete-email-addresses
func DeletePublicKey ¶
func DeletePublicKey(ctx *context.APIContext)
DeletePublicKey delete one public key of mine see https://github.com/gogits/go-gogs-client/wiki/Users-Public-Keys#delete-a-public-key
func Follow ¶
func Follow(ctx *context.APIContext)
Follow follow one repository see https://github.com/gogits/go-gogs-client/wiki/Users-Followers#follow-a-user
func GetAuthenticatedUser ¶
func GetAuthenticatedUser(ctx *context.APIContext)
GetAuthenticatedUser get curent user's information
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 GetPublicKey ¶
func GetPublicKey(ctx *context.APIContext)
GetPublicKey get one public key see https://github.com/gogits/go-gogs-client/wiki/Users-Public-Keys#get-a-single-public-key
func GetStarredRepos ¶ added in v1.0.0
func GetStarredRepos(ctx *context.APIContext)
GetStarredRepos returns the repos that the user specified by the APIContext has starred
func GetUserByParams ¶
func GetUserByParams(ctx *context.APIContext) *models.User
GetUserByParams returns user whose name is presented in URL paramenter.
func GetUserByParamsName ¶
func GetUserByParamsName(ctx *context.APIContext, name string) *models.User
GetUserByParamsName get user by name
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 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 see https://github.com/gogits/go-gogs-client/wiki/Users#list-access-tokens-for-a-user
func ListEmails ¶
func ListEmails(ctx *context.APIContext)
ListEmails list all the emails of mine 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 user's followers see https://github.com/gogits/go-gogs-client/wiki/Users-Followers#list-followers-of-a-user
func ListFollowing ¶
func ListFollowing(ctx *context.APIContext)
ListFollowing list user's followings see https://github.com/gogits/go-gogs-client/wiki/Users-Followers#list-users-followed-by-another-user
func ListMyFollowers ¶
func ListMyFollowers(ctx *context.APIContext)
ListMyFollowers list all my followers
func ListMyFollowing ¶
func ListMyFollowing(ctx *context.APIContext)
ListMyFollowing list all my followings
func ListMyPublicKeys ¶
func ListMyPublicKeys(ctx *context.APIContext)
ListMyPublicKeys list all my public keys see https://github.com/gogits/go-gogs-client/wiki/Users-Public-Keys#list-your-public-keys
func ListMyRepos ¶ added in v1.1.0
func ListMyRepos(ctx *context.APIContext)
ListMyRepos - list the repositories owned by you. see https://github.com/gogits/go-gogs-client/wiki/Repositories#list-your-repositories
func ListPublicKeys ¶
func ListPublicKeys(ctx *context.APIContext)
ListPublicKeys list all user's public keys see https://github.com/gogits/go-gogs-client/wiki/Users-Public-Keys#list-public-keys-for-a-user
func ListUserRepos ¶ added in v1.1.0
func ListUserRepos(ctx *context.APIContext)
ListUserRepos - list the repos owned and accessible by the given user.
func Star ¶ added in v1.0.0
func Star(ctx *context.APIContext)
Star the repo specified in the APIContext, as the authenticated user
func Unfollow ¶
func Unfollow(ctx *context.APIContext)
Unfollow unfollow one repository see https://github.com/gogits/go-gogs-client/wiki/Users-Followers#unfollow-a-user
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 Watch ¶ added in v1.1.0
func Watch(ctx *context.APIContext)
Watch the repo specified in ctx, as the authenticated user
Types ¶
type WatchInfo ¶ added in v1.1.0
type WatchInfo struct { Subscribed bool `json:"subscribed"` Ignored bool `json:"ignored"` Reason interface{} `json:"reason"` CreatedAt time.Time `json:"created_at"` URL string `json:"url"` RepositoryURL string `json:"repository_url"` }
WatchInfo contains information about a watched repository