Documentation ¶
Index ¶
- Variables
- func RegisterRoleAPIServer(s grpc.ServiceRegistrar, srv RoleAPIServer)
- type AssignRoleRequest
- func (*AssignRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AssignRoleRequest) GetCircleId() string
- func (x *AssignRoleRequest) GetEntityId() string
- func (x *AssignRoleRequest) GetRoleId() string
- func (x *AssignRoleRequest) GetUserId() string
- func (*AssignRoleRequest) ProtoMessage()
- func (x *AssignRoleRequest) ProtoReflect() protoreflect.Message
- func (x *AssignRoleRequest) Reset()
- func (x *AssignRoleRequest) String() string
- type AssignRoleResponse
- type AuthorizeRequest
- func (*AuthorizeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AuthorizeRequest) GetCircleIds() []string
- func (x *AuthorizeRequest) GetOperation() string
- func (x *AuthorizeRequest) GetService() string
- func (x *AuthorizeRequest) GetUserIds() []string
- func (*AuthorizeRequest) ProtoMessage()
- func (x *AuthorizeRequest) ProtoReflect() protoreflect.Message
- func (x *AuthorizeRequest) Reset()
- func (x *AuthorizeRequest) String() string
- type AuthorizeResponse
- func (*AuthorizeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AuthorizeResponse) GetScopes() map[string]string
- func (*AuthorizeResponse) ProtoMessage()
- func (x *AuthorizeResponse) ProtoReflect() protoreflect.Message
- func (x *AuthorizeResponse) Reset()
- func (x *AuthorizeResponse) String() string
- type CreateRoleRequest
- type CreateRoleResponse
- type DeleteRolesRequest
- func (*DeleteRolesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteRolesRequest) GetIds() []string
- func (*DeleteRolesRequest) ProtoMessage()
- func (x *DeleteRolesRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteRolesRequest) Reset()
- func (x *DeleteRolesRequest) String() string
- type DeleteRolesResponse
- type GetAssignedRolesRequest
- func (*GetAssignedRolesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetAssignedRolesRequest) GetCircleId() string
- func (x *GetAssignedRolesRequest) GetEntityId() string
- func (x *GetAssignedRolesRequest) GetUserId() string
- func (*GetAssignedRolesRequest) ProtoMessage()
- func (x *GetAssignedRolesRequest) ProtoReflect() protoreflect.Message
- func (x *GetAssignedRolesRequest) Reset()
- func (x *GetAssignedRolesRequest) String() string
- type GetAssignedRolesResponse
- func (*GetAssignedRolesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetAssignedRolesResponse) GetRoles() []*Role
- func (x *GetAssignedRolesResponse) GetScopes() []*Scope
- func (*GetAssignedRolesResponse) ProtoMessage()
- func (x *GetAssignedRolesResponse) ProtoReflect() protoreflect.Message
- func (x *GetAssignedRolesResponse) Reset()
- func (x *GetAssignedRolesResponse) String() string
- type GetRoleRequest
- type GetRoleResponse
- type Permission
- func (*Permission) Descriptor() ([]byte, []int)deprecated
- func (x *Permission) GetOperation() string
- func (x *Permission) GetScope() string
- func (x *Permission) GetService() string
- func (*Permission) ProtoMessage()
- func (x *Permission) ProtoReflect() protoreflect.Message
- func (x *Permission) Reset()
- func (x *Permission) String() string
- type RemovePermissionsRequest
- func (*RemovePermissionsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RemovePermissionsRequest) GetPermissions() []*Permission
- func (x *RemovePermissionsRequest) GetRoleId() string
- func (*RemovePermissionsRequest) ProtoMessage()
- func (x *RemovePermissionsRequest) ProtoReflect() protoreflect.Message
- func (x *RemovePermissionsRequest) Reset()
- func (x *RemovePermissionsRequest) String() string
- type RemovePermissionsResponse
- type RevokeRoleRequest
- func (*RevokeRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RevokeRoleRequest) GetCircleId() string
- func (x *RevokeRoleRequest) GetEntityId() string
- func (x *RevokeRoleRequest) GetRoleId() string
- func (x *RevokeRoleRequest) GetUserId() string
- func (*RevokeRoleRequest) ProtoMessage()
- func (x *RevokeRoleRequest) ProtoReflect() protoreflect.Message
- func (x *RevokeRoleRequest) Reset()
- func (x *RevokeRoleRequest) String() string
- type RevokeRoleResponse
- type RevokeRolesRequest
- func (*RevokeRolesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RevokeRolesRequest) GetCircleId() string
- func (x *RevokeRolesRequest) GetEntityId() string
- func (x *RevokeRolesRequest) GetUserId() string
- func (*RevokeRolesRequest) ProtoMessage()
- func (x *RevokeRolesRequest) ProtoReflect() protoreflect.Message
- func (x *RevokeRolesRequest) Reset()
- func (x *RevokeRolesRequest) String() string
- type RevokeRolesResponse
- type Role
- type RoleAPIClient
- type RoleAPIServer
- type Scope
- type UnimplementedRoleAPIServer
- func (UnimplementedRoleAPIServer) AssignRole(context.Context, *AssignRoleRequest) (*AssignRoleResponse, error)
- func (UnimplementedRoleAPIServer) Authorize(context.Context, *AuthorizeRequest) (*AuthorizeResponse, error)
- func (UnimplementedRoleAPIServer) CreateRole(context.Context, *CreateRoleRequest) (*CreateRoleResponse, error)
- func (UnimplementedRoleAPIServer) DeleteRoles(context.Context, *DeleteRolesRequest) (*DeleteRolesResponse, error)
- func (UnimplementedRoleAPIServer) GetAssignedRoles(context.Context, *GetAssignedRolesRequest) (*GetAssignedRolesResponse, error)
- func (UnimplementedRoleAPIServer) GetRole(context.Context, *GetRoleRequest) (*GetRoleResponse, error)
- func (UnimplementedRoleAPIServer) RemovePermissions(context.Context, *RemovePermissionsRequest) (*RemovePermissionsResponse, error)
- func (UnimplementedRoleAPIServer) RevokeRole(context.Context, *RevokeRoleRequest) (*RevokeRoleResponse, error)
- func (UnimplementedRoleAPIServer) RevokeRoles(context.Context, *RevokeRolesRequest) (*RevokeRolesResponse, error)
- func (UnimplementedRoleAPIServer) UpdateRole(context.Context, *UpdateRoleRequest) (*UpdateRoleResponse, error)
- type UnsafeRoleAPIServer
- type UpdateRoleRequest
- type UpdateRoleResponse
Constants ¶
This section is empty.
Variables ¶
var File_role_api_role_v1_role_proto protoreflect.FileDescriptor
var RoleAPI_ServiceDesc = grpc.ServiceDesc{ ServiceName: "role.v1.RoleAPI", HandlerType: (*RoleAPIServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateRole", Handler: _RoleAPI_CreateRole_Handler, }, { MethodName: "GetRole", Handler: _RoleAPI_GetRole_Handler, }, { MethodName: "UpdateRole", Handler: _RoleAPI_UpdateRole_Handler, }, { MethodName: "RemovePermissions", Handler: _RoleAPI_RemovePermissions_Handler, }, { MethodName: "DeleteRoles", Handler: _RoleAPI_DeleteRoles_Handler, }, { MethodName: "AssignRole", Handler: _RoleAPI_AssignRole_Handler, }, { MethodName: "RevokeRole", Handler: _RoleAPI_RevokeRole_Handler, }, { MethodName: "RevokeRoles", Handler: _RoleAPI_RevokeRoles_Handler, }, { MethodName: "GetAssignedRoles", Handler: _RoleAPI_GetAssignedRoles_Handler, }, { MethodName: "Authorize", Handler: _RoleAPI_Authorize_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "role-api/role/v1/role.proto", }
RoleAPI_ServiceDesc is the grpc.ServiceDesc for RoleAPI service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterRoleAPIServer ¶
func RegisterRoleAPIServer(s grpc.ServiceRegistrar, srv RoleAPIServer)
Types ¶
type AssignRoleRequest ¶
type AssignRoleRequest struct { EntityId string `protobuf:"bytes,1,opt,name=entity_id,json=entityId,proto3" json:"entity_id,omitempty"` RoleId string `protobuf:"bytes,2,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"` CircleId string `protobuf:"bytes,3,opt,name=circle_id,json=circleId,proto3" json:"circle_id,omitempty"` UserId string `protobuf:"bytes,4,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*AssignRoleRequest) Descriptor
deprecated
func (*AssignRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use AssignRoleRequest.ProtoReflect.Descriptor instead.
func (*AssignRoleRequest) GetCircleId ¶
func (x *AssignRoleRequest) GetCircleId() string
func (*AssignRoleRequest) GetEntityId ¶
func (x *AssignRoleRequest) GetEntityId() string
func (*AssignRoleRequest) GetRoleId ¶
func (x *AssignRoleRequest) GetRoleId() string
func (*AssignRoleRequest) GetUserId ¶
func (x *AssignRoleRequest) GetUserId() string
func (*AssignRoleRequest) ProtoMessage ¶
func (*AssignRoleRequest) ProtoMessage()
func (*AssignRoleRequest) ProtoReflect ¶
func (x *AssignRoleRequest) ProtoReflect() protoreflect.Message
func (*AssignRoleRequest) Reset ¶
func (x *AssignRoleRequest) Reset()
func (*AssignRoleRequest) String ¶
func (x *AssignRoleRequest) String() string
type AssignRoleResponse ¶
type AssignRoleResponse struct {
// contains filtered or unexported fields
}
func (*AssignRoleResponse) Descriptor
deprecated
func (*AssignRoleResponse) Descriptor() ([]byte, []int)
Deprecated: Use AssignRoleResponse.ProtoReflect.Descriptor instead.
func (*AssignRoleResponse) ProtoMessage ¶
func (*AssignRoleResponse) ProtoMessage()
func (*AssignRoleResponse) ProtoReflect ¶
func (x *AssignRoleResponse) ProtoReflect() protoreflect.Message
func (*AssignRoleResponse) Reset ¶
func (x *AssignRoleResponse) Reset()
func (*AssignRoleResponse) String ¶
func (x *AssignRoleResponse) String() string
type AuthorizeRequest ¶ added in v0.2.33
type AuthorizeRequest struct { Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` Operation string `protobuf:"bytes,2,opt,name=operation,proto3" json:"operation,omitempty"` CircleIds []string `protobuf:"bytes,3,rep,name=circle_ids,json=circleIds,proto3" json:"circle_ids,omitempty"` UserIds []string `protobuf:"bytes,4,rep,name=user_ids,json=userIds,proto3" json:"user_ids,omitempty"` // contains filtered or unexported fields }
func (*AuthorizeRequest) Descriptor
deprecated
added in
v0.2.33
func (*AuthorizeRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuthorizeRequest.ProtoReflect.Descriptor instead.
func (*AuthorizeRequest) GetCircleIds ¶ added in v0.2.33
func (x *AuthorizeRequest) GetCircleIds() []string
func (*AuthorizeRequest) GetOperation ¶ added in v0.2.33
func (x *AuthorizeRequest) GetOperation() string
func (*AuthorizeRequest) GetService ¶ added in v0.2.33
func (x *AuthorizeRequest) GetService() string
func (*AuthorizeRequest) GetUserIds ¶ added in v0.2.33
func (x *AuthorizeRequest) GetUserIds() []string
func (*AuthorizeRequest) ProtoMessage ¶ added in v0.2.33
func (*AuthorizeRequest) ProtoMessage()
func (*AuthorizeRequest) ProtoReflect ¶ added in v0.2.33
func (x *AuthorizeRequest) ProtoReflect() protoreflect.Message
func (*AuthorizeRequest) Reset ¶ added in v0.2.33
func (x *AuthorizeRequest) Reset()
func (*AuthorizeRequest) String ¶ added in v0.2.33
func (x *AuthorizeRequest) String() string
type AuthorizeResponse ¶ added in v0.2.33
type AuthorizeResponse struct { Scopes map[string]string `` /* 153-byte string literal not displayed */ // contains filtered or unexported fields }
func (*AuthorizeResponse) Descriptor
deprecated
added in
v0.2.33
func (*AuthorizeResponse) Descriptor() ([]byte, []int)
Deprecated: Use AuthorizeResponse.ProtoReflect.Descriptor instead.
func (*AuthorizeResponse) GetScopes ¶ added in v0.2.33
func (x *AuthorizeResponse) GetScopes() map[string]string
func (*AuthorizeResponse) ProtoMessage ¶ added in v0.2.33
func (*AuthorizeResponse) ProtoMessage()
func (*AuthorizeResponse) ProtoReflect ¶ added in v0.2.33
func (x *AuthorizeResponse) ProtoReflect() protoreflect.Message
func (*AuthorizeResponse) Reset ¶ added in v0.2.33
func (x *AuthorizeResponse) Reset()
func (*AuthorizeResponse) String ¶ added in v0.2.33
func (x *AuthorizeResponse) 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 { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*CreateRoleResponse) Descriptor
deprecated
func (*CreateRoleResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateRoleResponse.ProtoReflect.Descriptor instead.
func (*CreateRoleResponse) GetId ¶
func (x *CreateRoleResponse) GetId() string
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 DeleteRolesRequest ¶
type DeleteRolesRequest struct { Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"` // contains filtered or unexported fields }
func (*DeleteRolesRequest) Descriptor
deprecated
func (*DeleteRolesRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRolesRequest.ProtoReflect.Descriptor instead.
func (*DeleteRolesRequest) GetIds ¶
func (x *DeleteRolesRequest) GetIds() []string
func (*DeleteRolesRequest) ProtoMessage ¶
func (*DeleteRolesRequest) ProtoMessage()
func (*DeleteRolesRequest) ProtoReflect ¶
func (x *DeleteRolesRequest) ProtoReflect() protoreflect.Message
func (*DeleteRolesRequest) Reset ¶
func (x *DeleteRolesRequest) Reset()
func (*DeleteRolesRequest) String ¶
func (x *DeleteRolesRequest) String() string
type DeleteRolesResponse ¶
type DeleteRolesResponse struct {
// contains filtered or unexported fields
}
func (*DeleteRolesResponse) Descriptor
deprecated
func (*DeleteRolesResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRolesResponse.ProtoReflect.Descriptor instead.
func (*DeleteRolesResponse) ProtoMessage ¶
func (*DeleteRolesResponse) ProtoMessage()
func (*DeleteRolesResponse) ProtoReflect ¶
func (x *DeleteRolesResponse) ProtoReflect() protoreflect.Message
func (*DeleteRolesResponse) Reset ¶
func (x *DeleteRolesResponse) Reset()
func (*DeleteRolesResponse) String ¶
func (x *DeleteRolesResponse) String() string
type GetAssignedRolesRequest ¶
type GetAssignedRolesRequest struct { EntityId string `protobuf:"bytes,1,opt,name=entity_id,json=entityId,proto3" json:"entity_id,omitempty"` CircleId string `protobuf:"bytes,2,opt,name=circle_id,json=circleId,proto3" json:"circle_id,omitempty"` UserId string `protobuf:"bytes,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*GetAssignedRolesRequest) Descriptor
deprecated
func (*GetAssignedRolesRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAssignedRolesRequest.ProtoReflect.Descriptor instead.
func (*GetAssignedRolesRequest) GetCircleId ¶
func (x *GetAssignedRolesRequest) GetCircleId() string
func (*GetAssignedRolesRequest) GetEntityId ¶
func (x *GetAssignedRolesRequest) GetEntityId() string
func (*GetAssignedRolesRequest) GetUserId ¶
func (x *GetAssignedRolesRequest) GetUserId() string
func (*GetAssignedRolesRequest) ProtoMessage ¶
func (*GetAssignedRolesRequest) ProtoMessage()
func (*GetAssignedRolesRequest) ProtoReflect ¶
func (x *GetAssignedRolesRequest) ProtoReflect() protoreflect.Message
func (*GetAssignedRolesRequest) Reset ¶
func (x *GetAssignedRolesRequest) Reset()
func (*GetAssignedRolesRequest) String ¶
func (x *GetAssignedRolesRequest) String() string
type GetAssignedRolesResponse ¶
type GetAssignedRolesResponse struct { Roles []*Role `protobuf:"bytes,1,rep,name=roles,proto3" json:"roles,omitempty"` Scopes []*Scope `protobuf:"bytes,2,rep,name=scopes,proto3" json:"scopes,omitempty"` // contains filtered or unexported fields }
func (*GetAssignedRolesResponse) Descriptor
deprecated
func (*GetAssignedRolesResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetAssignedRolesResponse.ProtoReflect.Descriptor instead.
func (*GetAssignedRolesResponse) GetRoles ¶
func (x *GetAssignedRolesResponse) GetRoles() []*Role
func (*GetAssignedRolesResponse) GetScopes ¶
func (x *GetAssignedRolesResponse) GetScopes() []*Scope
func (*GetAssignedRolesResponse) ProtoMessage ¶
func (*GetAssignedRolesResponse) ProtoMessage()
func (*GetAssignedRolesResponse) ProtoReflect ¶
func (x *GetAssignedRolesResponse) ProtoReflect() protoreflect.Message
func (*GetAssignedRolesResponse) Reset ¶
func (x *GetAssignedRolesResponse) Reset()
func (*GetAssignedRolesResponse) String ¶
func (x *GetAssignedRolesResponse) String() string
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 Permission ¶
type Permission struct { Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` Operation string `protobuf:"bytes,2,opt,name=operation,proto3" json:"operation,omitempty"` Scope string `protobuf:"bytes,3,opt,name=scope,proto3" json:"scope,omitempty"` // contains filtered or unexported fields }
func (*Permission) Descriptor
deprecated
func (*Permission) Descriptor() ([]byte, []int)
Deprecated: Use Permission.ProtoReflect.Descriptor instead.
func (*Permission) GetOperation ¶
func (x *Permission) GetOperation() string
func (*Permission) GetScope ¶
func (x *Permission) GetScope() string
func (*Permission) GetService ¶
func (x *Permission) GetService() string
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 RemovePermissionsRequest ¶
type RemovePermissionsRequest struct { RoleId string `protobuf:"bytes,1,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"` Permissions []*Permission `protobuf:"bytes,2,rep,name=permissions,proto3" json:"permissions,omitempty"` // contains filtered or unexported fields }
func (*RemovePermissionsRequest) Descriptor
deprecated
func (*RemovePermissionsRequest) Descriptor() ([]byte, []int)
Deprecated: Use RemovePermissionsRequest.ProtoReflect.Descriptor instead.
func (*RemovePermissionsRequest) GetPermissions ¶
func (x *RemovePermissionsRequest) GetPermissions() []*Permission
func (*RemovePermissionsRequest) GetRoleId ¶
func (x *RemovePermissionsRequest) GetRoleId() string
func (*RemovePermissionsRequest) ProtoMessage ¶
func (*RemovePermissionsRequest) ProtoMessage()
func (*RemovePermissionsRequest) ProtoReflect ¶
func (x *RemovePermissionsRequest) ProtoReflect() protoreflect.Message
func (*RemovePermissionsRequest) Reset ¶
func (x *RemovePermissionsRequest) Reset()
func (*RemovePermissionsRequest) String ¶
func (x *RemovePermissionsRequest) String() string
type RemovePermissionsResponse ¶
type RemovePermissionsResponse struct {
// contains filtered or unexported fields
}
func (*RemovePermissionsResponse) Descriptor
deprecated
func (*RemovePermissionsResponse) Descriptor() ([]byte, []int)
Deprecated: Use RemovePermissionsResponse.ProtoReflect.Descriptor instead.
func (*RemovePermissionsResponse) ProtoMessage ¶
func (*RemovePermissionsResponse) ProtoMessage()
func (*RemovePermissionsResponse) ProtoReflect ¶
func (x *RemovePermissionsResponse) ProtoReflect() protoreflect.Message
func (*RemovePermissionsResponse) Reset ¶
func (x *RemovePermissionsResponse) Reset()
func (*RemovePermissionsResponse) String ¶
func (x *RemovePermissionsResponse) String() string
type RevokeRoleRequest ¶
type RevokeRoleRequest struct { EntityId string `protobuf:"bytes,1,opt,name=entity_id,json=entityId,proto3" json:"entity_id,omitempty"` RoleId string `protobuf:"bytes,2,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"` CircleId string `protobuf:"bytes,3,opt,name=circle_id,json=circleId,proto3" json:"circle_id,omitempty"` UserId string `protobuf:"bytes,4,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*RevokeRoleRequest) Descriptor
deprecated
func (*RevokeRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use RevokeRoleRequest.ProtoReflect.Descriptor instead.
func (*RevokeRoleRequest) GetCircleId ¶
func (x *RevokeRoleRequest) GetCircleId() string
func (*RevokeRoleRequest) GetEntityId ¶
func (x *RevokeRoleRequest) GetEntityId() string
func (*RevokeRoleRequest) GetRoleId ¶
func (x *RevokeRoleRequest) GetRoleId() string
func (*RevokeRoleRequest) GetUserId ¶
func (x *RevokeRoleRequest) GetUserId() string
func (*RevokeRoleRequest) ProtoMessage ¶
func (*RevokeRoleRequest) ProtoMessage()
func (*RevokeRoleRequest) ProtoReflect ¶
func (x *RevokeRoleRequest) ProtoReflect() protoreflect.Message
func (*RevokeRoleRequest) Reset ¶
func (x *RevokeRoleRequest) Reset()
func (*RevokeRoleRequest) String ¶
func (x *RevokeRoleRequest) String() string
type RevokeRoleResponse ¶
type RevokeRoleResponse struct {
// contains filtered or unexported fields
}
func (*RevokeRoleResponse) Descriptor
deprecated
func (*RevokeRoleResponse) Descriptor() ([]byte, []int)
Deprecated: Use RevokeRoleResponse.ProtoReflect.Descriptor instead.
func (*RevokeRoleResponse) ProtoMessage ¶
func (*RevokeRoleResponse) ProtoMessage()
func (*RevokeRoleResponse) ProtoReflect ¶
func (x *RevokeRoleResponse) ProtoReflect() protoreflect.Message
func (*RevokeRoleResponse) Reset ¶
func (x *RevokeRoleResponse) Reset()
func (*RevokeRoleResponse) String ¶
func (x *RevokeRoleResponse) String() string
type RevokeRolesRequest ¶ added in v0.2.21
type RevokeRolesRequest struct { EntityId string `protobuf:"bytes,1,opt,name=entity_id,json=entityId,proto3" json:"entity_id,omitempty"` CircleId string `protobuf:"bytes,2,opt,name=circle_id,json=circleId,proto3" json:"circle_id,omitempty"` UserId string `protobuf:"bytes,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*RevokeRolesRequest) Descriptor
deprecated
added in
v0.2.21
func (*RevokeRolesRequest) Descriptor() ([]byte, []int)
Deprecated: Use RevokeRolesRequest.ProtoReflect.Descriptor instead.
func (*RevokeRolesRequest) GetCircleId ¶ added in v0.2.21
func (x *RevokeRolesRequest) GetCircleId() string
func (*RevokeRolesRequest) GetEntityId ¶ added in v0.2.21
func (x *RevokeRolesRequest) GetEntityId() string
func (*RevokeRolesRequest) GetUserId ¶ added in v0.2.21
func (x *RevokeRolesRequest) GetUserId() string
func (*RevokeRolesRequest) ProtoMessage ¶ added in v0.2.21
func (*RevokeRolesRequest) ProtoMessage()
func (*RevokeRolesRequest) ProtoReflect ¶ added in v0.2.21
func (x *RevokeRolesRequest) ProtoReflect() protoreflect.Message
func (*RevokeRolesRequest) Reset ¶ added in v0.2.21
func (x *RevokeRolesRequest) Reset()
func (*RevokeRolesRequest) String ¶ added in v0.2.21
func (x *RevokeRolesRequest) String() string
type RevokeRolesResponse ¶ added in v0.2.21
type RevokeRolesResponse struct {
// contains filtered or unexported fields
}
func (*RevokeRolesResponse) Descriptor
deprecated
added in
v0.2.21
func (*RevokeRolesResponse) Descriptor() ([]byte, []int)
Deprecated: Use RevokeRolesResponse.ProtoReflect.Descriptor instead.
func (*RevokeRolesResponse) ProtoMessage ¶ added in v0.2.21
func (*RevokeRolesResponse) ProtoMessage()
func (*RevokeRolesResponse) ProtoReflect ¶ added in v0.2.21
func (x *RevokeRolesResponse) ProtoReflect() protoreflect.Message
func (*RevokeRolesResponse) Reset ¶ added in v0.2.21
func (x *RevokeRolesResponse) Reset()
func (*RevokeRolesResponse) String ¶ added in v0.2.21
func (x *RevokeRolesResponse) String() string
type Role ¶
type Role struct { Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Permissions []*Permission `protobuf:"bytes,2,rep,name=permissions,proto3" json:"permissions,omitempty"` // contains filtered or unexported fields }
func (*Role) Descriptor
deprecated
func (*Role) GetPermissions ¶
func (x *Role) GetPermissions() []*Permission
func (*Role) ProtoMessage ¶
func (*Role) ProtoMessage()
func (*Role) ProtoReflect ¶
func (x *Role) ProtoReflect() protoreflect.Message
type RoleAPIClient ¶
type RoleAPIClient interface { CreateRole(ctx context.Context, in *CreateRoleRequest, opts ...grpc.CallOption) (*CreateRoleResponse, error) GetRole(ctx context.Context, in *GetRoleRequest, opts ...grpc.CallOption) (*GetRoleResponse, error) UpdateRole(ctx context.Context, in *UpdateRoleRequest, opts ...grpc.CallOption) (*UpdateRoleResponse, error) RemovePermissions(ctx context.Context, in *RemovePermissionsRequest, opts ...grpc.CallOption) (*RemovePermissionsResponse, error) DeleteRoles(ctx context.Context, in *DeleteRolesRequest, opts ...grpc.CallOption) (*DeleteRolesResponse, error) AssignRole(ctx context.Context, in *AssignRoleRequest, opts ...grpc.CallOption) (*AssignRoleResponse, error) RevokeRole(ctx context.Context, in *RevokeRoleRequest, opts ...grpc.CallOption) (*RevokeRoleResponse, error) RevokeRoles(ctx context.Context, in *RevokeRolesRequest, opts ...grpc.CallOption) (*RevokeRolesResponse, error) GetAssignedRoles(ctx context.Context, in *GetAssignedRolesRequest, opts ...grpc.CallOption) (*GetAssignedRolesResponse, error) Authorize(ctx context.Context, in *AuthorizeRequest, opts ...grpc.CallOption) (*AuthorizeResponse, error) }
RoleAPIClient is the client API for RoleAPI 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 NewRoleAPIClient ¶
func NewRoleAPIClient(cc grpc.ClientConnInterface) RoleAPIClient
type RoleAPIServer ¶
type RoleAPIServer interface { CreateRole(context.Context, *CreateRoleRequest) (*CreateRoleResponse, error) GetRole(context.Context, *GetRoleRequest) (*GetRoleResponse, error) UpdateRole(context.Context, *UpdateRoleRequest) (*UpdateRoleResponse, error) RemovePermissions(context.Context, *RemovePermissionsRequest) (*RemovePermissionsResponse, error) DeleteRoles(context.Context, *DeleteRolesRequest) (*DeleteRolesResponse, error) AssignRole(context.Context, *AssignRoleRequest) (*AssignRoleResponse, error) RevokeRole(context.Context, *RevokeRoleRequest) (*RevokeRoleResponse, error) RevokeRoles(context.Context, *RevokeRolesRequest) (*RevokeRolesResponse, error) GetAssignedRoles(context.Context, *GetAssignedRolesRequest) (*GetAssignedRolesResponse, error) Authorize(context.Context, *AuthorizeRequest) (*AuthorizeResponse, error) // contains filtered or unexported methods }
RoleAPIServer is the server API for RoleAPI service. All implementations must embed UnimplementedRoleAPIServer for forward compatibility
type Scope ¶
type Scope struct { RoleId string `protobuf:"bytes,1,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"` CircleId string `protobuf:"bytes,2,opt,name=circle_id,json=circleId,proto3" json:"circle_id,omitempty"` UserId string `protobuf:"bytes,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*Scope) Descriptor
deprecated
func (*Scope) GetCircleId ¶
func (*Scope) ProtoMessage ¶
func (*Scope) ProtoMessage()
func (*Scope) ProtoReflect ¶
func (x *Scope) ProtoReflect() protoreflect.Message
type UnimplementedRoleAPIServer ¶
type UnimplementedRoleAPIServer struct { }
UnimplementedRoleAPIServer must be embedded to have forward compatible implementations.
func (UnimplementedRoleAPIServer) AssignRole ¶
func (UnimplementedRoleAPIServer) AssignRole(context.Context, *AssignRoleRequest) (*AssignRoleResponse, error)
func (UnimplementedRoleAPIServer) Authorize ¶ added in v0.2.33
func (UnimplementedRoleAPIServer) Authorize(context.Context, *AuthorizeRequest) (*AuthorizeResponse, error)
func (UnimplementedRoleAPIServer) CreateRole ¶
func (UnimplementedRoleAPIServer) CreateRole(context.Context, *CreateRoleRequest) (*CreateRoleResponse, error)
func (UnimplementedRoleAPIServer) DeleteRoles ¶
func (UnimplementedRoleAPIServer) DeleteRoles(context.Context, *DeleteRolesRequest) (*DeleteRolesResponse, error)
func (UnimplementedRoleAPIServer) GetAssignedRoles ¶
func (UnimplementedRoleAPIServer) GetAssignedRoles(context.Context, *GetAssignedRolesRequest) (*GetAssignedRolesResponse, error)
func (UnimplementedRoleAPIServer) GetRole ¶
func (UnimplementedRoleAPIServer) GetRole(context.Context, *GetRoleRequest) (*GetRoleResponse, error)
func (UnimplementedRoleAPIServer) RemovePermissions ¶
func (UnimplementedRoleAPIServer) RemovePermissions(context.Context, *RemovePermissionsRequest) (*RemovePermissionsResponse, error)
func (UnimplementedRoleAPIServer) RevokeRole ¶
func (UnimplementedRoleAPIServer) RevokeRole(context.Context, *RevokeRoleRequest) (*RevokeRoleResponse, error)
func (UnimplementedRoleAPIServer) RevokeRoles ¶ added in v0.2.21
func (UnimplementedRoleAPIServer) RevokeRoles(context.Context, *RevokeRolesRequest) (*RevokeRolesResponse, error)
func (UnimplementedRoleAPIServer) UpdateRole ¶
func (UnimplementedRoleAPIServer) UpdateRole(context.Context, *UpdateRoleRequest) (*UpdateRoleResponse, error)
type UnsafeRoleAPIServer ¶
type UnsafeRoleAPIServer interface {
// contains filtered or unexported methods
}
UnsafeRoleAPIServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RoleAPIServer will result in compilation errors.
type UpdateRoleRequest ¶
type UpdateRoleRequest struct { Role *Role `protobuf:"bytes,1,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) 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 { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*UpdateRoleResponse) Descriptor
deprecated
func (*UpdateRoleResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRoleResponse.ProtoReflect.Descriptor instead.
func (*UpdateRoleResponse) GetId ¶
func (x *UpdateRoleResponse) GetId() string
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