repo

package
v0.0.0-...-ead0699 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

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 PrivateRepoDetails struct {
	URL      string `json:"url"`
	ImageRef string `json:"image_ref"`
	Username string `json:"username"`
	Password string `json:"password"`
}

type RemovePayload

type RemovePayload struct {
	Repo string `json:"repo"`
}

Jump to

Keyboard shortcuts

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