Documentation ¶
Index ¶
- Variables
- func ErrInternalError() errors.Error
- func ErrInternalStore() errors.Error
- func ErrInvalidArgument() errors.Error
- func ErrMustHaveOneBinding() errors.Error
- func ErrNotAllowedEdit() errors.Error
- func ErrPermissionNotFound() errors.Error
- func ErrRoleHasBeenExsist() errors.Error
- func ErrRoleNotFound() errors.Error
- func ErrUnknown() errors.Error
- func ErrUserNotFound() errors.Error
- func RegisterRBACHTTPServer(container *go_restful.Container, srv RBACHTTPServer)
- func RegisterRBACServer(s grpc.ServiceRegistrar, srv RBACServer)
- type CheckRolePermissionRequest
- func (*CheckRolePermissionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CheckRolePermissionRequest) GetPath() string
- func (*CheckRolePermissionRequest) ProtoMessage()
- func (x *CheckRolePermissionRequest) ProtoReflect() protoreflect.Message
- func (x *CheckRolePermissionRequest) Reset()
- func (x *CheckRolePermissionRequest) String() string
- type CheckRolePermissionResponse
- func (*CheckRolePermissionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CheckRolePermissionResponse) GetAllowed() bool
- func (*CheckRolePermissionResponse) ProtoMessage()
- func (x *CheckRolePermissionResponse) ProtoReflect() protoreflect.Message
- func (x *CheckRolePermissionResponse) Reset()
- func (x *CheckRolePermissionResponse) String() string
- type CreateRoleBindingRequest
- func (*CreateRoleBindingRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateRoleBindingRequest) GetRoleId() string
- func (x *CreateRoleBindingRequest) GetUsers() *CreateRoleBindingRequest_UserList
- func (*CreateRoleBindingRequest) ProtoMessage()
- func (x *CreateRoleBindingRequest) ProtoReflect() protoreflect.Message
- func (x *CreateRoleBindingRequest) Reset()
- func (x *CreateRoleBindingRequest) String() string
- type CreateRoleBindingRequest_UserList
- func (*CreateRoleBindingRequest_UserList) Descriptor() ([]byte, []int)deprecated
- func (x *CreateRoleBindingRequest_UserList) GetId() []string
- func (*CreateRoleBindingRequest_UserList) ProtoMessage()
- func (x *CreateRoleBindingRequest_UserList) ProtoReflect() protoreflect.Message
- func (x *CreateRoleBindingRequest_UserList) Reset()
- func (x *CreateRoleBindingRequest_UserList) String() string
- type CreateRoleRequest
- type CreateRoleResponse
- type DeleteRoleBindingRequest
- func (*DeleteRoleBindingRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteRoleBindingRequest) GetRoleId() string
- func (x *DeleteRoleBindingRequest) GetUserId() string
- func (*DeleteRoleBindingRequest) ProtoMessage()
- func (x *DeleteRoleBindingRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteRoleBindingRequest) Reset()
- func (x *DeleteRoleBindingRequest) String() string
- type DeleteRoleRequest
- type DeleteRoleResponse
- type Error
- type GetRoleRequest
- type GetRoleResponse
- type ListPermissionRequest
- func (*ListPermissionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListPermissionRequest) GetKeyWords() string
- func (x *ListPermissionRequest) GetRole() string
- func (*ListPermissionRequest) ProtoMessage()
- func (x *ListPermissionRequest) ProtoReflect() protoreflect.Message
- func (x *ListPermissionRequest) Reset()
- func (x *ListPermissionRequest) String() string
- type ListPermissionResponse
- func (*ListPermissionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListPermissionResponse) GetPermissions() []*Permission
- func (*ListPermissionResponse) ProtoMessage()
- func (x *ListPermissionResponse) ProtoReflect() protoreflect.Message
- func (x *ListPermissionResponse) Reset()
- func (x *ListPermissionResponse) String() string
- type ListRolesRequest
- func (*ListRolesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListRolesRequest) GetIsDescending() bool
- func (x *ListRolesRequest) GetKeyWords() string
- func (x *ListRolesRequest) GetOrderBy() string
- func (x *ListRolesRequest) GetPageNum() int32
- func (x *ListRolesRequest) GetPageSize() int32
- func (x *ListRolesRequest) GetTenantId() string
- func (*ListRolesRequest) ProtoMessage()
- func (x *ListRolesRequest) ProtoReflect() protoreflect.Message
- func (x *ListRolesRequest) Reset()
- func (x *ListRolesRequest) String() string
- type ListRolesResponse
- func (*ListRolesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListRolesResponse) GetPageNum() int32
- func (x *ListRolesResponse) GetPageSize() int32
- func (x *ListRolesResponse) GetRoles() []*Role
- func (x *ListRolesResponse) GetTenantId() string
- func (x *ListRolesResponse) GetTotal() int32
- func (*ListRolesResponse) ProtoMessage()
- func (x *ListRolesResponse) ProtoReflect() protoreflect.Message
- func (x *ListRolesResponse) Reset()
- func (x *ListRolesResponse) String() string
- type Permission
- func (*Permission) Descriptor() ([]byte, []int)deprecated
- func (x *Permission) GetPath() string
- func (x *Permission) GetPermission() *v1.Permission
- func (*Permission) ProtoMessage()
- func (x *Permission) ProtoReflect() protoreflect.Message
- func (x *Permission) Reset()
- func (x *Permission) String() string
- type RBACClient
- type RBACHTTPHandler
- func (h *RBACHTTPHandler) CheckRolePermission(req *go_restful.Request, resp *go_restful.Response)
- func (h *RBACHTTPHandler) CreateRoleBinding(req *go_restful.Request, resp *go_restful.Response)
- func (h *RBACHTTPHandler) CreateRoles(req *go_restful.Request, resp *go_restful.Response)
- func (h *RBACHTTPHandler) DeleteRole(req *go_restful.Request, resp *go_restful.Response)
- func (h *RBACHTTPHandler) DeleteRoleBinding(req *go_restful.Request, resp *go_restful.Response)
- func (h *RBACHTTPHandler) GetRole(req *go_restful.Request, resp *go_restful.Response)
- func (h *RBACHTTPHandler) ListPermissions(req *go_restful.Request, resp *go_restful.Response)
- func (h *RBACHTTPHandler) ListRole(req *go_restful.Request, resp *go_restful.Response)
- func (h *RBACHTTPHandler) TMAddPolicy(req *go_restful.Request, resp *go_restful.Response)
- func (h *RBACHTTPHandler) TMAddRoleBinding(req *go_restful.Request, resp *go_restful.Response)
- func (h *RBACHTTPHandler) TMDeletePolicy(req *go_restful.Request, resp *go_restful.Response)
- func (h *RBACHTTPHandler) TMDeleteRoleBinding(req *go_restful.Request, resp *go_restful.Response)
- func (h *RBACHTTPHandler) UpdateRole(req *go_restful.Request, resp *go_restful.Response)
- func (h *RBACHTTPHandler) UpdateUserRoleBinding(req *go_restful.Request, resp *go_restful.Response)
- type RBACHTTPServer
- type RBACServer
- type Role
- func (*Role) Descriptor() ([]byte, []int)deprecated
- func (x *Role) GetBindNum() int32
- func (x *Role) GetDesc() string
- func (x *Role) GetId() string
- func (x *Role) GetName() string
- func (x *Role) GetPermissionList() []*Permission
- func (x *Role) GetUneditable() bool
- func (x *Role) GetUpsertTimestamp() uint64
- func (*Role) ProtoMessage()
- func (x *Role) ProtoReflect() protoreflect.Message
- func (x *Role) Reset()
- func (x *Role) String() string
- type TMPolicyRequest
- func (*TMPolicyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TMPolicyRequest) GetPermission() string
- func (x *TMPolicyRequest) GetRole() string
- func (x *TMPolicyRequest) GetTenant() string
- func (*TMPolicyRequest) ProtoMessage()
- func (x *TMPolicyRequest) ProtoReflect() protoreflect.Message
- func (x *TMPolicyRequest) Reset()
- func (x *TMPolicyRequest) String() string
- type TMRoleBindingRequest
- func (*TMRoleBindingRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TMRoleBindingRequest) GetRole() string
- func (x *TMRoleBindingRequest) GetTenant() string
- func (x *TMRoleBindingRequest) GetUser() string
- func (*TMRoleBindingRequest) ProtoMessage()
- func (x *TMRoleBindingRequest) ProtoReflect() protoreflect.Message
- func (x *TMRoleBindingRequest) Reset()
- func (x *TMRoleBindingRequest) String() string
- type UnimplementedRBACServer
- func (UnimplementedRBACServer) CheckRolePermission(context.Context, *CheckRolePermissionRequest) (*CheckRolePermissionResponse, error)
- func (UnimplementedRBACServer) CreateRoleBinding(context.Context, *CreateRoleBindingRequest) (*emptypb.Empty, error)
- func (UnimplementedRBACServer) CreateRoles(context.Context, *CreateRoleRequest) (*CreateRoleResponse, error)
- func (UnimplementedRBACServer) DeleteRole(context.Context, *DeleteRoleRequest) (*DeleteRoleResponse, error)
- func (UnimplementedRBACServer) DeleteRoleBinding(context.Context, *DeleteRoleBindingRequest) (*emptypb.Empty, error)
- func (UnimplementedRBACServer) GetRole(context.Context, *GetRoleRequest) (*GetRoleResponse, error)
- func (UnimplementedRBACServer) ListPermissions(context.Context, *ListPermissionRequest) (*ListPermissionResponse, error)
- func (UnimplementedRBACServer) ListRole(context.Context, *ListRolesRequest) (*ListRolesResponse, error)
- func (UnimplementedRBACServer) TMAddPolicy(context.Context, *TMPolicyRequest) (*emptypb.Empty, error)
- func (UnimplementedRBACServer) TMAddRoleBinding(context.Context, *TMRoleBindingRequest) (*emptypb.Empty, error)
- func (UnimplementedRBACServer) TMDeletePolicy(context.Context, *TMPolicyRequest) (*emptypb.Empty, error)
- func (UnimplementedRBACServer) TMDeleteRoleBinding(context.Context, *TMRoleBindingRequest) (*emptypb.Empty, error)
- func (UnimplementedRBACServer) UpdateRole(context.Context, *UpdateRoleRequest) (*UpdateRoleResponse, error)
- func (UnimplementedRBACServer) UpdateUserRoleBinding(context.Context, *UpdateUserRoleBindingRequest) (*emptypb.Empty, error)
- type UnsafeRBACServer
- type UpdateRoleRequest
- func (*UpdateRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateRoleRequest) GetId() string
- func (x *UpdateRoleRequest) GetRole() *Role
- func (*UpdateRoleRequest) ProtoMessage()
- func (x *UpdateRoleRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateRoleRequest) Reset()
- func (x *UpdateRoleRequest) String() string
- type UpdateRoleResponse
- type UpdateUserRoleBindingRequest
- func (*UpdateUserRoleBindingRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateUserRoleBindingRequest) GetRoleIdList() *UpdateUserRoleBindingRequest_RoleIDList
- func (x *UpdateUserRoleBindingRequest) GetUserId() string
- func (*UpdateUserRoleBindingRequest) ProtoMessage()
- func (x *UpdateUserRoleBindingRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateUserRoleBindingRequest) Reset()
- func (x *UpdateUserRoleBindingRequest) String() string
- type UpdateUserRoleBindingRequest_RoleIDList
- func (*UpdateUserRoleBindingRequest_RoleIDList) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateUserRoleBindingRequest_RoleIDList) GetRoles() []string
- func (*UpdateUserRoleBindingRequest_RoleIDList) ProtoMessage()
- func (x *UpdateUserRoleBindingRequest_RoleIDList) ProtoReflect() protoreflect.Message
- func (x *UpdateUserRoleBindingRequest_RoleIDList) Reset()
- func (x *UpdateUserRoleBindingRequest_RoleIDList) String() string
Constants ¶
This section is empty.
Variables ¶
var ( Error_name = map[int32]string{ 0: "ERR_UNKNOWN", 1: "ERR_INVALID_ARGUMENT", 2: "ERR_INTERNAL_STORE", 3: "ERR_INTERNAL_ERROR", 4: "ERR_PERMISSION_NOT_FOUND", 5: "ERR_ROLE_NOT_FOUND", 6: "ERR_ROLE_HAS_BEEN_EXSIST", 7: "ERR_USER_NOT_FOUND", 8: "ERR_NOT_ALLOWED_EDIT", 9: "ERR_MUST_HAVE_ONE_BINDING", } Error_value = map[string]int32{ "ERR_UNKNOWN": 0, "ERR_INVALID_ARGUMENT": 1, "ERR_INTERNAL_STORE": 2, "ERR_INTERNAL_ERROR": 3, "ERR_PERMISSION_NOT_FOUND": 4, "ERR_ROLE_NOT_FOUND": 5, "ERR_ROLE_HAS_BEEN_EXSIST": 6, "ERR_USER_NOT_FOUND": 7, "ERR_NOT_ALLOWED_EDIT": 8, "ERR_MUST_HAVE_ONE_BINDING": 9, } )
Enum value maps for Error.
var File_api_rbac_v1_error_proto protoreflect.FileDescriptor
var File_api_rbac_v1_rbac_proto protoreflect.FileDescriptor
var RBAC_ServiceDesc = grpc.ServiceDesc{ ServiceName: "io.tkeel.rudder.api.rbac.v1.RBAC", HandlerType: (*RBACServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateRoles", Handler: _RBAC_CreateRoles_Handler, }, { MethodName: "ListRole", Handler: _RBAC_ListRole_Handler, }, { MethodName: "GetRole", Handler: _RBAC_GetRole_Handler, }, { MethodName: "DeleteRole", Handler: _RBAC_DeleteRole_Handler, }, { MethodName: "UpdateRole", Handler: _RBAC_UpdateRole_Handler, }, { MethodName: "UpdateUserRoleBinding", Handler: _RBAC_UpdateUserRoleBinding_Handler, }, { MethodName: "CreateRoleBinding", Handler: _RBAC_CreateRoleBinding_Handler, }, { MethodName: "DeleteRoleBinding", Handler: _RBAC_DeleteRoleBinding_Handler, }, { MethodName: "ListPermissions", Handler: _RBAC_ListPermissions_Handler, }, { MethodName: "CheckRolePermission", Handler: _RBAC_CheckRolePermission_Handler, }, { MethodName: "TMAddPolicy", Handler: _RBAC_TMAddPolicy_Handler, }, { MethodName: "TMDeletePolicy", Handler: _RBAC_TMDeletePolicy_Handler, }, { MethodName: "TMAddRoleBinding", Handler: _RBAC_TMAddRoleBinding_Handler, }, { MethodName: "TMDeleteRoleBinding", Handler: _RBAC_TMDeleteRoleBinding_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/rbac/v1/rbac.proto", }
RBAC_ServiceDesc is the grpc.ServiceDesc for RBAC service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func ErrInternalError ¶
func ErrInternalStore ¶
func ErrInvalidArgument ¶
func ErrMustHaveOneBinding ¶
func ErrNotAllowedEdit ¶
func ErrPermissionNotFound ¶
func ErrRoleHasBeenExsist ¶
func ErrRoleNotFound ¶
func ErrUnknown ¶
func ErrUserNotFound ¶
func RegisterRBACHTTPServer ¶
func RegisterRBACHTTPServer(container *go_restful.Container, srv RBACHTTPServer)
func RegisterRBACServer ¶
func RegisterRBACServer(s grpc.ServiceRegistrar, srv RBACServer)
Types ¶
type CheckRolePermissionRequest ¶
type CheckRolePermissionRequest struct { Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` // contains filtered or unexported fields }
func (*CheckRolePermissionRequest) Descriptor
deprecated
func (*CheckRolePermissionRequest) Descriptor() ([]byte, []int)
Deprecated: Use CheckRolePermissionRequest.ProtoReflect.Descriptor instead.
func (*CheckRolePermissionRequest) GetPath ¶
func (x *CheckRolePermissionRequest) GetPath() string
func (*CheckRolePermissionRequest) ProtoMessage ¶
func (*CheckRolePermissionRequest) ProtoMessage()
func (*CheckRolePermissionRequest) ProtoReflect ¶
func (x *CheckRolePermissionRequest) ProtoReflect() protoreflect.Message
func (*CheckRolePermissionRequest) Reset ¶
func (x *CheckRolePermissionRequest) Reset()
func (*CheckRolePermissionRequest) String ¶
func (x *CheckRolePermissionRequest) String() string
type CheckRolePermissionResponse ¶
type CheckRolePermissionResponse struct { Allowed bool `protobuf:"varint,1,opt,name=allowed,proto3" json:"allowed,omitempty"` // contains filtered or unexported fields }
func (*CheckRolePermissionResponse) Descriptor
deprecated
func (*CheckRolePermissionResponse) Descriptor() ([]byte, []int)
Deprecated: Use CheckRolePermissionResponse.ProtoReflect.Descriptor instead.
func (*CheckRolePermissionResponse) GetAllowed ¶
func (x *CheckRolePermissionResponse) GetAllowed() bool
func (*CheckRolePermissionResponse) ProtoMessage ¶
func (*CheckRolePermissionResponse) ProtoMessage()
func (*CheckRolePermissionResponse) ProtoReflect ¶
func (x *CheckRolePermissionResponse) ProtoReflect() protoreflect.Message
func (*CheckRolePermissionResponse) Reset ¶
func (x *CheckRolePermissionResponse) Reset()
func (*CheckRolePermissionResponse) String ¶
func (x *CheckRolePermissionResponse) String() string
type CreateRoleBindingRequest ¶
type CreateRoleBindingRequest struct { RoleId string `protobuf:"bytes,1,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"` Users *CreateRoleBindingRequest_UserList `protobuf:"bytes,2,opt,name=users,proto3" json:"users,omitempty"` // contains filtered or unexported fields }
func (*CreateRoleBindingRequest) Descriptor
deprecated
func (*CreateRoleBindingRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateRoleBindingRequest.ProtoReflect.Descriptor instead.
func (*CreateRoleBindingRequest) GetRoleId ¶
func (x *CreateRoleBindingRequest) GetRoleId() string
func (*CreateRoleBindingRequest) GetUsers ¶
func (x *CreateRoleBindingRequest) GetUsers() *CreateRoleBindingRequest_UserList
func (*CreateRoleBindingRequest) ProtoMessage ¶
func (*CreateRoleBindingRequest) ProtoMessage()
func (*CreateRoleBindingRequest) ProtoReflect ¶
func (x *CreateRoleBindingRequest) ProtoReflect() protoreflect.Message
func (*CreateRoleBindingRequest) Reset ¶
func (x *CreateRoleBindingRequest) Reset()
func (*CreateRoleBindingRequest) String ¶
func (x *CreateRoleBindingRequest) String() string
type CreateRoleBindingRequest_UserList ¶
type CreateRoleBindingRequest_UserList struct { Id []string `protobuf:"bytes,1,rep,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*CreateRoleBindingRequest_UserList) Descriptor
deprecated
func (*CreateRoleBindingRequest_UserList) Descriptor() ([]byte, []int)
Deprecated: Use CreateRoleBindingRequest_UserList.ProtoReflect.Descriptor instead.
func (*CreateRoleBindingRequest_UserList) GetId ¶
func (x *CreateRoleBindingRequest_UserList) GetId() []string
func (*CreateRoleBindingRequest_UserList) ProtoMessage ¶
func (*CreateRoleBindingRequest_UserList) ProtoMessage()
func (*CreateRoleBindingRequest_UserList) ProtoReflect ¶
func (x *CreateRoleBindingRequest_UserList) ProtoReflect() protoreflect.Message
func (*CreateRoleBindingRequest_UserList) Reset ¶
func (x *CreateRoleBindingRequest_UserList) Reset()
func (*CreateRoleBindingRequest_UserList) String ¶
func (x *CreateRoleBindingRequest_UserList) String() string
type CreateRoleRequest ¶
type CreateRoleRequest struct { Role *Role `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"` // contains filtered or unexported fields }
func (*CreateRoleRequest) Descriptor
deprecated
func (*CreateRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateRoleRequest.ProtoReflect.Descriptor instead.
func (*CreateRoleRequest) GetRole ¶
func (x *CreateRoleRequest) GetRole() *Role
func (*CreateRoleRequest) ProtoMessage ¶
func (*CreateRoleRequest) ProtoMessage()
func (*CreateRoleRequest) ProtoReflect ¶
func (x *CreateRoleRequest) ProtoReflect() protoreflect.Message
func (*CreateRoleRequest) Reset ¶
func (x *CreateRoleRequest) Reset()
func (*CreateRoleRequest) String ¶
func (x *CreateRoleRequest) String() string
type CreateRoleResponse ¶
type CreateRoleResponse struct { Role *Role `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"` // contains filtered or unexported fields }
func (*CreateRoleResponse) Descriptor
deprecated
func (*CreateRoleResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateRoleResponse.ProtoReflect.Descriptor instead.
func (*CreateRoleResponse) GetRole ¶
func (x *CreateRoleResponse) GetRole() *Role
func (*CreateRoleResponse) ProtoMessage ¶
func (*CreateRoleResponse) ProtoMessage()
func (*CreateRoleResponse) ProtoReflect ¶
func (x *CreateRoleResponse) ProtoReflect() protoreflect.Message
func (*CreateRoleResponse) Reset ¶
func (x *CreateRoleResponse) Reset()
func (*CreateRoleResponse) String ¶
func (x *CreateRoleResponse) String() string
type DeleteRoleBindingRequest ¶
type DeleteRoleBindingRequest struct { RoleId string `protobuf:"bytes,1,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"` UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*DeleteRoleBindingRequest) Descriptor
deprecated
func (*DeleteRoleBindingRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRoleBindingRequest.ProtoReflect.Descriptor instead.
func (*DeleteRoleBindingRequest) GetRoleId ¶
func (x *DeleteRoleBindingRequest) GetRoleId() string
func (*DeleteRoleBindingRequest) GetUserId ¶
func (x *DeleteRoleBindingRequest) GetUserId() string
func (*DeleteRoleBindingRequest) ProtoMessage ¶
func (*DeleteRoleBindingRequest) ProtoMessage()
func (*DeleteRoleBindingRequest) ProtoReflect ¶
func (x *DeleteRoleBindingRequest) ProtoReflect() protoreflect.Message
func (*DeleteRoleBindingRequest) Reset ¶
func (x *DeleteRoleBindingRequest) Reset()
func (*DeleteRoleBindingRequest) String ¶
func (x *DeleteRoleBindingRequest) String() string
type DeleteRoleRequest ¶
type DeleteRoleRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteRoleRequest) Descriptor
deprecated
func (*DeleteRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRoleRequest.ProtoReflect.Descriptor instead.
func (*DeleteRoleRequest) GetId ¶
func (x *DeleteRoleRequest) GetId() string
func (*DeleteRoleRequest) ProtoMessage ¶
func (*DeleteRoleRequest) ProtoMessage()
func (*DeleteRoleRequest) ProtoReflect ¶
func (x *DeleteRoleRequest) ProtoReflect() protoreflect.Message
func (*DeleteRoleRequest) Reset ¶
func (x *DeleteRoleRequest) Reset()
func (*DeleteRoleRequest) String ¶
func (x *DeleteRoleRequest) String() string
type DeleteRoleResponse ¶
type DeleteRoleResponse struct { Role *Role `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"` // contains filtered or unexported fields }
func (*DeleteRoleResponse) Descriptor
deprecated
func (*DeleteRoleResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRoleResponse.ProtoReflect.Descriptor instead.
func (*DeleteRoleResponse) GetRole ¶
func (x *DeleteRoleResponse) GetRole() *Role
func (*DeleteRoleResponse) ProtoMessage ¶
func (*DeleteRoleResponse) ProtoMessage()
func (*DeleteRoleResponse) ProtoReflect ¶
func (x *DeleteRoleResponse) ProtoReflect() protoreflect.Message
func (*DeleteRoleResponse) Reset ¶
func (x *DeleteRoleResponse) Reset()
func (*DeleteRoleResponse) String ¶
func (x *DeleteRoleResponse) String() string
type Error ¶
type Error int32
@plugins=protoc-gen-go-errors 错误
const ( // @msg=未知类型 // @code=UNKNOWN Error_ERR_UNKNOWN Error = 0 // @msg=请求参数无效 // @code=INVALID_ARGUMENT Error_ERR_INVALID_ARGUMENT Error = 1 // @msg=请求后端存储错误 // @code=INTERNAL Error_ERR_INTERNAL_STORE Error = 2 // @msg=内部错误 // @code=INTERNAL Error_ERR_INTERNAL_ERROR Error = 3 // @msg=权限不存在 // @code=NOT_FOUND Error_ERR_PERMISSION_NOT_FOUND Error = 4 // @msg=角色不存在 // @code=NOT_FOUND Error_ERR_ROLE_NOT_FOUND Error = 5 // @msg=角色已存在 // @code=INVALID_ARGUMENT Error_ERR_ROLE_HAS_BEEN_EXSIST Error = 6 // @msg=用户不存在 // @code=INVALID_ARGUMENT Error_ERR_USER_NOT_FOUND Error = 7 // @msg=角色不可修改 // @code=INVALID_ARGUMENT Error_ERR_NOT_ALLOWED_EDIT Error = 8 // @msg=角色必须拥有至少一个绑定 // @code=INVALID_ARGUMENT Error_ERR_MUST_HAVE_ONE_BINDING Error = 9 )
func (Error) Descriptor ¶
func (Error) Descriptor() protoreflect.EnumDescriptor
func (Error) EnumDescriptor
deprecated
func (Error) Number ¶
func (x Error) Number() protoreflect.EnumNumber
func (Error) Type ¶
func (Error) Type() protoreflect.EnumType
type GetRoleRequest ¶
type GetRoleRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetRoleRequest) Descriptor
deprecated
func (*GetRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRoleRequest.ProtoReflect.Descriptor instead.
func (*GetRoleRequest) GetId ¶
func (x *GetRoleRequest) GetId() string
func (*GetRoleRequest) ProtoMessage ¶
func (*GetRoleRequest) ProtoMessage()
func (*GetRoleRequest) ProtoReflect ¶
func (x *GetRoleRequest) ProtoReflect() protoreflect.Message
func (*GetRoleRequest) Reset ¶
func (x *GetRoleRequest) Reset()
func (*GetRoleRequest) String ¶
func (x *GetRoleRequest) String() string
type GetRoleResponse ¶
type GetRoleResponse struct { Role *Role `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"` // contains filtered or unexported fields }
func (*GetRoleResponse) Descriptor
deprecated
func (*GetRoleResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetRoleResponse.ProtoReflect.Descriptor instead.
func (*GetRoleResponse) GetRole ¶
func (x *GetRoleResponse) GetRole() *Role
func (*GetRoleResponse) ProtoMessage ¶
func (*GetRoleResponse) ProtoMessage()
func (*GetRoleResponse) ProtoReflect ¶
func (x *GetRoleResponse) ProtoReflect() protoreflect.Message
func (*GetRoleResponse) Reset ¶
func (x *GetRoleResponse) Reset()
func (*GetRoleResponse) String ¶
func (x *GetRoleResponse) String() string
type ListPermissionRequest ¶
type ListPermissionRequest struct { KeyWords string `protobuf:"bytes,1,opt,name=key_words,json=keyWords,proto3" json:"key_words,omitempty"` // permission name search words. Role string `protobuf:"bytes,10,opt,name=role,proto3" json:"role,omitempty"` // tenant role name. // contains filtered or unexported fields }
func (*ListPermissionRequest) Descriptor
deprecated
func (*ListPermissionRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListPermissionRequest.ProtoReflect.Descriptor instead.
func (*ListPermissionRequest) GetKeyWords ¶
func (x *ListPermissionRequest) GetKeyWords() string
func (*ListPermissionRequest) GetRole ¶
func (x *ListPermissionRequest) GetRole() string
func (*ListPermissionRequest) ProtoMessage ¶
func (*ListPermissionRequest) ProtoMessage()
func (*ListPermissionRequest) ProtoReflect ¶
func (x *ListPermissionRequest) ProtoReflect() protoreflect.Message
func (*ListPermissionRequest) Reset ¶
func (x *ListPermissionRequest) Reset()
func (*ListPermissionRequest) String ¶
func (x *ListPermissionRequest) String() string
type ListPermissionResponse ¶
type ListPermissionResponse struct { Permissions []*Permission `protobuf:"bytes,1,rep,name=permissions,proto3" json:"permissions,omitempty"` // contains filtered or unexported fields }
func (*ListPermissionResponse) Descriptor
deprecated
func (*ListPermissionResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListPermissionResponse.ProtoReflect.Descriptor instead.
func (*ListPermissionResponse) GetPermissions ¶
func (x *ListPermissionResponse) GetPermissions() []*Permission
func (*ListPermissionResponse) ProtoMessage ¶
func (*ListPermissionResponse) ProtoMessage()
func (*ListPermissionResponse) ProtoReflect ¶
func (x *ListPermissionResponse) ProtoReflect() protoreflect.Message
func (*ListPermissionResponse) Reset ¶
func (x *ListPermissionResponse) Reset()
func (*ListPermissionResponse) String ¶
func (x *ListPermissionResponse) String() string
type ListRolesRequest ¶
type ListRolesRequest struct { PageNum int32 `protobuf:"varint,1,opt,name=page_num,json=pageNum,proto3" json:"page_num,omitempty"` PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` OrderBy string `protobuf:"bytes,3,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` IsDescending bool `protobuf:"varint,4,opt,name=is_descending,json=isDescending,proto3" json:"is_descending,omitempty"` KeyWords string `protobuf:"bytes,5,opt,name=key_words,json=keyWords,proto3" json:"key_words,omitempty"` TenantId string `protobuf:"bytes,10,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"` // contains filtered or unexported fields }
func (*ListRolesRequest) Descriptor
deprecated
func (*ListRolesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListRolesRequest.ProtoReflect.Descriptor instead.
func (*ListRolesRequest) GetIsDescending ¶
func (x *ListRolesRequest) GetIsDescending() bool
func (*ListRolesRequest) GetKeyWords ¶
func (x *ListRolesRequest) GetKeyWords() string
func (*ListRolesRequest) GetOrderBy ¶
func (x *ListRolesRequest) GetOrderBy() string
func (*ListRolesRequest) GetPageNum ¶
func (x *ListRolesRequest) GetPageNum() int32
func (*ListRolesRequest) GetPageSize ¶
func (x *ListRolesRequest) GetPageSize() int32
func (*ListRolesRequest) GetTenantId ¶
func (x *ListRolesRequest) GetTenantId() string
func (*ListRolesRequest) ProtoMessage ¶
func (*ListRolesRequest) ProtoMessage()
func (*ListRolesRequest) ProtoReflect ¶
func (x *ListRolesRequest) ProtoReflect() protoreflect.Message
func (*ListRolesRequest) Reset ¶
func (x *ListRolesRequest) Reset()
func (*ListRolesRequest) String ¶
func (x *ListRolesRequest) String() string
type ListRolesResponse ¶
type ListRolesResponse struct { PageNum int32 `protobuf:"varint,1,opt,name=page_num,json=pageNum,proto3" json:"page_num,omitempty"` PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` Total int32 `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"` Roles []*Role `protobuf:"bytes,10,rep,name=roles,proto3" json:"roles,omitempty"` TenantId string `protobuf:"bytes,11,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"` // contains filtered or unexported fields }
func (*ListRolesResponse) Descriptor
deprecated
func (*ListRolesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListRolesResponse.ProtoReflect.Descriptor instead.
func (*ListRolesResponse) GetPageNum ¶
func (x *ListRolesResponse) GetPageNum() int32
func (*ListRolesResponse) GetPageSize ¶
func (x *ListRolesResponse) GetPageSize() int32
func (*ListRolesResponse) GetRoles ¶
func (x *ListRolesResponse) GetRoles() []*Role
func (*ListRolesResponse) GetTenantId ¶
func (x *ListRolesResponse) GetTenantId() string
func (*ListRolesResponse) GetTotal ¶
func (x *ListRolesResponse) GetTotal() int32
func (*ListRolesResponse) ProtoMessage ¶
func (*ListRolesResponse) ProtoMessage()
func (*ListRolesResponse) ProtoReflect ¶
func (x *ListRolesResponse) ProtoReflect() protoreflect.Message
func (*ListRolesResponse) Reset ¶
func (x *ListRolesResponse) Reset()
func (*ListRolesResponse) String ¶
func (x *ListRolesResponse) String() string
type Permission ¶
type Permission struct { Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` Permission *v1.Permission `protobuf:"bytes,2,opt,name=permission,proto3" json:"permission,omitempty"` // contains filtered or unexported fields }
func (*Permission) Descriptor
deprecated
func (*Permission) Descriptor() ([]byte, []int)
Deprecated: Use Permission.ProtoReflect.Descriptor instead.
func (*Permission) GetPath ¶
func (x *Permission) GetPath() string
func (*Permission) GetPermission ¶
func (x *Permission) GetPermission() *v1.Permission
func (*Permission) ProtoMessage ¶
func (*Permission) ProtoMessage()
func (*Permission) ProtoReflect ¶
func (x *Permission) ProtoReflect() protoreflect.Message
func (*Permission) Reset ¶
func (x *Permission) Reset()
func (*Permission) String ¶
func (x *Permission) String() string
type RBACClient ¶
type RBACClient interface { CreateRoles(ctx context.Context, in *CreateRoleRequest, opts ...grpc.CallOption) (*CreateRoleResponse, error) ListRole(ctx context.Context, in *ListRolesRequest, opts ...grpc.CallOption) (*ListRolesResponse, error) GetRole(ctx context.Context, in *GetRoleRequest, opts ...grpc.CallOption) (*GetRoleResponse, error) DeleteRole(ctx context.Context, in *DeleteRoleRequest, opts ...grpc.CallOption) (*DeleteRoleResponse, error) UpdateRole(ctx context.Context, in *UpdateRoleRequest, opts ...grpc.CallOption) (*UpdateRoleResponse, error) UpdateUserRoleBinding(ctx context.Context, in *UpdateUserRoleBindingRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) CreateRoleBinding(ctx context.Context, in *CreateRoleBindingRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) DeleteRoleBinding(ctx context.Context, in *DeleteRoleBindingRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) ListPermissions(ctx context.Context, in *ListPermissionRequest, opts ...grpc.CallOption) (*ListPermissionResponse, error) CheckRolePermission(ctx context.Context, in *CheckRolePermissionRequest, opts ...grpc.CallOption) (*CheckRolePermissionResponse, error) TMAddPolicy(ctx context.Context, in *TMPolicyRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) TMDeletePolicy(ctx context.Context, in *TMPolicyRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) TMAddRoleBinding(ctx context.Context, in *TMRoleBindingRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) TMDeleteRoleBinding(ctx context.Context, in *TMRoleBindingRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) }
RBACClient is the client API for RBAC service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewRBACClient ¶
func NewRBACClient(cc grpc.ClientConnInterface) RBACClient
type RBACHTTPHandler ¶
type RBACHTTPHandler struct {
// contains filtered or unexported fields
}
func (*RBACHTTPHandler) CheckRolePermission ¶
func (h *RBACHTTPHandler) CheckRolePermission(req *go_restful.Request, resp *go_restful.Response)
func (*RBACHTTPHandler) CreateRoleBinding ¶
func (h *RBACHTTPHandler) CreateRoleBinding(req *go_restful.Request, resp *go_restful.Response)
func (*RBACHTTPHandler) CreateRoles ¶
func (h *RBACHTTPHandler) CreateRoles(req *go_restful.Request, resp *go_restful.Response)
func (*RBACHTTPHandler) DeleteRole ¶
func (h *RBACHTTPHandler) DeleteRole(req *go_restful.Request, resp *go_restful.Response)
func (*RBACHTTPHandler) DeleteRoleBinding ¶
func (h *RBACHTTPHandler) DeleteRoleBinding(req *go_restful.Request, resp *go_restful.Response)
func (*RBACHTTPHandler) GetRole ¶
func (h *RBACHTTPHandler) GetRole(req *go_restful.Request, resp *go_restful.Response)
func (*RBACHTTPHandler) ListPermissions ¶
func (h *RBACHTTPHandler) ListPermissions(req *go_restful.Request, resp *go_restful.Response)
func (*RBACHTTPHandler) ListRole ¶
func (h *RBACHTTPHandler) ListRole(req *go_restful.Request, resp *go_restful.Response)
func (*RBACHTTPHandler) TMAddPolicy ¶
func (h *RBACHTTPHandler) TMAddPolicy(req *go_restful.Request, resp *go_restful.Response)
func (*RBACHTTPHandler) TMAddRoleBinding ¶
func (h *RBACHTTPHandler) TMAddRoleBinding(req *go_restful.Request, resp *go_restful.Response)
func (*RBACHTTPHandler) TMDeletePolicy ¶
func (h *RBACHTTPHandler) TMDeletePolicy(req *go_restful.Request, resp *go_restful.Response)
func (*RBACHTTPHandler) TMDeleteRoleBinding ¶
func (h *RBACHTTPHandler) TMDeleteRoleBinding(req *go_restful.Request, resp *go_restful.Response)
func (*RBACHTTPHandler) UpdateRole ¶
func (h *RBACHTTPHandler) UpdateRole(req *go_restful.Request, resp *go_restful.Response)
func (*RBACHTTPHandler) UpdateUserRoleBinding ¶
func (h *RBACHTTPHandler) UpdateUserRoleBinding(req *go_restful.Request, resp *go_restful.Response)
type RBACHTTPServer ¶
type RBACHTTPServer interface { CheckRolePermission(context.Context, *CheckRolePermissionRequest) (*CheckRolePermissionResponse, error) CreateRoleBinding(context.Context, *CreateRoleBindingRequest) (*emptypb.Empty, error) CreateRoles(context.Context, *CreateRoleRequest) (*CreateRoleResponse, error) DeleteRole(context.Context, *DeleteRoleRequest) (*DeleteRoleResponse, error) DeleteRoleBinding(context.Context, *DeleteRoleBindingRequest) (*emptypb.Empty, error) GetRole(context.Context, *GetRoleRequest) (*GetRoleResponse, error) ListPermissions(context.Context, *ListPermissionRequest) (*ListPermissionResponse, error) ListRole(context.Context, *ListRolesRequest) (*ListRolesResponse, error) TMAddPolicy(context.Context, *TMPolicyRequest) (*emptypb.Empty, error) TMAddRoleBinding(context.Context, *TMRoleBindingRequest) (*emptypb.Empty, error) TMDeletePolicy(context.Context, *TMPolicyRequest) (*emptypb.Empty, error) TMDeleteRoleBinding(context.Context, *TMRoleBindingRequest) (*emptypb.Empty, error) UpdateRole(context.Context, *UpdateRoleRequest) (*UpdateRoleResponse, error) UpdateUserRoleBinding(context.Context, *UpdateUserRoleBindingRequest) (*emptypb.Empty, error) }
type RBACServer ¶
type RBACServer interface { CreateRoles(context.Context, *CreateRoleRequest) (*CreateRoleResponse, error) ListRole(context.Context, *ListRolesRequest) (*ListRolesResponse, error) GetRole(context.Context, *GetRoleRequest) (*GetRoleResponse, error) DeleteRole(context.Context, *DeleteRoleRequest) (*DeleteRoleResponse, error) UpdateRole(context.Context, *UpdateRoleRequest) (*UpdateRoleResponse, error) UpdateUserRoleBinding(context.Context, *UpdateUserRoleBindingRequest) (*emptypb.Empty, error) CreateRoleBinding(context.Context, *CreateRoleBindingRequest) (*emptypb.Empty, error) DeleteRoleBinding(context.Context, *DeleteRoleBindingRequest) (*emptypb.Empty, error) ListPermissions(context.Context, *ListPermissionRequest) (*ListPermissionResponse, error) CheckRolePermission(context.Context, *CheckRolePermissionRequest) (*CheckRolePermissionResponse, error) TMAddPolicy(context.Context, *TMPolicyRequest) (*emptypb.Empty, error) TMDeletePolicy(context.Context, *TMPolicyRequest) (*emptypb.Empty, error) TMAddRoleBinding(context.Context, *TMRoleBindingRequest) (*emptypb.Empty, error) TMDeleteRoleBinding(context.Context, *TMRoleBindingRequest) (*emptypb.Empty, error) // contains filtered or unexported methods }
RBACServer is the server API for RBAC service. All implementations must embed UnimplementedRBACServer for forward compatibility
type Role ¶
type Role struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // tenant role name. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // tenant role name. Desc string `protobuf:"bytes,3,opt,name=desc,proto3" json:"desc,omitempty"` BindNum int32 `protobuf:"varint,4,opt,name=bind_num,json=bindNum,proto3" json:"bind_num,omitempty"` UpsertTimestamp uint64 `protobuf:"varint,5,opt,name=upsert_timestamp,json=upsertTimestamp,proto3" json:"upsert_timestamp,omitempty"` PermissionList []*Permission `protobuf:"bytes,6,rep,name=permission_list,json=permissionList,proto3" json:"permission_list,omitempty"` Uneditable bool `protobuf:"varint,7,opt,name=uneditable,proto3" json:"uneditable,omitempty"` // contains filtered or unexported fields }
func (*Role) Descriptor
deprecated
func (*Role) GetBindNum ¶
func (*Role) GetPermissionList ¶
func (x *Role) GetPermissionList() []*Permission
func (*Role) GetUneditable ¶
func (*Role) GetUpsertTimestamp ¶
func (*Role) ProtoMessage ¶
func (*Role) ProtoMessage()
func (*Role) ProtoReflect ¶
func (x *Role) ProtoReflect() protoreflect.Message
type TMPolicyRequest ¶
type TMPolicyRequest struct { Role string `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"` Tenant string `protobuf:"bytes,2,opt,name=tenant,proto3" json:"tenant,omitempty"` Permission string `protobuf:"bytes,3,opt,name=permission,proto3" json:"permission,omitempty"` // contains filtered or unexported fields }
func (*TMPolicyRequest) Descriptor
deprecated
func (*TMPolicyRequest) Descriptor() ([]byte, []int)
Deprecated: Use TMPolicyRequest.ProtoReflect.Descriptor instead.
func (*TMPolicyRequest) GetPermission ¶
func (x *TMPolicyRequest) GetPermission() string
func (*TMPolicyRequest) GetRole ¶
func (x *TMPolicyRequest) GetRole() string
func (*TMPolicyRequest) GetTenant ¶
func (x *TMPolicyRequest) GetTenant() string
func (*TMPolicyRequest) ProtoMessage ¶
func (*TMPolicyRequest) ProtoMessage()
func (*TMPolicyRequest) ProtoReflect ¶
func (x *TMPolicyRequest) ProtoReflect() protoreflect.Message
func (*TMPolicyRequest) Reset ¶
func (x *TMPolicyRequest) Reset()
func (*TMPolicyRequest) String ¶
func (x *TMPolicyRequest) String() string
type TMRoleBindingRequest ¶
type TMRoleBindingRequest struct { User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` Role string `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"` Tenant string `protobuf:"bytes,3,opt,name=tenant,proto3" json:"tenant,omitempty"` // contains filtered or unexported fields }
func (*TMRoleBindingRequest) Descriptor
deprecated
func (*TMRoleBindingRequest) Descriptor() ([]byte, []int)
Deprecated: Use TMRoleBindingRequest.ProtoReflect.Descriptor instead.
func (*TMRoleBindingRequest) GetRole ¶
func (x *TMRoleBindingRequest) GetRole() string
func (*TMRoleBindingRequest) GetTenant ¶
func (x *TMRoleBindingRequest) GetTenant() string
func (*TMRoleBindingRequest) GetUser ¶
func (x *TMRoleBindingRequest) GetUser() string
func (*TMRoleBindingRequest) ProtoMessage ¶
func (*TMRoleBindingRequest) ProtoMessage()
func (*TMRoleBindingRequest) ProtoReflect ¶
func (x *TMRoleBindingRequest) ProtoReflect() protoreflect.Message
func (*TMRoleBindingRequest) Reset ¶
func (x *TMRoleBindingRequest) Reset()
func (*TMRoleBindingRequest) String ¶
func (x *TMRoleBindingRequest) String() string
type UnimplementedRBACServer ¶
type UnimplementedRBACServer struct { }
UnimplementedRBACServer must be embedded to have forward compatible implementations.
func (UnimplementedRBACServer) CheckRolePermission ¶
func (UnimplementedRBACServer) CheckRolePermission(context.Context, *CheckRolePermissionRequest) (*CheckRolePermissionResponse, error)
func (UnimplementedRBACServer) CreateRoleBinding ¶
func (UnimplementedRBACServer) CreateRoleBinding(context.Context, *CreateRoleBindingRequest) (*emptypb.Empty, error)
func (UnimplementedRBACServer) CreateRoles ¶
func (UnimplementedRBACServer) CreateRoles(context.Context, *CreateRoleRequest) (*CreateRoleResponse, error)
func (UnimplementedRBACServer) DeleteRole ¶
func (UnimplementedRBACServer) DeleteRole(context.Context, *DeleteRoleRequest) (*DeleteRoleResponse, error)
func (UnimplementedRBACServer) DeleteRoleBinding ¶
func (UnimplementedRBACServer) DeleteRoleBinding(context.Context, *DeleteRoleBindingRequest) (*emptypb.Empty, error)
func (UnimplementedRBACServer) GetRole ¶
func (UnimplementedRBACServer) GetRole(context.Context, *GetRoleRequest) (*GetRoleResponse, error)
func (UnimplementedRBACServer) ListPermissions ¶
func (UnimplementedRBACServer) ListPermissions(context.Context, *ListPermissionRequest) (*ListPermissionResponse, error)
func (UnimplementedRBACServer) ListRole ¶
func (UnimplementedRBACServer) ListRole(context.Context, *ListRolesRequest) (*ListRolesResponse, error)
func (UnimplementedRBACServer) TMAddPolicy ¶
func (UnimplementedRBACServer) TMAddPolicy(context.Context, *TMPolicyRequest) (*emptypb.Empty, error)
func (UnimplementedRBACServer) TMAddRoleBinding ¶
func (UnimplementedRBACServer) TMAddRoleBinding(context.Context, *TMRoleBindingRequest) (*emptypb.Empty, error)
func (UnimplementedRBACServer) TMDeletePolicy ¶
func (UnimplementedRBACServer) TMDeletePolicy(context.Context, *TMPolicyRequest) (*emptypb.Empty, error)
func (UnimplementedRBACServer) TMDeleteRoleBinding ¶
func (UnimplementedRBACServer) TMDeleteRoleBinding(context.Context, *TMRoleBindingRequest) (*emptypb.Empty, error)
func (UnimplementedRBACServer) UpdateRole ¶
func (UnimplementedRBACServer) UpdateRole(context.Context, *UpdateRoleRequest) (*UpdateRoleResponse, error)
func (UnimplementedRBACServer) UpdateUserRoleBinding ¶
func (UnimplementedRBACServer) UpdateUserRoleBinding(context.Context, *UpdateUserRoleBindingRequest) (*emptypb.Empty, error)
type UnsafeRBACServer ¶
type UnsafeRBACServer interface {
// contains filtered or unexported methods
}
UnsafeRBACServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RBACServer will result in compilation errors.
type UpdateRoleRequest ¶
type UpdateRoleRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Role *Role `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"` // contains filtered or unexported fields }
func (*UpdateRoleRequest) Descriptor
deprecated
func (*UpdateRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRoleRequest.ProtoReflect.Descriptor instead.
func (*UpdateRoleRequest) GetId ¶
func (x *UpdateRoleRequest) GetId() string
func (*UpdateRoleRequest) GetRole ¶
func (x *UpdateRoleRequest) GetRole() *Role
func (*UpdateRoleRequest) ProtoMessage ¶
func (*UpdateRoleRequest) ProtoMessage()
func (*UpdateRoleRequest) ProtoReflect ¶
func (x *UpdateRoleRequest) ProtoReflect() protoreflect.Message
func (*UpdateRoleRequest) Reset ¶
func (x *UpdateRoleRequest) Reset()
func (*UpdateRoleRequest) String ¶
func (x *UpdateRoleRequest) String() string
type UpdateRoleResponse ¶
type UpdateRoleResponse struct { Role *Role `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"` // contains filtered or unexported fields }
func (*UpdateRoleResponse) Descriptor
deprecated
func (*UpdateRoleResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRoleResponse.ProtoReflect.Descriptor instead.
func (*UpdateRoleResponse) GetRole ¶
func (x *UpdateRoleResponse) GetRole() *Role
func (*UpdateRoleResponse) ProtoMessage ¶
func (*UpdateRoleResponse) ProtoMessage()
func (*UpdateRoleResponse) ProtoReflect ¶
func (x *UpdateRoleResponse) ProtoReflect() protoreflect.Message
func (*UpdateRoleResponse) Reset ¶
func (x *UpdateRoleResponse) Reset()
func (*UpdateRoleResponse) String ¶
func (x *UpdateRoleResponse) String() string
type UpdateUserRoleBindingRequest ¶
type UpdateUserRoleBindingRequest struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` RoleIdList *UpdateUserRoleBindingRequest_RoleIDList `protobuf:"bytes,2,opt,name=role_id_list,json=roleIdList,proto3" json:"role_id_list,omitempty"` // contains filtered or unexported fields }
func (*UpdateUserRoleBindingRequest) Descriptor
deprecated
func (*UpdateUserRoleBindingRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserRoleBindingRequest.ProtoReflect.Descriptor instead.
func (*UpdateUserRoleBindingRequest) GetRoleIdList ¶
func (x *UpdateUserRoleBindingRequest) GetRoleIdList() *UpdateUserRoleBindingRequest_RoleIDList
func (*UpdateUserRoleBindingRequest) GetUserId ¶
func (x *UpdateUserRoleBindingRequest) GetUserId() string
func (*UpdateUserRoleBindingRequest) ProtoMessage ¶
func (*UpdateUserRoleBindingRequest) ProtoMessage()
func (*UpdateUserRoleBindingRequest) ProtoReflect ¶
func (x *UpdateUserRoleBindingRequest) ProtoReflect() protoreflect.Message
func (*UpdateUserRoleBindingRequest) Reset ¶
func (x *UpdateUserRoleBindingRequest) Reset()
func (*UpdateUserRoleBindingRequest) String ¶
func (x *UpdateUserRoleBindingRequest) String() string
type UpdateUserRoleBindingRequest_RoleIDList ¶
type UpdateUserRoleBindingRequest_RoleIDList struct { Roles []string `protobuf:"bytes,1,rep,name=roles,proto3" json:"roles,omitempty"` // contains filtered or unexported fields }
func (*UpdateUserRoleBindingRequest_RoleIDList) Descriptor
deprecated
func (*UpdateUserRoleBindingRequest_RoleIDList) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserRoleBindingRequest_RoleIDList.ProtoReflect.Descriptor instead.
func (*UpdateUserRoleBindingRequest_RoleIDList) GetRoles ¶
func (x *UpdateUserRoleBindingRequest_RoleIDList) GetRoles() []string
func (*UpdateUserRoleBindingRequest_RoleIDList) ProtoMessage ¶
func (*UpdateUserRoleBindingRequest_RoleIDList) ProtoMessage()
func (*UpdateUserRoleBindingRequest_RoleIDList) ProtoReflect ¶
func (x *UpdateUserRoleBindingRequest_RoleIDList) ProtoReflect() protoreflect.Message
func (*UpdateUserRoleBindingRequest_RoleIDList) Reset ¶
func (x *UpdateUserRoleBindingRequest_RoleIDList) Reset()
func (*UpdateUserRoleBindingRequest_RoleIDList) String ¶
func (x *UpdateUserRoleBindingRequest_RoleIDList) String() string