Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Add ¶
func Add(c *fiber.Ctx) error
Add godoc
@summary Add a new repository @tags Repo @Security ApiKeyAuth || cookies @accept json @produce json @param request body PrivateRepoDetails true "Repository details" @success 202 {object} app.GlobalResponse @failure 400 {object} app.GlobalResponse @failure 500 {object} app.GlobalResponse @router /repo [post]
func List ¶
func List(c *fiber.Ctx) error
List godoc
@summary Get a list all repositories @Security ApiKeyAuth || cookies @tags Repo @produce json @success 200 {object} ListData @router /repo [get]
func Remove ¶
func Remove(c *fiber.Ctx) error
Remove godoc
@summary Remove a repository @Security ApiKeyAuth || cookies @tags Repo @accept json @produce json @param request body RemovePayload true "Repository url" @success 200 {object} app.GlobalResponse @failure 400 {object} app.GlobalResponse @failure 500 {object} app.GlobalResponse @router /repo [delete]
func Update ¶
func Update(c *fiber.Ctx) error
Update godoc
@summary Update a repository @tags Repo @Security ApiKeyAuth || cookies @accept json @produce json @param request body PrivateRepoDetails true "Repository details" @success 202 {object} app.GlobalResponse @failure 400 {object} app.GlobalResponse @failure 500 {object} app.GlobalResponse @router /repo [put]
Types ¶
type ListData ¶
type ListData struct {
Data []repository.RepoData `json:"data"`
}
type PrivateRepoDetails ¶
type RemovePayload ¶
type RemovePayload struct {
Repo string `json:"repo"`
}
Click to show internal directories.
Click to hide internal directories.