user

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2017 License: MIT Imports: 9 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

func CheckMyFollowing

func CheckMyFollowing(ctx *context.APIContext)

CheckMyFollowing check if the repo is followed by me

func CreateAccessToken

func CreateAccessToken(ctx *context.APIContext, form api.CreateAccessTokenOption)

CreateAccessToken create access tokens

func CreateGPGKey added in v1.2.0

func CreateGPGKey(ctx *context.APIContext, form api.CreateGPGKeyOption)

CreateGPGKey associate a GPG key to the current user

func CreatePublicKey

func CreatePublicKey(ctx *context.APIContext, form api.CreateKeyOption)

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 DeleteGPGKey added in v1.2.0

func DeleteGPGKey(ctx *context.APIContext)

DeleteGPGKey remove a GPG key associated to the current user

func DeletePublicKey

func DeletePublicKey(ctx *context.APIContext)

DeletePublicKey delete one public key of mine

func Follow

func Follow(ctx *context.APIContext)

Follow follow one repository

func GetAuthenticatedUser

func GetAuthenticatedUser(ctx *context.APIContext)

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

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 HandleAddGPGKeyError added in v1.2.0

func HandleAddGPGKeyError(ctx *context.APIContext, err error)

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 ListFollowers

func ListFollowers(ctx *context.APIContext)

ListFollowers list user's followers

func ListFollowing

func ListFollowing(ctx *context.APIContext)

ListFollowing list user's followings

func ListGPGKeys added in v1.2.0

func ListGPGKeys(ctx *context.APIContext)

ListGPGKeys get the GPG key list of 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 ListMyGPGKeys added in v1.2.0

func ListMyGPGKeys(ctx *context.APIContext)

ListMyGPGKeys get the GPG key list of the logged user

func ListMyPublicKeys

func ListMyPublicKeys(ctx *context.APIContext)

ListMyPublicKeys list all my 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 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 all user's public keys

func ListUserRepos added in v1.1.0

func ListUserRepos(ctx *context.APIContext)

ListUserRepos - list the repos owned by the given 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 Unfollow

func Unfollow(ctx *context.APIContext)

Unfollow unfollow one repository

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

This section is empty.

Jump to

Keyboard shortcuts

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