Documentation ¶
Index ¶
- func CreateAccessToken(ctx *middleware.Context, form api.CreateAccessTokenOption)
- func CreatePublicKey(ctx *middleware.Context, form api.CreateKeyOption)
- func CreateUserPublicKey(ctx *middleware.Context, form api.CreateKeyOption, uid int64)
- func DeletePublicKey(ctx *middleware.Context)
- func GetInfo(ctx *middleware.Context)
- func GetPublicKey(ctx *middleware.Context)
- func GetUserByParams(ctx *middleware.Context) *models.User
- func ListAccessTokens(ctx *middleware.Context)
- func ListMyPublicKeys(ctx *middleware.Context)
- func ListPublicKeys(ctx *middleware.Context)
- func Search(ctx *middleware.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAccessToken ¶
func CreateAccessToken(ctx *middleware.Context, form api.CreateAccessTokenOption)
https://github.com/gogits/go-gogs-client/wiki/Users#create-a-access-token
func CreatePublicKey ¶
func CreatePublicKey(ctx *middleware.Context, form api.CreateKeyOption)
https://github.com/gogits/go-gogs-client/wiki/Users-Public-Keys#create-a-public-key
func CreateUserPublicKey ¶
func CreateUserPublicKey(ctx *middleware.Context, form api.CreateKeyOption, uid int64)
CreateUserPublicKey creates new public key to given user by ID.
func DeletePublicKey ¶
func DeletePublicKey(ctx *middleware.Context)
https://github.com/gogits/go-gogs-client/wiki/Users-Public-Keys#delete-a-public-key
func GetInfo ¶
func GetInfo(ctx *middleware.Context)
https://github.com/gogits/go-gogs-client/wiki/Users#get-a-single-user
func GetPublicKey ¶
func GetPublicKey(ctx *middleware.Context)
https://github.com/gogits/go-gogs-client/wiki/Users-Public-Keys#get-a-single-public-key
func GetUserByParams ¶
func GetUserByParams(ctx *middleware.Context) *models.User
GetUserByParams returns user whose name is presented in URL paramenter.
func ListAccessTokens ¶
func ListAccessTokens(ctx *middleware.Context)
https://github.com/gogits/go-gogs-client/wiki/Users#list-access-tokens-for-a-user
func ListMyPublicKeys ¶
func ListMyPublicKeys(ctx *middleware.Context)
https://github.com/gogits/go-gogs-client/wiki/Users-Public-Keys#list-your-public-keys
func ListPublicKeys ¶
func ListPublicKeys(ctx *middleware.Context)
https://github.com/gogits/go-gogs-client/wiki/Users-Public-Keys#list-public-keys-for-a-user
func Search ¶
func Search(ctx *middleware.Context)
https://github.com/gogits/go-gogs-client/wiki/Users#search-users
Types ¶
This section is empty.