Documentation ¶
Index ¶
- Variables
- type RegistryHandler
- func (h *RegistryHandler) DeleteProjectRegistry(c *gin.Context)
- func (h *RegistryHandler) DeleteRegistry(c *gin.Context)
- func (h *RegistryHandler) ListProjectRegistry(c *gin.Context)
- func (h *RegistryHandler) ListRegistry(c *gin.Context)
- func (h *RegistryHandler) PostProjectRegistry(c *gin.Context)
- func (h *RegistryHandler) PutProjectRegistry(c *gin.Context)
- func (h *RegistryHandler) PutRegistry(c *gin.Context)
- func (h *RegistryHandler) RegistRouter(rg *gin.RouterGroup)
- func (h *RegistryHandler) RetrieveProjectRegistry(c *gin.Context)
- func (h *RegistryHandler) RetrieveRegistry(c *gin.Context)
- func (h *RegistryHandler) SetDefaultProjectRegistry(c *gin.Context)
Constants ¶
This section is empty.
Variables ¶
var ( SearchFields = []string{"RegistryName"} FilterFields = []string{"RegistryName"} PreloadFields = []string{"Creator", "Project"} OrderFields = []string{"RegistryName", "ID"} ModelName = "Registry" ProjectKeyName = "project_id" )
Functions ¶
This section is empty.
Types ¶
type RegistryHandler ¶
type RegistryHandler struct {
base.BaseHandler
}
func (*RegistryHandler) DeleteProjectRegistry ¶
func (h *RegistryHandler) DeleteProjectRegistry(c *gin.Context)
DeleteProjectRegistry Project 的 Registry @Tags Project @Summary 删除 Project 的 Registry @Description 删除 Project 的 Registry @Accept json @Produce json @Param project_id path uint true "project_id" @Param registry_id path uint true "registry_id" @Success 200 {object} handlers.ResponseStruct{Data=models.Registry} "models.Registry" @Router /v1/project/{project_id}/registry/{registry_id} [delete] @Security JWT
func (*RegistryHandler) DeleteRegistry ¶
func (h *RegistryHandler) DeleteRegistry(c *gin.Context)
DeleteRegistry 删除 Registry @Tags Registry @Summary 删除 Registry @Description 删除 Registry @Accept json @Produce json @Param registry_id path uint true "registry_id" @Success 204 {object} handlers.ResponseStruct "resp" @Router /v1/registry/{registry_id} [delete] @Security JWT
func (*RegistryHandler) ListProjectRegistry ¶
func (h *RegistryHandler) ListProjectRegistry(c *gin.Context)
ListProjectRegistry 获取属于Project的 Registry 列表 @Tags Project @Summary 获取属于 Project 的 Registry 列表 @Description 获取属于 Project 的 Registry 列表 @Accept json @Produce json @Param project_id path uint true "project_id" @Param preload query string false "choices Creator,Project" @Param page query int false "page" @Param size query int false "page" @Param search query string false "search in (RegistryName)" @Success 200 {object} handlers.ResponseStruct{Data=handlers.PageData{List=[]models.Registry}} "models.Registry" @Router /v1/project/{project_id}/registry [get] @Security JWT
func (*RegistryHandler) ListRegistry ¶
func (h *RegistryHandler) ListRegistry(c *gin.Context)
ListRegistry 列表 Registry @Tags Registry @Summary Registry列表 @Description Registry列表 @Accept json @Produce json @Param RegistryName query string false "RegistryName" @Param preload query string false "choices Creator,Project" @Param page query int false "page" @Param size query int false "page" @Param search query string false "search in (RegistryName)" @Success 200 {object} handlers.ResponseStruct{Data=handlers.PageData{List=[]models.Registry}} "Registry" @Router /v1/registry [get] @Security JWT
func (*RegistryHandler) PostProjectRegistry ¶
func (h *RegistryHandler) PostProjectRegistry(c *gin.Context)
PostProjectRegistry 创建一个属于 Project 的Registry @Tags Project @Summary 创建一个属于 Project 的Registry @Description 创建一个属于 Project 的Registry @Accept json @Produce json @Param project_id path uint true "project_id" @Param param body models.Registry true "表单" @Success 200 {object} handlers.ResponseStruct{Data=models.Registry} "models.Registry" @Router /v1/project/{project_id}/registry [post] @Security JWT
func (*RegistryHandler) PutProjectRegistry ¶
func (h *RegistryHandler) PutProjectRegistry(c *gin.Context)
PutProjectRegistry 修改 Project 的 Registry @Tags Project @Summary 修改Project 的 Registry @Description 修改 Project 的 Registry @Accept json @Produce json @Param project_id path uint true "project_id" @Param registry_id path uint true "registry_id" @Success 200 {object} handlers.ResponseStruct{Data=models.Registry} "models.Registry" @Router /v1/project/{project_id}/registry/{registry_id} [put] @Security JWT
func (*RegistryHandler) PutRegistry ¶
func (h *RegistryHandler) PutRegistry(c *gin.Context)
PutRegistry 修改Registry @Tags Registry @Summary 修改Registry @Description 修改Registry @Accept json @Produce json @Param registry_id path uint true "registry_id" @Param param body models.Registry true "表单" @Success 200 {object} handlers.ResponseStruct{Data=models.Registry} "Registry" @Router /v1/registry/{registry_id} [put] @Security JWT
func (*RegistryHandler) RegistRouter ¶
func (h *RegistryHandler) RegistRouter(rg *gin.RouterGroup)
func (*RegistryHandler) RetrieveProjectRegistry ¶
func (h *RegistryHandler) RetrieveProjectRegistry(c *gin.Context)
RetrieveProjectRegistry 获取Project 的一个 Registry详情 @Tags Project @Summary 获取Project 的一个 Registry详情 @Description 获取Project 的一个 Registry详情 @Accept json @Produce json @Param project_id path uint true "project_id" @Param registry_id path uint true "registry_id" @Success 200 {object} handlers.ResponseStruct{Data=models.Registry} "models.Registry" @Router /v1/project/{project_id}/registry/{registry_id} [get] @Security JWT
func (*RegistryHandler) RetrieveRegistry ¶
func (h *RegistryHandler) RetrieveRegistry(c *gin.Context)
RetrieveRegistry Registry详情 @Tags Registry @Summary Registry详情 @Description get Registry详情 @Accept json @Produce json @Param registry_id path uint true "registry_id" @Success 200 {object} handlers.ResponseStruct{Data=models.Registry} "Registry" @Router /v1/registry/{registry_id} [get] @Security JWT
func (*RegistryHandler) SetDefaultProjectRegistry ¶
func (h *RegistryHandler) SetDefaultProjectRegistry(c *gin.Context)
SetDefaultProjectRegistry 设置 Project 的 默认 Registry @Tags Project @Summary 设置 Project 的 默认 Registry @Description 设置 Project 的 默认 Registry @Accept json @Produce json @Param project_id path uint true "project_id" @Param registry_id path uint true "registry_id" @Param is_default query bool true "是否默认镜像仓库" @Success 200 {object} handlers.ResponseStruct{Data=models.Registry} "models.Registry" @Router /v1/project/{project_id}/registry/{registry_id} [patch] @Security JWT