Version: v0.7.19 Latest Latest

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

Go to latest
Published: Nov 21, 2015 License: MIT Imports: 15 Imported by: 0




This section is empty.


This section is empty.


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 DeleteRepo added in v0.7.0

func DeleteRepo(ctx *middleware.Context)

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 GetRepoRawFile added in v0.5.8

func GetRepoRawFile(ctx *middleware.Context)

func GetUserInfo added in v0.5.8

func GetUserInfo(ctx *middleware.Context)

GET /users/:username

func ListAccessTokens added in v0.5.8

func ListAccessTokens(ctx *middleware.Context)

GET /users/:username/tokens

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 ToApiDeployKey(apiLink string, key *models.DeployKey) *api.DeployKey

func ToApiHook added in v0.6.9

func ToApiHook(repoLink string, w *models.Webhook) *api.Hook

ToApiHook converts webhook to API format.

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.

func ToApiUser added in v0.5.9

func ToApiUser(u *models.User) *api.User

ToApiUser converts user to API format.


type CreateAccessTokenForm added in v0.5.8

type CreateAccessTokenForm struct {
	Name string `json:"name" binding:"Required"`

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL