user

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 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 GetAuthenticatedUser

func GetAuthenticatedUser(ctx *context.APIContext)

GetAuthenticatedUser get curent user's information

func GetInfo

func GetInfo(ctx *context.APIContext)

GetInfo get 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 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 IsStarring added in v1.0.0

func IsStarring(ctx *context.APIContext)

IsStarring returns whether the authenticated is starring the repo

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 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 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 Search(ctx *context.APIContext)

Search search users

func Star added in v1.0.0

func Star(ctx *context.APIContext)

Star the repo specified in the APIContext, as the authenticated user

func Unstar added in v1.0.0

func Unstar(ctx *context.APIContext)

Unstar the repo specified in the APIContext, as the authenticated user

Types

This section is empty.

Jump to

Keyboard shortcuts

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