Documentation ¶
Index ¶
- Constants
- func SyncCharts(ctx context.Context, repo *models.ChartRepo, ...)
- type AppFiles
- type AppFilesResp
- type AppListInfoResp
- type Chart
- type ChartRepoListResp
- type ChartRepoResp
- type Handler
- func (h *Handler) CreateExternalRepo(req *restful.Request, resp *restful.Response)
- func (h *Handler) DeleteExternalRepo(req *restful.Request, resp *restful.Response)
- func (h *Handler) ListApps(req *restful.Request, resp *restful.Response)
- func (h *Handler) ListExternalRepos(req *restful.Request, resp *restful.Response)
- func (h *Handler) Regist(container *restful.Container)
- func (h *Handler) RetrieveApp(req *restful.Request, resp *restful.Response)
- func (h *Handler) RetrieveAppFiles(req *restful.Request, resp *restful.Response)
- func (h *Handler) SyncExternalRepo(req *restful.Request, resp *restful.Response)
Constants ¶
View Source
const ( SyncStatusRunning = "running" SyncStatusError = "error" SyncStatusSuccess = "success" )
View Source
const InternalChartRepoName = "gems"
Variables ¶
This section is empty.
Functions ¶
func SyncCharts ¶
Types ¶
type AppFilesResp ¶
type AppListInfoResp ¶
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 ChartRepoResp ¶
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) ListExternalRepos ¶
func (h *Handler) ListExternalRepos(req *restful.Request, resp *restful.Response)
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)
Click to show internal directories.
Click to hide internal directories.