Documentation
¶
Index ¶
- func RegisterParamRoutes(r chi.Router)
- type Controller
- func (pc *Controller) ClusterOptionList(c *response.Context)
- func (pc *Controller) ClusterTableList(c *response.Context)
- func (pc *Controller) Conditions(c *response.Context)
- func (pc *Controller) Config(c *response.Context)
- func (pc *Controller) HelmRepoOptionList(c *response.Context)
- func (pc *Controller) UserRole(c *response.Context)
- func (pc *Controller) Version(c *response.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterParamRoutes ¶ added in v0.0.145
Types ¶
type Controller ¶ added in v0.0.145
type Controller struct {
}
func (*Controller) ClusterOptionList ¶ added in v0.0.145
func (pc *Controller) ClusterOptionList(c *response.Context)
@Summary 集群选项列表 @Description 获取当前登录用户可选的集群列表(下拉选项) @Security BearerAuth @Success 200 {object} string @Router /params/cluster/option_list [get]
func (*Controller) ClusterTableList ¶ added in v0.0.145
func (pc *Controller) ClusterTableList(c *response.Context)
@Summary 集群表格列表 @Description 获取当前登录用户可见的集群详细信息(表格) @Security BearerAuth @Success 200 {object} string @Router /params/cluster/all [get]
func (*Controller) Conditions ¶ added in v0.0.145
func (pc *Controller) Conditions(c *response.Context)
@Summary 翻转指标列表 @Description 获取所有启用的翻转显示指标名称 @Security BearerAuth @Success 200 {object} string @Router /params/condition/reverse/list [get]
func (*Controller) Config ¶ added in v0.0.145
func (pc *Controller) Config(c *response.Context)
Config 获取某一个参数配置 @Summary 获取配置项 @Description 获取指定key的系统配置项 @Security BearerAuth @Param key path string true "配置项key" @Success 200 {object} string @Router /params/config/{key} [get]
func (*Controller) HelmRepoOptionList ¶ added in v0.0.145
func (pc *Controller) HelmRepoOptionList(c *response.Context)
@Summary Helm仓库选项列表 @Description 获取所有Helm仓库名称,用于下拉选项 @Security BearerAuth @Success 200 {object} string @Router /params/helm/repo/option_list [get]
func (*Controller) UserRole ¶ added in v0.0.145
func (pc *Controller) UserRole(c *response.Context)
UserRole 获取当前用户的Role信息 @Summary 获取用户角色信息 @Description 获取当前登录用户的角色及默认集群 @Security BearerAuth @Success 200 {object} string @Router /params/user/role [get]
func (*Controller) Version ¶ added in v0.0.145
func (pc *Controller) Version(c *response.Context)
Version 获取版本号 @Summary 获取版本信息 @Description 获取当前软件的版本及构建信息 @Security BearerAuth @Success 200 {object} string @Router /params/version [get]