user

package
v0.0.121 Latest Latest
Warning

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

Go to latest
Published: May 29, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(c *gin.Context)

func DeleteClusterPermission

func DeleteClusterPermission(c *gin.Context)

func DeleteUserGroup

func DeleteUserGroup(c *gin.Context)

func Disable2FA

func Disable2FA(c *gin.Context)

Disable2FA 禁用2FA

func GroupOptionList

func GroupOptionList(c *gin.Context)

func List

func List(c *gin.Context)

func ListClusterNamespaceListByClusterID added in v0.0.106

func ListClusterNamespaceListByClusterID(c *gin.Context)

ListClusterNamespaceListByClusterID 根据集群ID列出该集群下的所有命名空间名称,并以标签-值对形式返回。 如果查询失败,则返回空的命名空间选项列表。

func ListClusterPermissions

func ListClusterPermissions(c *gin.Context)

func ListClusterPermissionsByClusterID

func ListClusterPermissionsByClusterID(c *gin.Context)

ListClusterPermissionsByClusterID 根据指定的集群ID,列出该集群下所有用户的权限角色列表。 集群ID通过base64解码后用于查询,结果按授权类型降序、用户名升序排序,并返回总数和详细列表。 若解码或查询出错,则返回JSON格式的错误信息。

func ListClusterPermissionsByUserName

func ListClusterPermissionsByUserName(c *gin.Context)

ListClusterPermissionsByUserName 列出用户已获得授权的集群

func ListUserGroup

func ListUserGroup(c *gin.Context)

func Save

func Save(c *gin.Context)

func SaveClusterPermission

func SaveClusterPermission(c *gin.Context)

SaveClusterPermission 批量为指定集群添加用户角色权限。 解码集群标识,读取角色和授权类型参数,解析包含用户列表的请求体,校验输入后,依次为每个用户添加权限条目(如不存在则新增),最后返回操作结果。

func SaveUserGroup

func SaveUserGroup(c *gin.Context)

func UpdateNamespaces

func UpdateNamespaces(c *gin.Context)

UpdateNamespaces 根据请求体更新指定集群用户角色的命名空间字段。

func UpdatePsw

func UpdatePsw(c *gin.Context)

func UserOptionList

func UserOptionList(c *gin.Context)

Types

This section is empty.

Jump to

Keyboard shortcuts

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