Documentation
¶
Index ¶
- func RepoOptionList(c *response.Context)
- type ChartController
- type ReleaseController
- func (hr *ReleaseController) BatchUninstallRelease(c *response.Context)
- func (hr *ReleaseController) GetReleaseInstallLog(c *response.Context)
- func (hr *ReleaseController) GetReleaseNote(c *response.Context)
- func (hr *ReleaseController) GetReleaseValues(c *response.Context)
- func (hr *ReleaseController) InstallRelease(c *response.Context)
- func (hr *ReleaseController) ListRelease(c *response.Context)
- func (hr *ReleaseController) ListReleaseHistory(c *response.Context)
- func (hr *ReleaseController) UninstallRelease(c *response.Context)
- func (hr *ReleaseController) UpgradeRelease(c *response.Context)
- type RepoController
- type SettingController
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RepoOptionList ¶
@Summary Helm仓库选项列表 @Description 获取所有Helm仓库名称,用于下拉选项 @Security BearerAuth @Success 200 {object} string @Router /admin/plugins/helm/repo/option_list [get]
Types ¶
type ChartController ¶
type ChartController struct {
}
func (*ChartController) ChartVersionOptionList ¶
func (hc *ChartController) ChartVersionOptionList(c *response.Context)
ChartVersionOptionList 获取Chart的版本列表 @Summary Chart版本列表 @Description 获取指定Helm仓库和Chart的所有版本列表 @Security BearerAuth @Param repo path string true "仓库名称" @Param chart path string true "Chart名称" @Success 200 {object} string @Router /mgm/plugins/helm/repo/{repo}/chart/{chart}/versions [get]
func (*ChartController) GetChartValue ¶
func (hc *ChartController) GetChartValue(c *response.Context)
GetChartValue 获取Chart的值 @Summary 获取Chart的默认values.yaml @Description 获取指定Helm仓库、Chart及版本的默认values.yaml内容 @Security BearerAuth @Param repo path string true "仓库名称" @Param chart path string true "Chart名称" @Param version path string true "Chart版本" @Success 200 {object} string "yaml内容" @Router /mgm/plugins/helm/repo/{repo}/chart/{chart}/version/{version}/values [get]
func (*ChartController) ListChart ¶
func (hc *ChartController) ListChart(c *response.Context)
@Summary Helm Chart列表 @Description 获取所有Helm Chart信息 @Security BearerAuth @Success 200 {object} string @Router /mgm/plugins/helm/chart/list [get]
type ReleaseController ¶
type ReleaseController struct {
}
func (*ReleaseController) BatchUninstallRelease ¶
func (hr *ReleaseController) BatchUninstallRelease(c *response.Context)
@Summary 批量卸载Helm Release @Security BearerAuth @Param cluster query string true "集群名称" @Param body body object true "批量卸载参数" @Success 200 {object} string @Router /k8s/cluster/{cluster}/plugins/helm/release/batch/uninstall [post]
func (*ReleaseController) GetReleaseInstallLog ¶
func (hr *ReleaseController) GetReleaseInstallLog(c *response.Context)
@Summary 获取Release安装Log @Security BearerAuth @Param cluster query string true "集群名称" @Param ns path string true "命名空间" @Param name path string true "Release名称" @Param revision path string true "版本号" @Success 200 {object} string @Router /k8s/cluster/{cluster}/plugins/helm/release/ns/{ns}/name/{name}/revision/{revision}/install_log [get]
func (*ReleaseController) GetReleaseNote ¶
func (hr *ReleaseController) GetReleaseNote(c *response.Context)
@Summary 获取ReleaseNote @Security BearerAuth @Param cluster query string true "集群名称" @Param ns path string true "命名空间" @Param name path string true "Release名称" @Param revision path string true "版本号" @Success 200 {object} string @Router /k8s/cluster/{cluster}/plugins/helm/release/ns/{ns}/name/{name}/revision/{revision}/notes [get]
func (*ReleaseController) GetReleaseValues ¶
func (hr *ReleaseController) GetReleaseValues(c *response.Context)
@Summary 获取安装yaml @Security BearerAuth @Param cluster query string true "集群名称" @Param ns path string true "命名空间" @Param name path string true "Release名称" @Param revision path string true "版本号" @Success 200 {object} string @Router /k8s/cluster/{cluster}/plugins/helm/release/ns/{ns}/name/{name}/revision/{revision}/values [get]
func (*ReleaseController) InstallRelease ¶
func (hr *ReleaseController) InstallRelease(c *response.Context)
@Summary 安装Helm Release @Security BearerAuth @Param cluster query string true "集群名称" @Param release path string true "Release名称" @Param repo path string true "仓库名称" @Param chart path string true "Chart名称" @Param version path string true "版本号" @Param body body object true "安装参数" @Success 200 {object} string @Router /k8s/cluster/{cluster}/plugins/helm/release/{release}/repo/{repo}/chart/{chart}/version/{version}/install [post]
func (*ReleaseController) ListRelease ¶
func (hr *ReleaseController) ListRelease(c *response.Context)
@Summary 获取Release列表 @Security BearerAuth @Param cluster query string true "集群名称" @Success 200 {object} string @Router /k8s/cluster/{cluster}/plugins/helm/release/list [get]
func (*ReleaseController) ListReleaseHistory ¶
func (hr *ReleaseController) ListReleaseHistory(c *response.Context)
@Summary 获取Release的历史版本 @Security BearerAuth @Param cluster query string true "集群名称" @Param ns path string true "命名空间" @Param name path string true "Release名称" @Success 200 {object} string @Router /k8s/cluster/{cluster}/plugins/helm/release/ns/{ns}/name/{name}/history/list [get]
func (*ReleaseController) UninstallRelease ¶
func (hr *ReleaseController) UninstallRelease(c *response.Context)
@Summary 卸载Helm Release @Security BearerAuth @Param cluster query string true "集群名称" @Param ns path string true "命名空间" @Param name path string true "Release名称" @Success 200 {object} string @Router /k8s/cluster/{cluster}/plugins/helm/release/ns/{ns}/name/{name}/uninstall [post]
func (*ReleaseController) UpgradeRelease ¶
func (hr *ReleaseController) UpgradeRelease(c *response.Context)
@Summary 升级Helm Release @Security BearerAuth @Param cluster query string true "集群名称" @Param body body object true "升级参数" @Success 200 {object} string @Router /k8s/cluster/{cluster}/plugins/helm/release/upgrade [post]
type RepoController ¶
type RepoController struct {
}
func (*RepoController) Delete ¶
func (r *RepoController) Delete(c *response.Context)
@Summary 删除Helm仓库 @Description 删除一个或多个Helm仓库 @Security BearerAuth @Param ids path string true "要删除的仓库ID,多个用逗号分隔" @Success 200 {object} string "操作成功" @Router /admin/plugins/helm/repo/delete/{ids} [post]
func (*RepoController) List ¶
func (r *RepoController) List(c *response.Context)
@Summary Helm仓库列表 @Description 获取所有Helm仓库信息 @Security BearerAuth @Success 200 {object} string @Router /admin/plugins/helm/repo/list [get]
func (*RepoController) Save ¶
func (r *RepoController) Save(c *response.Context)
Save 添加或更新Helm仓库 @Summary 添加或更新Helm仓库 @Description 添加或更新一个Helm仓库信息 @Security BearerAuth @Param repo body models.HelmRepository true "Helm仓库信息" @Success 200 {object} string "操作成功" @Router /admin/plugins/helm/repo/save [post]
func (*RepoController) UpdateReposIndex ¶
func (r *RepoController) UpdateReposIndex(c *response.Context)
@Summary 更新Helm仓库索引 @Description 更新指定Helm仓库的索引信息 @Security BearerAuth @Param ids body string true "要更新索引的仓库ID,多个用逗号分隔" @Success 200 {object} string "操作成功" @Router /admin/plugins/helm/repo/update_index [post]
type SettingController ¶
type SettingController struct{}
func (*SettingController) GetSetting ¶
func (s *SettingController) GetSetting(c *response.Context)
func (*SettingController) UpdateSetting ¶
func (s *SettingController) UpdateSetting(c *response.Context)