imagerepo

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Install

func Install(parent iris.Party)

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]

type RepoConfig

type RepoConfig struct {
	V1ImageRepo.ImageRepo
	Page          int    `json:"page" validate:"required"`
	Limit         int    `json:"limit" validate:"required"`
	Search        string `json:"search"`
	ContinueToken string `json:"continueToken"`
}

Jump to

Keyboard shortcuts

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