Documentation ¶
Index ¶
Constants ¶
View Source
const ( AllCluster = "all" AllNamespace = "all" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateRBACMessage ¶
type CreateRBACMessage struct { Success bool `json:"success,omitempty"` // 是否创建成功 ClusterID string `json:"clusterID"` Message string `json:"message,omitempty"` // 创建结果的信息 }
CreateRBACMessage - 创建RBAC权限接口的主要信息
type CreateRBACResponse ¶
type CreateRBACResponse struct { RBACResponse Data []*CreateRBACMessage `json:"data"` }
CreateRBACResponse - 创建 RBAC 权限接口的返回
type GetRBACMessage ¶
type GetRBACResponse ¶
type GetRBACResponse struct { RequestID string `json:"requestID,omitempty"` // request id Data []*GetRBACMessage `json:"data"` }
GetRBACResponse - 获取RBAC权限列表的返回
type RBACRequest ¶
type RBACRequest struct { ClusterID string `json:"clusterID"` UserID string `json:"userID"` Namespace string `json:"namespace"` Role RBACRole `json:"role"` }
RBACRequest - 创建 RBAC 请求内容
type RBACResponse ¶
type RBACResponse struct {
RequestID string `json:"requestID,omitempty"` // request id
}
RBACResponse - 应答,仅包含 requestID
Click to show internal directories.
Click to hide internal directories.