Documentation ¶
Index ¶
- func CreateAccessToken(ctx *middleware.Context, form CreateAccessTokenForm)
- func CreateOrgRepo(ctx *middleware.Context, opt api.CreateRepoOption)
- func CreateRepo(ctx *middleware.Context, opt api.CreateRepoOption)
- func CreateRepoDeployKey(ctx *middleware.Context, form api.CreateDeployKeyOption)
- func CreateRepoHook(ctx *middleware.Context, form api.CreateHookOption)
- func DeleteRepo(ctx *middleware.Context)
- func DeleteRepoDeploykey(ctx *middleware.Context)
- func EditRepoHook(ctx *middleware.Context, form api.EditHookOption)
- func GetRepo(ctx *middleware.Context)
- func GetRepoArchive(ctx *middleware.Context)
- func GetRepoDeployKey(ctx *middleware.Context)
- func GetRepoRawFile(ctx *middleware.Context)
- func GetUserInfo(ctx *middleware.Context)
- func ListAccessTokens(ctx *middleware.Context)
- func ListMyRepos(ctx *middleware.Context)
- func ListRepoDeployKeys(ctx *middleware.Context)
- func ListRepoHooks(ctx *middleware.Context)
- func Markdown(ctx *middleware.Context, form apiv1.MarkdownForm)
- func MarkdownRaw(ctx *middleware.Context)
- func MigrateRepo(ctx *middleware.Context, form auth.MigrateRepoForm)
- func SearchRepos(ctx *middleware.Context)
- func SearchUsers(ctx *middleware.Context)
- func ToApiDeployKey(apiLink string, key *models.DeployKey) *api.DeployKey
- func ToApiHook(repoLink string, w *models.Webhook) *api.Hook
- func ToApiRepository(owner *models.User, repo *models.Repository, permission api.Permission) *api.Repository
- func ToApiUser(u *models.User) *api.User
- type CreateAccessTokenForm
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAccessToken ¶ added in v0.5.8
func CreateAccessToken(ctx *middleware.Context, form CreateAccessTokenForm)
POST /users/:username/tokens
func CreateOrgRepo ¶ added in v0.5.9
func CreateOrgRepo(ctx *middleware.Context, opt api.CreateRepoOption)
func CreateRepo ¶ added in v0.5.9
func CreateRepo(ctx *middleware.Context, opt api.CreateRepoOption)
https://github.com/gogits/go-gogs-client/wiki/Repositories#create
func CreateRepoDeployKey ¶ added in v0.7.19
func CreateRepoDeployKey(ctx *middleware.Context, form api.CreateDeployKeyOption)
https://github.com/gogits/go-gogs-client/wiki/Repositories---Deploy-Keys#add-a-new-deploy-key
func CreateRepoHook ¶ added in v0.5.8
func CreateRepoHook(ctx *middleware.Context, form api.CreateHookOption)
https://github.com/gogits/go-gogs-client/wiki/Repositories#create-a-hook
func DeleteRepo ¶ added in v0.7.0
func DeleteRepo(ctx *middleware.Context)
func DeleteRepoDeploykey ¶ added in v0.7.19
func DeleteRepoDeploykey(ctx *middleware.Context)
https://github.com/gogits/go-gogs-client/wiki/Repositories---Deploy-Keys#remove-a-deploy-key
func EditRepoHook ¶ added in v0.5.8
func EditRepoHook(ctx *middleware.Context, form api.EditHookOption)
https://github.com/gogits/go-gogs-client/wiki/Repositories#edit-a-hook
func GetRepo ¶ added in v0.7.0
func GetRepo(ctx *middleware.Context)
func GetRepoArchive ¶ added in v0.6.9
func GetRepoArchive(ctx *middleware.Context)
func GetRepoDeployKey ¶ added in v0.7.19
func GetRepoDeployKey(ctx *middleware.Context)
https://github.com/gogits/go-gogs-client/wiki/Repositories---Deploy-Keys#get-a-deploy-key
func GetRepoRawFile ¶ added in v0.5.8
func GetRepoRawFile(ctx *middleware.Context)
func ListAccessTokens ¶ added in v0.5.8
func ListAccessTokens(ctx *middleware.Context)
GET /users/:username/tokens
func ListMyRepos ¶ added in v0.5.8
func ListMyRepos(ctx *middleware.Context)
https://github.com/gogits/go-gogs-client/wiki/Repositories#list-your-repositories
func ListRepoDeployKeys ¶ added in v0.7.19
func ListRepoDeployKeys(ctx *middleware.Context)
https://github.com/gogits/go-gogs-client/wiki/Repositories---Deploy-Keys#list-deploy-keys
func ListRepoHooks ¶ added in v0.5.8
func ListRepoHooks(ctx *middleware.Context)
https://github.com/gogits/go-gogs-client/wiki/Repositories#list-hooks
func Markdown ¶
func Markdown(ctx *middleware.Context, form apiv1.MarkdownForm)
Render an arbitrary Markdown document.
func MarkdownRaw ¶ added in v0.4.0
func MarkdownRaw(ctx *middleware.Context)
Render a Markdown document in raw mode.
func MigrateRepo ¶ added in v0.5.9
func MigrateRepo(ctx *middleware.Context, form auth.MigrateRepoForm)
func SearchRepos ¶ added in v0.5.0
func SearchRepos(ctx *middleware.Context)
func SearchUsers ¶ added in v0.5.0
func SearchUsers(ctx *middleware.Context)
func ToApiDeployKey ¶ added in v0.7.19
func ToApiRepository ¶ added in v0.5.9
func ToApiRepository(owner *models.User, repo *models.Repository, permission api.Permission) *api.Repository
ToApiRepository converts repository to API format.
Types ¶
type CreateAccessTokenForm ¶ added in v0.5.8
type CreateAccessTokenForm struct {
Name string `json:"name" binding:"Required"`
}