Documentation ¶
Index ¶
- func BatchCreateUser(c *gin.Context)
- func CheckAndCompleteCreateParam(c *gin.Context) (*userv1.User, *errcode.ErrorInfo)
- func CheckUpdateParam(newUser *userv1.User, originUser *userv1.User) (*userv1.User, *errcode.ErrorInfo)
- func CheckUserValid(c *gin.Context)
- func CreateUser(c *gin.Context)
- func CreateUserImpl(c *gin.Context, user *userv1.User) *errcode.ErrorInfo
- func DownloadTemplate(c *gin.Context)
- func GetKubeConfig(c *gin.Context)
- func GetMembersByNS(c *gin.Context)
- func GetUserByName(c *gin.Context, name string) (*userv1.User, *errcode.ErrorInfo)
- func GitHubLogin(c *gin.Context)
- func ListUsers(c *gin.Context)
- func Login(c *gin.Context)
- func UpdatePwd(c *gin.Context)
- func UpdateUser(c *gin.Context)
- func UpdateUserSpecImpl(c *gin.Context, newUser *userv1.User) *errcode.ErrorInfo
- func UpdateUserStatusImpl(c *gin.Context, newUser *userv1.User) *errcode.ErrorInfo
- type LoginInfo
- type NameValid
- type ResetPwd
- type UserItem
- type UserList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BatchCreateUser ¶
BatchCreateUser import users @Summary import user @Description import and create users from CSV file in batches @Tags user @Accept multipart/form-data @Param userInfoFile formData file true "file" @Produce json @Success 200 {object} response.SuccessInfo @Failure 500 {object} errcode.ErrorInfo @Router /api/v1/kube/user/users [post]
func CheckUpdateParam ¶
func CheckUserValid ¶
CheckUserValid check username @Summary check username @Description check username when update user password @Tags user @Param username path string true "user name" @Success 200 {object} NameValid @Failure 500 {object} errcode.ErrorInfo @Router /api/v1/kube/user/:username [get]
func CreateUser ¶
CreateUser create a user @Summary create user @Description create user manually @Tags user @Accept json @Produce json @Param user body userv1.User true "user information" @Success 200 {object} response.SuccessInfo @Failure 500 {object} errcode.ErrorInfo @Router /api/v1/kube/user [post]
func DownloadTemplate ¶
DownloadTemplate get import template @Summary get import template @Description get user information import template @Tags user @Success 200 {string} string @Router /api/v1/kube/user/template [get]
func GetKubeConfig ¶
GetKubeConfig fetch kubeConfig for specified user @Summary fetch kubeConfigs @Description fetch kubeConfig for specified user @Tags user @Param user query string true "specified user for kubeconfig" @Produce plain @Success 200 string string @Failure 500 {object} errcode.ErrorInfo @Router /api/v1/kube/user/kubeconfigs [get]
func GetMembersByNS ¶
GetMembersByNS show members who in specified namespace
func GetUserByName ¶
func GitHubLogin ¶
func ListUsers ¶
ListUsers list users @Summary list user @Description fuzzy query user by name or displayName @Tags user @Param query query string false "keyword for query" @Param pageSize query int false "page size" @Param pageNum query int false "page num" @Success 200 {object} UserList @Failure 500 {object} errcode.ErrorInfo @Router /api/v1/kube/user [get]
func Login ¶
Login kubeworkz login @Summary login @Description user login by password or ldap @Tags user @Accept json @Produce json @Param loginInfo body LoginInfo true "user login information" @Success 200 {object} response.SuccessInfo @Failure 500 {object} errcode.ErrorInfo @Router /api/v1/kube/login [post]
func UpdatePwd ¶
UpdatePwd update user password @Summary update password @Description update user password @Tags user @Param resetPwd body ResetPwd true "user old and new password" @Success 200 {object} response.SuccessInfo @Failure 500 {object} errcode.ErrorInfo @Router /api/v1/kube/user/pwd [put]
func UpdateUser ¶
UpdateUser update a user info @Summary update user @Description update user information @Tags user @Accept json @Produce json @Param user body userv1.User true "user information" @Param username path string true "user name" @Success 200 {object} response.SuccessInfo @Failure 500 {object} errcode.ErrorInfo @Router /api/v1/kube/user/:username [put]