Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
水淹萌龙
kubesphere
提交
37dca3a7
K
kubesphere
项目概览
水淹萌龙
/
kubesphere
与 Fork 源项目一致
Fork自
KubeSphere / kubesphere
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
kubesphere
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
37dca3a7
编写于
6月 27, 2019
作者:
R
Ray Zhou
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update IM api docs
上级
f15ad7d1
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
14 addition
and
14 deletion
+14
-14
pkg/apis/iam/v1alpha2/register.go
pkg/apis/iam/v1alpha2/register.go
+14
-14
未找到文件。
pkg/apis/iam/v1alpha2/register.go
浏览文件 @
37dca3a7
...
...
@@ -135,20 +135,20 @@ func addWebService(c *restful.Container) error {
Metadata
(
restfulspec
.
KeyOpenAPITags
,
tags
))
ws
.
Route
(
ws
.
DELETE
(
"/users/{user}"
)
.
To
(
iam
.
DeleteUser
)
.
Doc
(
"
Remov
e a specified user."
)
.
Doc
(
"
Delet
e a specified user."
)
.
Param
(
ws
.
PathParameter
(
"user"
,
"username"
))
.
Returns
(
http
.
StatusOK
,
ok
,
errors
.
Error
{})
.
Metadata
(
restfulspec
.
KeyOpenAPITags
,
tags
))
ws
.
Route
(
ws
.
PUT
(
"/users/{user}"
)
.
To
(
iam
.
UpdateUser
)
.
Doc
(
"Update
s
information about the specified user."
)
.
Doc
(
"Update information about the specified user."
)
.
Param
(
ws
.
PathParameter
(
"user"
,
"username"
))
.
Reads
(
UserUpdateRequest
{})
.
Returns
(
http
.
StatusOK
,
ok
,
errors
.
Error
{})
.
Metadata
(
restfulspec
.
KeyOpenAPITags
,
tags
))
ws
.
Route
(
ws
.
GET
(
"/users/{user}/logs"
)
.
To
(
iam
.
UserLoginLogs
)
.
Doc
(
"
This method is used to r
etrieve the
\"
login logs
\"
for the specified user."
)
.
Doc
(
"
R
etrieve the
\"
login logs
\"
for the specified user."
)
.
Param
(
ws
.
PathParameter
(
"user"
,
"username"
))
.
Returns
(
http
.
StatusOK
,
ok
,
LoginLog
{})
.
Metadata
(
restfulspec
.
KeyOpenAPITags
,
tags
))
...
...
@@ -184,20 +184,20 @@ func addWebService(c *restful.Container) error {
Metadata
(
restfulspec
.
KeyOpenAPITags
,
tags
))
ws
.
Route
(
ws
.
PUT
(
"/groups/{group}"
)
.
To
(
iam
.
UpdateGroup
)
.
Doc
(
"Update
s
information about the user group."
)
.
Doc
(
"Update information about the user group."
)
.
Param
(
ws
.
PathParameter
(
"group"
,
"user group path separated by colon."
))
.
Reads
(
models
.
Group
{})
.
Returns
(
http
.
StatusOK
,
ok
,
models
.
Group
{})
.
Metadata
(
restfulspec
.
KeyOpenAPITags
,
tags
))
ws
.
Route
(
ws
.
GET
(
"/users/{user}/roles"
)
.
To
(
iam
.
ListUserRoles
)
.
Doc
(
"
This method is used to r
etrieve all the roles that are assigned to the user."
)
.
Doc
(
"
R
etrieve all the roles that are assigned to the user."
)
.
Param
(
ws
.
PathParameter
(
"user"
,
"username"
))
.
Returns
(
http
.
StatusOK
,
ok
,
iam
.
RoleList
{})
.
Metadata
(
restfulspec
.
KeyOpenAPITags
,
tags
))
ws
.
Route
(
ws
.
GET
(
"/namespaces/{namespace}/roles"
)
.
To
(
iam
.
ListRoles
)
.
Doc
(
"
This method is used to r
etrieve the roles that are assigned to the user in the specified namespace."
)
.
Doc
(
"
R
etrieve the roles that are assigned to the user in the specified namespace."
)
.
Param
(
ws
.
PathParameter
(
"namespace"
,
"kubernetes namespace"
))
.
Returns
(
http
.
StatusOK
,
ok
,
RoleList
{})
.
Metadata
(
restfulspec
.
KeyOpenAPITags
,
tags
))
...
...
@@ -208,14 +208,14 @@ func addWebService(c *restful.Container) error {
Metadata
(
restfulspec
.
KeyOpenAPITags
,
tags
))
ws
.
Route
(
ws
.
GET
(
"/namespaces/{namespace}/roles/{role}/users"
)
.
To
(
iam
.
ListRoleUsers
)
.
Doc
(
"
This method is used to r
etrieve the users that are bound to the role in the specified namespace."
)
.
Doc
(
"
R
etrieve the users that are bound to the role in the specified namespace."
)
.
Param
(
ws
.
PathParameter
(
"namespace"
,
"kubernetes namespace"
))
.
Param
(
ws
.
PathParameter
(
"role"
,
"role name"
))
.
Returns
(
http
.
StatusOK
,
ok
,
[]
models
.
User
{})
.
Metadata
(
restfulspec
.
KeyOpenAPITags
,
tags
))
ws
.
Route
(
ws
.
GET
(
"/namespaces/{namespace}/users"
)
.
To
(
iam
.
ListNamespaceUsers
)
.
Doc
(
"List all users in the specified namespace"
)
.
Doc
(
"List all users in the specified namespace
.
"
)
.
Param
(
ws
.
PathParameter
(
"namespace"
,
"kubernetes namespace"
))
.
Returns
(
http
.
StatusOK
,
ok
,
[]
models
.
User
{})
.
Metadata
(
restfulspec
.
KeyOpenAPITags
,
tags
))
...
...
@@ -233,15 +233,15 @@ func addWebService(c *restful.Container) error {
Metadata
(
restfulspec
.
KeyOpenAPITags
,
tags
))
ws
.
Route
(
ws
.
GET
(
"/namespaces/{namespace}/roles/{role}/rules"
)
.
To
(
iam
.
ListRoleRules
)
.
Doc
(
"List all policy rules of the specified role."
)
.
Doc
(
"List all policy rules of the specified role
in the given namespace
."
)
.
Param
(
ws
.
PathParameter
(
"namespace"
,
"kubernetes namespace"
))
.
Param
(
ws
.
PathParameter
(
"role"
,
"role name"
))
.
Returns
(
http
.
StatusOK
,
ok
,
[]
models
.
SimpleRule
{})
.
Metadata
(
restfulspec
.
KeyOpenAPITags
,
tags
))
ws
.
Route
(
ws
.
GET
(
"/devops/{devops}/roles/{role}/rules"
)
.
To
(
iam
.
ListDevopsRoleRules
)
.
Doc
(
"List all policy rules of the specified role."
)
.
Param
(
ws
.
PathParameter
(
"devops"
,
"devops project
id
"
))
.
Doc
(
"List all policy rules of the specified role
in the given devops project
."
)
.
Param
(
ws
.
PathParameter
(
"devops"
,
"devops project
ID
"
))
.
Param
(
ws
.
PathParameter
(
"role"
,
"devops role name"
))
.
Returns
(
http
.
StatusOK
,
ok
,
[]
models
.
SimpleRule
{})
.
Metadata
(
restfulspec
.
KeyOpenAPITags
,
tags
))
...
...
@@ -283,21 +283,21 @@ func addWebService(c *restful.Container) error {
Metadata
(
restfulspec
.
KeyOpenAPITags
,
tags
))
ws
.
Route
(
ws
.
POST
(
"/workspaces/{workspace}/members"
)
.
To
(
iam
.
InviteUser
)
.
Doc
(
"Invite members to
a
workspace."
)
.
Doc
(
"Invite members to
the
workspace."
)
.
Param
(
ws
.
PathParameter
(
"workspace"
,
"workspace name"
))
.
Reads
(
InviteUserRequest
{})
.
Returns
(
http
.
StatusOK
,
ok
,
errors
.
Error
{})
.
Metadata
(
restfulspec
.
KeyOpenAPITags
,
tags
))
ws
.
Route
(
ws
.
DELETE
(
"/workspaces/{workspace}/members/{member}"
)
.
To
(
iam
.
RemoveUser
)
.
Doc
(
"Remove members from workspace."
)
.
Doc
(
"Remove members from
the
workspace."
)
.
Param
(
ws
.
PathParameter
(
"workspace"
,
"workspace name"
))
.
Param
(
ws
.
PathParameter
(
"member"
,
"username"
))
.
Returns
(
http
.
StatusOK
,
ok
,
errors
.
Error
{})
.
Metadata
(
restfulspec
.
KeyOpenAPITags
,
tags
))
ws
.
Route
(
ws
.
GET
(
"/workspaces/{workspace}/members/{member}"
)
.
To
(
iam
.
DescribeWorkspaceUser
)
.
Doc
(
"Describe the specified user."
)
.
Doc
(
"Describe the specified user
in the given workspace
."
)
.
Param
(
ws
.
PathParameter
(
"workspace"
,
"workspace name"
))
.
Param
(
ws
.
PathParameter
(
"member"
,
"username"
))
.
Returns
(
http
.
StatusOK
,
ok
,
DescribeWorkspaceUserResponse
{})
.
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录