appstore

package
v1.24.5 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const InternalChartRepoName = "kubegems"

Variables

This section is empty.

Functions

func SyncCharts

func SyncCharts(ctx context.Context, repo *models.ChartRepo, localChartMuseum helm.RepositoryConfig, db *gorm.DB)

Types

type AppFilesResponse

type AppFilesResponse struct {
	Files   map[string]string `json:"files" description:"files"`
	App     string            `json:"app" description:"app"`
	Version string            `json:"version" description:"version"`
}

type AppstoreHandler

type AppstoreHandler struct {
	base.BaseHandler
	AppStoreOpt       *helm.Options
	ChartmuseumClient *helm.ChartmuseumClient
}

func (*AppstoreHandler) AppDetail

func (h *AppstoreHandler) AppDetail(c *gin.Context)

@Tags Appstore @Summary APP详情 @Description 查看应用Chart详情 @Accept json @Produce json @Param name path string true "name" @Param size query string false "reponame" @Success 200 {object} handlers.ResponseStruct{Data=[]Chart} "AppDetail" @Router /v1/appstore/app/{name} [get] @Security JWT

func (*AppstoreHandler) AppFiles

func (h *AppstoreHandler) AppFiles(c *gin.Context)

@Tags Appstore @Summary APP Charts文件编码 @Description 查看App所有Charts文件编码 @Accept json @Produce json @Param size query string false "reponame" @Param name query string true "name" @Param version query string true "version" @Success 200 {object} handlers.ResponseStruct{Data=AppFilesResponse} "AppFiles" @Router /v1/appstore/files [get] @Security JWT

func (*AppstoreHandler) DeleteExternalRepo

func (h *AppstoreHandler) DeleteExternalRepo(c *gin.Context)

@Tags Appstore @Summary APP 删除外部chart仓库 @Description 删除外部chart仓库 @Accept json @Produce json @Param name query string true "repo name" @Success 200 {object} handlers.ResponseStruct{Data=models.ChartRepo} "repo" @Router /v1/appstore/repo/{name} [delete] @Security JWT

func (*AppstoreHandler) ListApps

func (h *AppstoreHandler) ListApps(c *gin.Context)

@Tags Appstore @Summary 应用商店-查询所有APP @Description 应用商店 @Accept json @Produce json @Param page query int false "page" @Param size query int false "size" @Param reponame query string false "reponame" @Success 200 {object} handlers.ResponseStruct{Data=handlers.PageData{List=[]Chart}} "Apps" @Router /v1/appstore/app [get] @Security JWT

func (*AppstoreHandler) ListExternalRepo

func (h *AppstoreHandler) ListExternalRepo(c *gin.Context)

@Tags Appstore @Summary 列出所有的外部应用的charts仓库 @Description 列出所有的外部应用的charts仓库 @Accept json @Produce json @Success 200 {object} handlers.ResponseStruct{Data=handlers.PageData{List=[]models.ChartRepo}} "repos" @Router /v1/appstore/repo [get] @Security JWT

func (*AppstoreHandler) PutExternalRepo

func (h *AppstoreHandler) PutExternalRepo(c *gin.Context)

@Tags Appstore @Summary 创建应用商店外部charts仓库 @Description 创建应用商店外部charts仓库 @Accept json @Produce json @Success 200 {object} handlers.ResponseStruct{Data=[]models.ChartRepo} "repo" @Router /v1/appstore/repo [post] @Security JWT

func (*AppstoreHandler) RegistRouter

func (h *AppstoreHandler) RegistRouter(rg *gin.RouterGroup)

func (*AppstoreHandler) SyncExternalRepo

func (h *AppstoreHandler) SyncExternalRepo(c *gin.Context)

@Tags Appstore @Summary APP 同步外部chart仓库 @Description 手动同步外部chart仓库至本地chart museum @Accept json @Produce json @Param name query string true "repo name" @Success 200 {object} handlers.ResponseStruct{Data=models.ChartRepo} "repo" @Router /v1/appstore/repo/{name}/actions/sync [post] @Security JWT

func (*AppstoreHandler) UploadCharts added in v1.24.5

func (h *AppstoreHandler) UploadCharts(c *gin.Context)

type Chart

type Chart struct {
	Name        string              `json:"name"`
	Version     string              `json:"version"`
	Description string              `json:"description"`
	ApiVersion  string              `json:"apiVersion"`
	AppVersion  string              `json:"appVersion"`
	Created     time.Time           `json:"created"`
	Digest      string              `json:"digest"`
	Urls        []string            `json:"urls"`
	Keywords    []string            `json:"keywords"`
	Maintainers []*chart.Maintainer `json:"maintainers"`
	Tags        string              `json:"tags"`
	RepoURL     string              `json:"repoURL"` // 仓库地址
}

func (Chart) GetCreationTimestamp

func (c Chart) GetCreationTimestamp() metav1.Time

func (Chart) GetName

func (c Chart) GetName() string

Jump to

Keyboard shortcuts

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