Documentation ¶
Index ¶
- func Install(parent iris.Party)
- type Handler
- func (h *Handler) CreateRepo() iris.Handler
- func (h *Handler) DeleteRepo() iris.Handler
- func (h *Handler) GetRepo() iris.Handler
- func (h *Handler) ListImages() iris.Handler
- func (h *Handler) ListImagesByRepo() iris.Handler
- func (h *Handler) ListInternalRepos() iris.Handler
- func (h *Handler) ListRepoForCluster() iris.Handler
- func (h *Handler) SearchRepos() iris.Handler
- func (h *Handler) UpdateRepo() iris.Handler
- type RepoConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler() *Handler
func (*Handler) CreateRepo ¶
func (h *Handler) CreateRepo() iris.Handler
Create Repo @Tags repos @Summary Create repo @Description Create repo @Accept json @Produce json @Param request body RepoConfig true "request" @Success 200 {object} RepoConfig @Security ApiKeyAuth @Router /imagerepos [post]
func (*Handler) DeleteRepo ¶
func (h *Handler) DeleteRepo() iris.Handler
Delete Repo @Tags repos @Summary Delete repo by name @Description Delete repo by name @Accept json @Produce json @Param name path string true "镜像仓库名称" @Success 200 {object} v1ImageRepo.ImageRepo @Security ApiKeyAuth @Router /imagerepos/{name} [delete]
func (*Handler) GetRepo ¶
func (h *Handler) GetRepo() iris.Handler
Get Repo @Tags repos @Summary Get repo by name @Description Get repo by name @Accept json @Produce json @Param name path string true "镜像仓库名称" @Success 200 {object} v1ImageRepo.ImageRepo @Security ApiKeyAuth @Router /imagerepos/{name} [get]
func (*Handler) ListImages ¶
func (h *Handler) ListImages() iris.Handler
List Images for Cluster @Tags repos @Summary List images for cluster @Description Get images for cluster @Accept json @Produce json @Param cluster path string true "集群名称" @Param repo path string true "镜像仓库名称" @Success 200 {object} []string @Security ApiKeyAuth @Router /imagerepos/{cluster}/{repo} [put]
func (*Handler) ListImagesByRepo ¶ added in v1.4.0
func (h *Handler) ListImagesByRepo() iris.Handler
List Images By Repo @Tags repos @Summary List images by repo @Description Get images by repo @Accept json @Produce json @Param repo path string true "镜像仓库名称" @Success 200 {object} v1ImageRepo.RepoResponse @Security ApiKeyAuth @Router /imagerepos/{repo}/search [get]
func (*Handler) ListInternalRepos ¶
func (h *Handler) ListInternalRepos() iris.Handler
List Internal Repos @Tags repos @Summary List Internal repos @Description List Internal repos @Accept json @Produce json @Param request body RepoConfig true "request" @Success 200 {object} []string @Security ApiKeyAuth @Router /imagerepos/repositories/search [post]
func (*Handler) ListRepoForCluster ¶
func (h *Handler) ListRepoForCluster() iris.Handler
List Repo for Cluster @Tags repos @Summary List repo for cluster @Description Get repo for cluster @Accept json @Produce json @Param cluster path string true "集群名称" @Success 200 {object} []v1ImageRepo.ImageRepo @Security ApiKeyAuth @Router /imagerepos/cluster/{cluster} [get]
func (*Handler) SearchRepos ¶
func (h *Handler) SearchRepos() iris.Handler
func (*Handler) UpdateRepo ¶
func (h *Handler) UpdateRepo() iris.Handler
Update Repo @Tags repos @Summary Update repo by name @Description Update repo by name @Accept json @Produce json @Param request body RepoConfig true "request" @Param name path string true "镜像仓库名称" @Success 200 {object} v1ImageRepo.ImageRepo @Security ApiKeyAuth @Router /imagerepos/{name} [put]