appstorehandler

package
v1.21.6-rc.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SyncStatusRunning = "running"
	SyncStatusError   = "error"
	SyncStatusSuccess = "success"
)
View Source
const InternalChartRepoName = "gems"

Variables

This section is empty.

Functions

func SyncCharts

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

Types

type AppFiles

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

type AppFilesResp

type AppFilesResp struct {
	handlers.RespBase
	Data AppFiles `json:"data"`
}

type AppListInfoResp

type AppListInfoResp struct {
	handlers.RespBase
	Data []Chart `json:"data"`
}

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"`
}

type ChartRepoListResp

type ChartRepoListResp struct {
	handlers.ListBase
	Data []models.ChartRepo `json:"list"`
}

type ChartRepoResp

type ChartRepoResp struct {
	handlers.RespBase
	Data []models.ChartRepo `json:"data"`
}

type Handler

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

func MustNewHandler

func MustNewHandler(base base.BaseHandler, options *helm.Options) *Handler

func (*Handler) CreateExternalRepo

func (h *Handler) CreateExternalRepo(req *restful.Request, resp *restful.Response)

func (*Handler) DeleteExternalRepo

func (h *Handler) DeleteExternalRepo(req *restful.Request, resp *restful.Response)

func (*Handler) ListApps

func (h *Handler) ListApps(req *restful.Request, resp *restful.Response)

func (*Handler) ListExternalRepos

func (h *Handler) ListExternalRepos(req *restful.Request, resp *restful.Response)

func (*Handler) Regist

func (h *Handler) Regist(container *restful.Container)

func (*Handler) RetrieveApp

func (h *Handler) RetrieveApp(req *restful.Request, resp *restful.Response)

func (*Handler) RetrieveAppFiles

func (h *Handler) RetrieveAppFiles(req *restful.Request, resp *restful.Response)

func (*Handler) SyncExternalRepo

func (h *Handler) SyncExternalRepo(req *restful.Request, resp *restful.Response)

Jump to

Keyboard shortcuts

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