Documentation ¶
Overview ¶
Package protobuf is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterOrganizationHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterOrganizationHandlerClient(ctx context.Context, mux *runtime.ServeMux, client OrganizationClient) error
- func RegisterOrganizationHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterOrganizationHandlerServer(ctx context.Context, mux *runtime.ServeMux, server OrganizationServer) error
- func RegisterOrganizationServer(s grpc.ServiceRegistrar, srv OrganizationServer)
- func RegisterPermissionHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterPermissionHandlerClient(ctx context.Context, mux *runtime.ServeMux, client PermissionClient) error
- func RegisterPermissionHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterPermissionHandlerServer(ctx context.Context, mux *runtime.ServeMux, server PermissionServer) error
- func RegisterPermissionServer(s grpc.ServiceRegistrar, srv PermissionServer)
- func RegisterResourceServer(s grpc.ServiceRegistrar, srv ResourceServer)
- func RegisterRoleHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterRoleHandlerClient(ctx context.Context, mux *runtime.ServeMux, client RoleClient) error
- func RegisterRoleHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterRoleHandlerServer(ctx context.Context, mux *runtime.ServeMux, server RoleServer) error
- func RegisterRoleServer(s grpc.ServiceRegistrar, srv RoleServer)
- func RegisterUserHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterUserHandlerClient(ctx context.Context, mux *runtime.ServeMux, client UserClient) error
- func RegisterUserHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterUserHandlerServer(ctx context.Context, mux *runtime.ServeMux, server UserServer) error
- func RegisterUserServer(s grpc.ServiceRegistrar, srv UserServer)
- type AuthzRequest
- func (*AuthzRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AuthzRequest) GetMethod() string
- func (x *AuthzRequest) GetOrganizationName() string
- func (x *AuthzRequest) GetUri() string
- func (x *AuthzRequest) GetUserKey() string
- func (*AuthzRequest) ProtoMessage()
- func (x *AuthzRequest) ProtoReflect() protoreflect.Message
- func (x *AuthzRequest) Reset()
- func (x *AuthzRequest) String() string
- func (m *AuthzRequest) Validate() error
- type AuthzRequestValidationError
- func (e AuthzRequestValidationError) Cause() error
- func (e AuthzRequestValidationError) Error() string
- func (e AuthzRequestValidationError) ErrorName() string
- func (e AuthzRequestValidationError) Field() string
- func (e AuthzRequestValidationError) Key() bool
- func (e AuthzRequestValidationError) Reason() string
- type OrganizationClient
- type OrganizationEntities
- func (*OrganizationEntities) Descriptor() ([]byte, []int)deprecated
- func (x *OrganizationEntities) GetOrganizations() []*OrganizationEntity
- func (*OrganizationEntities) ProtoMessage()
- func (x *OrganizationEntities) ProtoReflect() protoreflect.Message
- func (x *OrganizationEntities) Reset()
- func (x *OrganizationEntities) String() string
- func (m *OrganizationEntities) Validate() error
- type OrganizationEntitiesValidationError
- func (e OrganizationEntitiesValidationError) Cause() error
- func (e OrganizationEntitiesValidationError) Error() string
- func (e OrganizationEntitiesValidationError) ErrorName() string
- func (e OrganizationEntitiesValidationError) Field() string
- func (e OrganizationEntitiesValidationError) Key() bool
- func (e OrganizationEntitiesValidationError) Reason() string
- type OrganizationEntity
- func (*OrganizationEntity) Descriptor() ([]byte, []int)deprecated
- func (x *OrganizationEntity) GetDescription() string
- func (x *OrganizationEntity) GetId() string
- func (x *OrganizationEntity) GetName() string
- func (x *OrganizationEntity) GetUsers() []*UserEntity
- func (*OrganizationEntity) ProtoMessage()
- func (x *OrganizationEntity) ProtoReflect() protoreflect.Message
- func (x *OrganizationEntity) Reset()
- func (x *OrganizationEntity) String() string
- func (m *OrganizationEntity) Validate() error
- type OrganizationEntityValidationError
- func (e OrganizationEntityValidationError) Cause() error
- func (e OrganizationEntityValidationError) Error() string
- func (e OrganizationEntityValidationError) ErrorName() string
- func (e OrganizationEntityValidationError) Field() string
- func (e OrganizationEntityValidationError) Key() bool
- func (e OrganizationEntityValidationError) Reason() string
- type OrganizationKey
- func (*OrganizationKey) Descriptor() ([]byte, []int)deprecated
- func (x *OrganizationKey) GetId() string
- func (*OrganizationKey) ProtoMessage()
- func (x *OrganizationKey) ProtoReflect() protoreflect.Message
- func (x *OrganizationKey) Reset()
- func (x *OrganizationKey) String() string
- func (m *OrganizationKey) Validate() error
- type OrganizationKeyValidationError
- func (e OrganizationKeyValidationError) Cause() error
- func (e OrganizationKeyValidationError) Error() string
- func (e OrganizationKeyValidationError) ErrorName() string
- func (e OrganizationKeyValidationError) Field() string
- func (e OrganizationKeyValidationError) Key() bool
- func (e OrganizationKeyValidationError) Reason() string
- type OrganizationServer
- type OrganizationUpdateEntity
- func (*OrganizationUpdateEntity) Descriptor() ([]byte, []int)deprecated
- func (x *OrganizationUpdateEntity) GetDescription() string
- func (x *OrganizationUpdateEntity) GetId() string
- func (x *OrganizationUpdateEntity) GetName() string
- func (*OrganizationUpdateEntity) ProtoMessage()
- func (x *OrganizationUpdateEntity) ProtoReflect() protoreflect.Message
- func (x *OrganizationUpdateEntity) Reset()
- func (x *OrganizationUpdateEntity) String() string
- func (m *OrganizationUpdateEntity) Validate() error
- type OrganizationUpdateEntityValidationError
- func (e OrganizationUpdateEntityValidationError) Cause() error
- func (e OrganizationUpdateEntityValidationError) Error() string
- func (e OrganizationUpdateEntityValidationError) ErrorName() string
- func (e OrganizationUpdateEntityValidationError) Field() string
- func (e OrganizationUpdateEntityValidationError) Key() bool
- func (e OrganizationUpdateEntityValidationError) Reason() string
- type OrganizationUser
- func (*OrganizationUser) Descriptor() ([]byte, []int)deprecated
- func (x *OrganizationUser) GetOrganizationDescription() string
- func (x *OrganizationUser) GetOrganizationId() string
- func (x *OrganizationUser) GetOrganizationName() string
- func (x *OrganizationUser) GetUserKey() string
- func (*OrganizationUser) ProtoMessage()
- func (x *OrganizationUser) ProtoReflect() protoreflect.Message
- func (x *OrganizationUser) Reset()
- func (x *OrganizationUser) String() string
- func (m *OrganizationUser) Validate() error
- type OrganizationUserValidationError
- func (e OrganizationUserValidationError) Cause() error
- func (e OrganizationUserValidationError) Error() string
- func (e OrganizationUserValidationError) ErrorName() string
- func (e OrganizationUserValidationError) Field() string
- func (e OrganizationUserValidationError) Key() bool
- func (e OrganizationUserValidationError) Reason() string
- type PermissionCheckRequest
- func (*PermissionCheckRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PermissionCheckRequest) GetOrganizationName() string
- func (x *PermissionCheckRequest) GetPermissionNames() []string
- func (x *PermissionCheckRequest) GetUserKey() string
- func (*PermissionCheckRequest) ProtoMessage()
- func (x *PermissionCheckRequest) ProtoReflect() protoreflect.Message
- func (x *PermissionCheckRequest) Reset()
- func (x *PermissionCheckRequest) String() string
- func (m *PermissionCheckRequest) Validate() error
- type PermissionCheckRequestValidationError
- func (e PermissionCheckRequestValidationError) Cause() error
- func (e PermissionCheckRequestValidationError) Error() string
- func (e PermissionCheckRequestValidationError) ErrorName() string
- func (e PermissionCheckRequestValidationError) Field() string
- func (e PermissionCheckRequestValidationError) Key() bool
- func (e PermissionCheckRequestValidationError) Reason() string
- type PermissionCheckResult
- func (*PermissionCheckResult) Descriptor() ([]byte, []int)deprecated
- func (x *PermissionCheckResult) GetMessage() string
- func (x *PermissionCheckResult) GetResult() bool
- func (*PermissionCheckResult) ProtoMessage()
- func (x *PermissionCheckResult) ProtoReflect() protoreflect.Message
- func (x *PermissionCheckResult) Reset()
- func (x *PermissionCheckResult) String() string
- func (m *PermissionCheckResult) Validate() error
- type PermissionCheckResultValidationError
- func (e PermissionCheckResultValidationError) Cause() error
- func (e PermissionCheckResultValidationError) Error() string
- func (e PermissionCheckResultValidationError) ErrorName() string
- func (e PermissionCheckResultValidationError) Field() string
- func (e PermissionCheckResultValidationError) Key() bool
- func (e PermissionCheckResultValidationError) Reason() string
- type PermissionClient
- type PermissionEntities
- func (*PermissionEntities) Descriptor() ([]byte, []int)deprecated
- func (x *PermissionEntities) GetPermissions() []*PermissionEntity
- func (*PermissionEntities) ProtoMessage()
- func (x *PermissionEntities) ProtoReflect() protoreflect.Message
- func (x *PermissionEntities) Reset()
- func (x *PermissionEntities) String() string
- func (m *PermissionEntities) Validate() error
- type PermissionEntitiesValidationError
- func (e PermissionEntitiesValidationError) Cause() error
- func (e PermissionEntitiesValidationError) Error() string
- func (e PermissionEntitiesValidationError) ErrorName() string
- func (e PermissionEntitiesValidationError) Field() string
- func (e PermissionEntitiesValidationError) Key() bool
- func (e PermissionEntitiesValidationError) Reason() string
- type PermissionEntity
- func (*PermissionEntity) Descriptor() ([]byte, []int)deprecated
- func (x *PermissionEntity) GetDescription() string
- func (x *PermissionEntity) GetId() string
- func (x *PermissionEntity) GetName() string
- func (*PermissionEntity) ProtoMessage()
- func (x *PermissionEntity) ProtoReflect() protoreflect.Message
- func (x *PermissionEntity) Reset()
- func (x *PermissionEntity) String() string
- func (m *PermissionEntity) Validate() error
- type PermissionEntityValidationError
- func (e PermissionEntityValidationError) Cause() error
- func (e PermissionEntityValidationError) Error() string
- func (e PermissionEntityValidationError) ErrorName() string
- func (e PermissionEntityValidationError) Field() string
- func (e PermissionEntityValidationError) Key() bool
- func (e PermissionEntityValidationError) Reason() string
- type PermissionKey
- func (*PermissionKey) Descriptor() ([]byte, []int)deprecated
- func (x *PermissionKey) GetId() string
- func (*PermissionKey) ProtoMessage()
- func (x *PermissionKey) ProtoReflect() protoreflect.Message
- func (x *PermissionKey) Reset()
- func (x *PermissionKey) String() string
- func (m *PermissionKey) Validate() error
- type PermissionKeyValidationError
- func (e PermissionKeyValidationError) Cause() error
- func (e PermissionKeyValidationError) Error() string
- func (e PermissionKeyValidationError) ErrorName() string
- func (e PermissionKeyValidationError) Field() string
- func (e PermissionKeyValidationError) Key() bool
- func (e PermissionKeyValidationError) Reason() string
- type PermissionServer
- type ResourceClient
- type ResourceServer
- type RoleClient
- type RoleEntities
- func (*RoleEntities) Descriptor() ([]byte, []int)deprecated
- func (x *RoleEntities) GetRoles() []*RoleEntity
- func (*RoleEntities) ProtoMessage()
- func (x *RoleEntities) ProtoReflect() protoreflect.Message
- func (x *RoleEntities) Reset()
- func (x *RoleEntities) String() string
- func (m *RoleEntities) Validate() error
- type RoleEntitiesValidationError
- func (e RoleEntitiesValidationError) Cause() error
- func (e RoleEntitiesValidationError) Error() string
- func (e RoleEntitiesValidationError) ErrorName() string
- func (e RoleEntitiesValidationError) Field() string
- func (e RoleEntitiesValidationError) Key() bool
- func (e RoleEntitiesValidationError) Reason() string
- type RoleEntity
- func (*RoleEntity) Descriptor() ([]byte, []int)deprecated
- func (x *RoleEntity) GetDescription() string
- func (x *RoleEntity) GetId() string
- func (x *RoleEntity) GetName() string
- func (x *RoleEntity) GetOrganizationUsers() []*OrganizationUser
- func (x *RoleEntity) GetPermissions() []*PermissionEntity
- func (*RoleEntity) ProtoMessage()
- func (x *RoleEntity) ProtoReflect() protoreflect.Message
- func (x *RoleEntity) Reset()
- func (x *RoleEntity) String() string
- func (m *RoleEntity) Validate() error
- type RoleEntityValidationError
- type RoleKey
- type RoleKeyValidationError
- type RoleReleationPermission
- func (*RoleReleationPermission) Descriptor() ([]byte, []int)deprecated
- func (x *RoleReleationPermission) GetId() string
- func (x *RoleReleationPermission) GetPermissionId() string
- func (*RoleReleationPermission) ProtoMessage()
- func (x *RoleReleationPermission) ProtoReflect() protoreflect.Message
- func (x *RoleReleationPermission) Reset()
- func (x *RoleReleationPermission) String() string
- func (m *RoleReleationPermission) Validate() error
- type RoleReleationPermissionValidationError
- func (e RoleReleationPermissionValidationError) Cause() error
- func (e RoleReleationPermissionValidationError) Error() string
- func (e RoleReleationPermissionValidationError) ErrorName() string
- func (e RoleReleationPermissionValidationError) Field() string
- func (e RoleReleationPermissionValidationError) Key() bool
- func (e RoleReleationPermissionValidationError) Reason() string
- type RoleReleationPermissions
- func (*RoleReleationPermissions) Descriptor() ([]byte, []int)deprecated
- func (x *RoleReleationPermissions) GetId() string
- func (x *RoleReleationPermissions) GetPermissions() []*PermissionKey
- func (*RoleReleationPermissions) ProtoMessage()
- func (x *RoleReleationPermissions) ProtoReflect() protoreflect.Message
- func (x *RoleReleationPermissions) Reset()
- func (x *RoleReleationPermissions) String() string
- func (m *RoleReleationPermissions) Validate() error
- type RoleReleationPermissionsValidationError
- func (e RoleReleationPermissionsValidationError) Cause() error
- func (e RoleReleationPermissionsValidationError) Error() string
- func (e RoleReleationPermissionsValidationError) ErrorName() string
- func (e RoleReleationPermissionsValidationError) Field() string
- func (e RoleReleationPermissionsValidationError) Key() bool
- func (e RoleReleationPermissionsValidationError) Reason() string
- type RoleServer
- type RoleUpdateEntity
- func (*RoleUpdateEntity) Descriptor() ([]byte, []int)deprecated
- func (x *RoleUpdateEntity) GetDescription() string
- func (x *RoleUpdateEntity) GetId() string
- func (x *RoleUpdateEntity) GetName() string
- func (*RoleUpdateEntity) ProtoMessage()
- func (x *RoleUpdateEntity) ProtoReflect() protoreflect.Message
- func (x *RoleUpdateEntity) Reset()
- func (x *RoleUpdateEntity) String() string
- func (m *RoleUpdateEntity) Validate() error
- type RoleUpdateEntityValidationError
- func (e RoleUpdateEntityValidationError) Cause() error
- func (e RoleUpdateEntityValidationError) Error() string
- func (e RoleUpdateEntityValidationError) ErrorName() string
- func (e RoleUpdateEntityValidationError) Field() string
- func (e RoleUpdateEntityValidationError) Key() bool
- func (e RoleUpdateEntityValidationError) Reason() string
- type SaveRequest
- func (*SaveRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SaveRequest) GetMethod() string
- func (x *SaveRequest) GetPermissions() []string
- func (x *SaveRequest) GetUri() string
- func (*SaveRequest) ProtoMessage()
- func (x *SaveRequest) ProtoReflect() protoreflect.Message
- func (x *SaveRequest) Reset()
- func (x *SaveRequest) String() string
- func (m *SaveRequest) Validate() error
- type SaveRequestValidationError
- func (e SaveRequestValidationError) Cause() error
- func (e SaveRequestValidationError) Error() string
- func (e SaveRequestValidationError) ErrorName() string
- func (e SaveRequestValidationError) Field() string
- func (e SaveRequestValidationError) Key() bool
- func (e SaveRequestValidationError) Reason() string
- type UnimplementedOrganizationServer
- func (UnimplementedOrganizationServer) Create(context.Context, *OrganizationEntity) (*OrganizationEntity, error)
- func (UnimplementedOrganizationServer) Delete(context.Context, *OrganizationKey) (*emptypb.Empty, error)
- func (UnimplementedOrganizationServer) FindAll(context.Context, *emptypb.Empty) (*OrganizationEntities, error)
- func (UnimplementedOrganizationServer) FindById(context.Context, *OrganizationKey) (*OrganizationEntity, error)
- func (UnimplementedOrganizationServer) Update(context.Context, *OrganizationUpdateEntity) (*emptypb.Empty, error)
- type UnimplementedPermissionServer
- func (UnimplementedPermissionServer) Check(context.Context, *PermissionCheckRequest) (*PermissionCheckResult, error)
- func (UnimplementedPermissionServer) Create(context.Context, *PermissionEntities) (*PermissionEntities, error)
- func (UnimplementedPermissionServer) Delete(context.Context, *PermissionKey) (*emptypb.Empty, error)
- func (UnimplementedPermissionServer) FindAll(context.Context, *emptypb.Empty) (*PermissionEntities, error)
- func (UnimplementedPermissionServer) FindById(context.Context, *PermissionKey) (*PermissionEntity, error)
- func (UnimplementedPermissionServer) Update(context.Context, *PermissionEntity) (*emptypb.Empty, error)
- type UnimplementedResourceServer
- type UnimplementedRoleServer
- func (UnimplementedRoleServer) AddPermissions(context.Context, *RoleReleationPermissions) (*emptypb.Empty, error)
- func (UnimplementedRoleServer) Create(context.Context, *RoleEntities) (*RoleEntities, error)
- func (UnimplementedRoleServer) Delete(context.Context, *RoleKey) (*emptypb.Empty, error)
- func (UnimplementedRoleServer) DeletePermission(context.Context, *RoleReleationPermission) (*emptypb.Empty, error)
- func (UnimplementedRoleServer) DeletePermissions(context.Context, *RoleReleationPermissions) (*emptypb.Empty, error)
- func (UnimplementedRoleServer) FindAll(context.Context, *emptypb.Empty) (*RoleEntities, error)
- func (UnimplementedRoleServer) FindById(context.Context, *RoleKey) (*RoleEntity, error)
- func (UnimplementedRoleServer) GetPermissions(context.Context, *RoleKey) (*PermissionEntities, error)
- func (UnimplementedRoleServer) Update(context.Context, *RoleUpdateEntity) (*emptypb.Empty, error)
- type UnimplementedUserServer
- func (UnimplementedUserServer) AddRoles(context.Context, *UserRole) (*emptypb.Empty, error)
- func (UnimplementedUserServer) Create(context.Context, *UserEntity) (*emptypb.Empty, error)
- func (UnimplementedUserServer) Delete(context.Context, *UserKey) (*emptypb.Empty, error)
- func (UnimplementedUserServer) DeleteRole(context.Context, *UserRoleDelete) (*emptypb.Empty, error)
- func (UnimplementedUserServer) DeleteRoles(context.Context, *UserRole) (*emptypb.Empty, error)
- func (UnimplementedUserServer) FindByKey(context.Context, *UserKey) (*UserEntity, error)
- func (UnimplementedUserServer) FindByOrganizationNameAndUserKey(context.Context, *UserKeyByName) (*UserEntity, error)
- type UnsafeOrganizationServer
- type UnsafePermissionServer
- type UnsafeResourceServer
- type UnsafeRoleServer
- type UnsafeUserServer
- type UserClient
- type UserEntity
- func (*UserEntity) Descriptor() ([]byte, []int)deprecated
- func (x *UserEntity) GetKey() string
- func (x *UserEntity) GetOrganizationId() string
- func (x *UserEntity) GetPermissions() []*PermissionEntity
- func (x *UserEntity) GetRoles() []*RoleEntity
- func (*UserEntity) ProtoMessage()
- func (x *UserEntity) ProtoReflect() protoreflect.Message
- func (x *UserEntity) Reset()
- func (x *UserEntity) String() string
- func (m *UserEntity) Validate() error
- type UserEntityValidationError
- type UserKey
- func (*UserKey) Descriptor() ([]byte, []int)deprecated
- func (x *UserKey) GetKey() string
- func (x *UserKey) GetOrganizationId() string
- func (*UserKey) ProtoMessage()
- func (x *UserKey) ProtoReflect() protoreflect.Message
- func (x *UserKey) Reset()
- func (x *UserKey) String() string
- func (m *UserKey) Validate() error
- type UserKeyByName
- func (*UserKeyByName) Descriptor() ([]byte, []int)deprecated
- func (x *UserKeyByName) GetKey() string
- func (x *UserKeyByName) GetOrganizationName() string
- func (*UserKeyByName) ProtoMessage()
- func (x *UserKeyByName) ProtoReflect() protoreflect.Message
- func (x *UserKeyByName) Reset()
- func (x *UserKeyByName) String() string
- func (m *UserKeyByName) Validate() error
- type UserKeyByNameValidationError
- func (e UserKeyByNameValidationError) Cause() error
- func (e UserKeyByNameValidationError) Error() string
- func (e UserKeyByNameValidationError) ErrorName() string
- func (e UserKeyByNameValidationError) Field() string
- func (e UserKeyByNameValidationError) Key() bool
- func (e UserKeyByNameValidationError) Reason() string
- type UserKeyValidationError
- type UserRole
- func (*UserRole) Descriptor() ([]byte, []int)deprecated
- func (x *UserRole) GetKey() string
- func (x *UserRole) GetOrganizationId() string
- func (x *UserRole) GetRoles() []*RoleKey
- func (*UserRole) ProtoMessage()
- func (x *UserRole) ProtoReflect() protoreflect.Message
- func (x *UserRole) Reset()
- func (x *UserRole) String() string
- func (m *UserRole) Validate() error
- type UserRoleDelete
- func (*UserRoleDelete) Descriptor() ([]byte, []int)deprecated
- func (x *UserRoleDelete) GetKey() string
- func (x *UserRoleDelete) GetOrganizationId() string
- func (x *UserRoleDelete) GetRoleId() string
- func (*UserRoleDelete) ProtoMessage()
- func (x *UserRoleDelete) ProtoReflect() protoreflect.Message
- func (x *UserRoleDelete) Reset()
- func (x *UserRoleDelete) String() string
- func (m *UserRoleDelete) Validate() error
- type UserRoleDeleteValidationError
- func (e UserRoleDeleteValidationError) Cause() error
- func (e UserRoleDeleteValidationError) Error() string
- func (e UserRoleDeleteValidationError) ErrorName() string
- func (e UserRoleDeleteValidationError) Field() string
- func (e UserRoleDeleteValidationError) Key() bool
- func (e UserRoleDeleteValidationError) Reason() string
- type UserRoleValidationError
- type UserServer
Constants ¶
This section is empty.
Variables ¶
var File_api_rbac_proto protoreflect.FileDescriptor
var Organization_ServiceDesc = grpc.ServiceDesc{ ServiceName: "ncs.rbns.Organization", HandlerType: (*OrganizationServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "FindById", Handler: _Organization_FindById_Handler, }, { MethodName: "Update", Handler: _Organization_Update_Handler, }, { MethodName: "Delete", Handler: _Organization_Delete_Handler, }, { MethodName: "Create", Handler: _Organization_Create_Handler, }, { MethodName: "FindAll", Handler: _Organization_FindAll_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api-rbac.proto", }
Organization_ServiceDesc is the grpc.ServiceDesc for Organization service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Permission_ServiceDesc = grpc.ServiceDesc{ ServiceName: "ncs.rbns.Permission", HandlerType: (*PermissionServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Check", Handler: _Permission_Check_Handler, }, { MethodName: "FindById", Handler: _Permission_FindById_Handler, }, { MethodName: "Update", Handler: _Permission_Update_Handler, }, { MethodName: "Delete", Handler: _Permission_Delete_Handler, }, { MethodName: "Create", Handler: _Permission_Create_Handler, }, { MethodName: "FindAll", Handler: _Permission_FindAll_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api-rbac.proto", }
Permission_ServiceDesc is the grpc.ServiceDesc for Permission service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Resource_ServiceDesc = grpc.ServiceDesc{ ServiceName: "ncs.rbns.Resource", HandlerType: (*ResourceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Save", Handler: _Resource_Save_Handler, }, { MethodName: "Authz", Handler: _Resource_Authz_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api-rbac.proto", }
Resource_ServiceDesc is the grpc.ServiceDesc for Resource service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Role_ServiceDesc = grpc.ServiceDesc{ ServiceName: "ncs.rbns.Role", HandlerType: (*RoleServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "DeletePermission", Handler: _Role_DeletePermission_Handler, }, { MethodName: "GetPermissions", Handler: _Role_GetPermissions_Handler, }, { MethodName: "AddPermissions", Handler: _Role_AddPermissions_Handler, }, { MethodName: "DeletePermissions", Handler: _Role_DeletePermissions_Handler, }, { MethodName: "FindById", Handler: _Role_FindById_Handler, }, { MethodName: "Update", Handler: _Role_Update_Handler, }, { MethodName: "Delete", Handler: _Role_Delete_Handler, }, { MethodName: "Create", Handler: _Role_Create_Handler, }, { MethodName: "FindAll", Handler: _Role_FindAll_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api-rbac.proto", }
Role_ServiceDesc is the grpc.ServiceDesc for Role service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Swagger []byte
var User_ServiceDesc = grpc.ServiceDesc{ ServiceName: "ncs.rbns.User", HandlerType: (*UserServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "FindByKey", Handler: _User_FindByKey_Handler, }, { MethodName: "FindByOrganizationNameAndUserKey", Handler: _User_FindByOrganizationNameAndUserKey_Handler, }, { MethodName: "Delete", Handler: _User_Delete_Handler, }, { MethodName: "DeleteRole", Handler: _User_DeleteRole_Handler, }, { MethodName: "AddRoles", Handler: _User_AddRoles_Handler, }, { MethodName: "DeleteRoles", Handler: _User_DeleteRoles_Handler, }, { MethodName: "Create", Handler: _User_Create_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api-rbac.proto", }
User_ServiceDesc is the grpc.ServiceDesc for User service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterOrganizationHandler ¶
func RegisterOrganizationHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterOrganizationHandler registers the http handlers for service Organization to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterOrganizationHandlerClient ¶
func RegisterOrganizationHandlerClient(ctx context.Context, mux *runtime.ServeMux, client OrganizationClient) error
RegisterOrganizationHandlerClient registers the http handlers for service Organization to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "OrganizationClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "OrganizationClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "OrganizationClient" to call the correct interceptors.
func RegisterOrganizationHandlerFromEndpoint ¶
func RegisterOrganizationHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterOrganizationHandlerFromEndpoint is same as RegisterOrganizationHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterOrganizationHandlerServer ¶
func RegisterOrganizationHandlerServer(ctx context.Context, mux *runtime.ServeMux, server OrganizationServer) error
RegisterOrganizationHandlerServer registers the http handlers for service Organization to "mux". UnaryRPC :call OrganizationServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterOrganizationHandlerFromEndpoint instead.
func RegisterOrganizationServer ¶
func RegisterOrganizationServer(s grpc.ServiceRegistrar, srv OrganizationServer)
func RegisterPermissionHandler ¶
func RegisterPermissionHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterPermissionHandler registers the http handlers for service Permission to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterPermissionHandlerClient ¶
func RegisterPermissionHandlerClient(ctx context.Context, mux *runtime.ServeMux, client PermissionClient) error
RegisterPermissionHandlerClient registers the http handlers for service Permission to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "PermissionClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "PermissionClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "PermissionClient" to call the correct interceptors.
func RegisterPermissionHandlerFromEndpoint ¶
func RegisterPermissionHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterPermissionHandlerFromEndpoint is same as RegisterPermissionHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterPermissionHandlerServer ¶
func RegisterPermissionHandlerServer(ctx context.Context, mux *runtime.ServeMux, server PermissionServer) error
RegisterPermissionHandlerServer registers the http handlers for service Permission to "mux". UnaryRPC :call PermissionServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterPermissionHandlerFromEndpoint instead.
func RegisterPermissionServer ¶
func RegisterPermissionServer(s grpc.ServiceRegistrar, srv PermissionServer)
func RegisterResourceServer ¶
func RegisterResourceServer(s grpc.ServiceRegistrar, srv ResourceServer)
func RegisterRoleHandler ¶
RegisterRoleHandler registers the http handlers for service Role to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterRoleHandlerClient ¶
RegisterRoleHandlerClient registers the http handlers for service Role to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "RoleClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "RoleClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "RoleClient" to call the correct interceptors.
func RegisterRoleHandlerFromEndpoint ¶
func RegisterRoleHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterRoleHandlerFromEndpoint is same as RegisterRoleHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterRoleHandlerServer ¶
RegisterRoleHandlerServer registers the http handlers for service Role to "mux". UnaryRPC :call RoleServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterRoleHandlerFromEndpoint instead.
func RegisterRoleServer ¶
func RegisterRoleServer(s grpc.ServiceRegistrar, srv RoleServer)
func RegisterUserHandler ¶
RegisterUserHandler registers the http handlers for service User to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterUserHandlerClient ¶
RegisterUserHandlerClient registers the http handlers for service User to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "UserClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "UserClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "UserClient" to call the correct interceptors.
func RegisterUserHandlerFromEndpoint ¶
func RegisterUserHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterUserHandlerFromEndpoint is same as RegisterUserHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterUserHandlerServer ¶
RegisterUserHandlerServer registers the http handlers for service User to "mux". UnaryRPC :call UserServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterUserHandlerFromEndpoint instead.
func RegisterUserServer ¶
func RegisterUserServer(s grpc.ServiceRegistrar, srv UserServer)
Types ¶
type AuthzRequest ¶
type AuthzRequest struct { Method string `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"` Uri string `protobuf:"bytes,2,opt,name=uri,proto3" json:"uri,omitempty"` OrganizationName string `protobuf:"bytes,3,opt,name=organizationName,proto3" json:"organizationName,omitempty"` UserKey string `protobuf:"bytes,4,opt,name=userKey,proto3" json:"userKey,omitempty"` // contains filtered or unexported fields }
func (*AuthzRequest) Descriptor
deprecated
func (*AuthzRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuthzRequest.ProtoReflect.Descriptor instead.
func (*AuthzRequest) GetMethod ¶
func (x *AuthzRequest) GetMethod() string
func (*AuthzRequest) GetOrganizationName ¶
func (x *AuthzRequest) GetOrganizationName() string
func (*AuthzRequest) GetUri ¶
func (x *AuthzRequest) GetUri() string
func (*AuthzRequest) GetUserKey ¶
func (x *AuthzRequest) GetUserKey() string
func (*AuthzRequest) ProtoMessage ¶
func (*AuthzRequest) ProtoMessage()
func (*AuthzRequest) ProtoReflect ¶
func (x *AuthzRequest) ProtoReflect() protoreflect.Message
func (*AuthzRequest) Reset ¶
func (x *AuthzRequest) Reset()
func (*AuthzRequest) String ¶
func (x *AuthzRequest) String() string
func (*AuthzRequest) Validate ¶
func (m *AuthzRequest) Validate() error
Validate checks the field values on AuthzRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type AuthzRequestValidationError ¶
type AuthzRequestValidationError struct {
// contains filtered or unexported fields
}
AuthzRequestValidationError is the validation error returned by AuthzRequest.Validate if the designated constraints aren't met.
func (AuthzRequestValidationError) Cause ¶
func (e AuthzRequestValidationError) Cause() error
Cause function returns cause value.
func (AuthzRequestValidationError) Error ¶
func (e AuthzRequestValidationError) Error() string
Error satisfies the builtin error interface
func (AuthzRequestValidationError) ErrorName ¶
func (e AuthzRequestValidationError) ErrorName() string
ErrorName returns error name.
func (AuthzRequestValidationError) Field ¶
func (e AuthzRequestValidationError) Field() string
Field function returns field value.
func (AuthzRequestValidationError) Key ¶
func (e AuthzRequestValidationError) Key() bool
Key function returns key value.
func (AuthzRequestValidationError) Reason ¶
func (e AuthzRequestValidationError) Reason() string
Reason function returns reason value.
type OrganizationClient ¶
type OrganizationClient interface { // FindById is application id and organization id FindById(ctx context.Context, in *OrganizationKey, opts ...grpc.CallOption) (*OrganizationEntity, error) // Update is organization entity update Update(ctx context.Context, in *OrganizationUpdateEntity, opts ...grpc.CallOption) (*emptypb.Empty, error) // Delete is organization entity delete Delete(ctx context.Context, in *OrganizationKey, opts ...grpc.CallOption) (*emptypb.Empty, error) // Create is create orgnization Create(ctx context.Context, in *OrganizationEntity, opts ...grpc.CallOption) (*OrganizationEntity, error) // FindAll is application is return organizations FindAll(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*OrganizationEntities, error) }
OrganizationClient is the client API for Organization 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 NewOrganizationClient ¶
func NewOrganizationClient(cc grpc.ClientConnInterface) OrganizationClient
type OrganizationEntities ¶
type OrganizationEntities struct { Organizations []*OrganizationEntity `protobuf:"bytes,1,rep,name=organizations,proto3" json:"organizations,omitempty"` // contains filtered or unexported fields }
func (*OrganizationEntities) Descriptor
deprecated
func (*OrganizationEntities) Descriptor() ([]byte, []int)
Deprecated: Use OrganizationEntities.ProtoReflect.Descriptor instead.
func (*OrganizationEntities) GetOrganizations ¶
func (x *OrganizationEntities) GetOrganizations() []*OrganizationEntity
func (*OrganizationEntities) ProtoMessage ¶
func (*OrganizationEntities) ProtoMessage()
func (*OrganizationEntities) ProtoReflect ¶
func (x *OrganizationEntities) ProtoReflect() protoreflect.Message
func (*OrganizationEntities) Reset ¶
func (x *OrganizationEntities) Reset()
func (*OrganizationEntities) String ¶
func (x *OrganizationEntities) String() string
func (*OrganizationEntities) Validate ¶
func (m *OrganizationEntities) Validate() error
Validate checks the field values on OrganizationEntities with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type OrganizationEntitiesValidationError ¶
type OrganizationEntitiesValidationError struct {
// contains filtered or unexported fields
}
OrganizationEntitiesValidationError is the validation error returned by OrganizationEntities.Validate if the designated constraints aren't met.
func (OrganizationEntitiesValidationError) Cause ¶
func (e OrganizationEntitiesValidationError) Cause() error
Cause function returns cause value.
func (OrganizationEntitiesValidationError) Error ¶
func (e OrganizationEntitiesValidationError) Error() string
Error satisfies the builtin error interface
func (OrganizationEntitiesValidationError) ErrorName ¶
func (e OrganizationEntitiesValidationError) ErrorName() string
ErrorName returns error name.
func (OrganizationEntitiesValidationError) Field ¶
func (e OrganizationEntitiesValidationError) Field() string
Field function returns field value.
func (OrganizationEntitiesValidationError) Key ¶
func (e OrganizationEntitiesValidationError) Key() bool
Key function returns key value.
func (OrganizationEntitiesValidationError) Reason ¶
func (e OrganizationEntitiesValidationError) Reason() string
Reason function returns reason value.
type OrganizationEntity ¶
type OrganizationEntity struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` Users []*UserEntity `protobuf:"bytes,4,rep,name=users,proto3" json:"users,omitempty"` // contains filtered or unexported fields }
func (*OrganizationEntity) Descriptor
deprecated
func (*OrganizationEntity) Descriptor() ([]byte, []int)
Deprecated: Use OrganizationEntity.ProtoReflect.Descriptor instead.
func (*OrganizationEntity) GetDescription ¶
func (x *OrganizationEntity) GetDescription() string
func (*OrganizationEntity) GetId ¶
func (x *OrganizationEntity) GetId() string
func (*OrganizationEntity) GetName ¶
func (x *OrganizationEntity) GetName() string
func (*OrganizationEntity) GetUsers ¶
func (x *OrganizationEntity) GetUsers() []*UserEntity
func (*OrganizationEntity) ProtoMessage ¶
func (*OrganizationEntity) ProtoMessage()
func (*OrganizationEntity) ProtoReflect ¶
func (x *OrganizationEntity) ProtoReflect() protoreflect.Message
func (*OrganizationEntity) Reset ¶
func (x *OrganizationEntity) Reset()
func (*OrganizationEntity) String ¶
func (x *OrganizationEntity) String() string
func (*OrganizationEntity) Validate ¶
func (m *OrganizationEntity) Validate() error
Validate checks the field values on OrganizationEntity with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type OrganizationEntityValidationError ¶
type OrganizationEntityValidationError struct {
// contains filtered or unexported fields
}
OrganizationEntityValidationError is the validation error returned by OrganizationEntity.Validate if the designated constraints aren't met.
func (OrganizationEntityValidationError) Cause ¶
func (e OrganizationEntityValidationError) Cause() error
Cause function returns cause value.
func (OrganizationEntityValidationError) Error ¶
func (e OrganizationEntityValidationError) Error() string
Error satisfies the builtin error interface
func (OrganizationEntityValidationError) ErrorName ¶
func (e OrganizationEntityValidationError) ErrorName() string
ErrorName returns error name.
func (OrganizationEntityValidationError) Field ¶
func (e OrganizationEntityValidationError) Field() string
Field function returns field value.
func (OrganizationEntityValidationError) Key ¶
func (e OrganizationEntityValidationError) Key() bool
Key function returns key value.
func (OrganizationEntityValidationError) Reason ¶
func (e OrganizationEntityValidationError) Reason() string
Reason function returns reason value.
type OrganizationKey ¶
type OrganizationKey struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*OrganizationKey) Descriptor
deprecated
func (*OrganizationKey) Descriptor() ([]byte, []int)
Deprecated: Use OrganizationKey.ProtoReflect.Descriptor instead.
func (*OrganizationKey) GetId ¶
func (x *OrganizationKey) GetId() string
func (*OrganizationKey) ProtoMessage ¶
func (*OrganizationKey) ProtoMessage()
func (*OrganizationKey) ProtoReflect ¶
func (x *OrganizationKey) ProtoReflect() protoreflect.Message
func (*OrganizationKey) Reset ¶
func (x *OrganizationKey) Reset()
func (*OrganizationKey) String ¶
func (x *OrganizationKey) String() string
func (*OrganizationKey) Validate ¶
func (m *OrganizationKey) Validate() error
Validate checks the field values on OrganizationKey with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type OrganizationKeyValidationError ¶
type OrganizationKeyValidationError struct {
// contains filtered or unexported fields
}
OrganizationKeyValidationError is the validation error returned by OrganizationKey.Validate if the designated constraints aren't met.
func (OrganizationKeyValidationError) Cause ¶
func (e OrganizationKeyValidationError) Cause() error
Cause function returns cause value.
func (OrganizationKeyValidationError) Error ¶
func (e OrganizationKeyValidationError) Error() string
Error satisfies the builtin error interface
func (OrganizationKeyValidationError) ErrorName ¶
func (e OrganizationKeyValidationError) ErrorName() string
ErrorName returns error name.
func (OrganizationKeyValidationError) Field ¶
func (e OrganizationKeyValidationError) Field() string
Field function returns field value.
func (OrganizationKeyValidationError) Key ¶
func (e OrganizationKeyValidationError) Key() bool
Key function returns key value.
func (OrganizationKeyValidationError) Reason ¶
func (e OrganizationKeyValidationError) Reason() string
Reason function returns reason value.
type OrganizationServer ¶
type OrganizationServer interface { // FindById is application id and organization id FindById(context.Context, *OrganizationKey) (*OrganizationEntity, error) // Update is organization entity update Update(context.Context, *OrganizationUpdateEntity) (*emptypb.Empty, error) // Delete is organization entity delete Delete(context.Context, *OrganizationKey) (*emptypb.Empty, error) // Create is create orgnization Create(context.Context, *OrganizationEntity) (*OrganizationEntity, error) // FindAll is application is return organizations FindAll(context.Context, *emptypb.Empty) (*OrganizationEntities, error) // contains filtered or unexported methods }
OrganizationServer is the server API for Organization service. All implementations must embed UnimplementedOrganizationServer for forward compatibility
type OrganizationUpdateEntity ¶
type OrganizationUpdateEntity struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // contains filtered or unexported fields }
func (*OrganizationUpdateEntity) Descriptor
deprecated
func (*OrganizationUpdateEntity) Descriptor() ([]byte, []int)
Deprecated: Use OrganizationUpdateEntity.ProtoReflect.Descriptor instead.
func (*OrganizationUpdateEntity) GetDescription ¶
func (x *OrganizationUpdateEntity) GetDescription() string
func (*OrganizationUpdateEntity) GetId ¶
func (x *OrganizationUpdateEntity) GetId() string
func (*OrganizationUpdateEntity) GetName ¶
func (x *OrganizationUpdateEntity) GetName() string
func (*OrganizationUpdateEntity) ProtoMessage ¶
func (*OrganizationUpdateEntity) ProtoMessage()
func (*OrganizationUpdateEntity) ProtoReflect ¶
func (x *OrganizationUpdateEntity) ProtoReflect() protoreflect.Message
func (*OrganizationUpdateEntity) Reset ¶
func (x *OrganizationUpdateEntity) Reset()
func (*OrganizationUpdateEntity) String ¶
func (x *OrganizationUpdateEntity) String() string
func (*OrganizationUpdateEntity) Validate ¶
func (m *OrganizationUpdateEntity) Validate() error
Validate checks the field values on OrganizationUpdateEntity with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type OrganizationUpdateEntityValidationError ¶
type OrganizationUpdateEntityValidationError struct {
// contains filtered or unexported fields
}
OrganizationUpdateEntityValidationError is the validation error returned by OrganizationUpdateEntity.Validate if the designated constraints aren't met.
func (OrganizationUpdateEntityValidationError) Cause ¶
func (e OrganizationUpdateEntityValidationError) Cause() error
Cause function returns cause value.
func (OrganizationUpdateEntityValidationError) Error ¶
func (e OrganizationUpdateEntityValidationError) Error() string
Error satisfies the builtin error interface
func (OrganizationUpdateEntityValidationError) ErrorName ¶
func (e OrganizationUpdateEntityValidationError) ErrorName() string
ErrorName returns error name.
func (OrganizationUpdateEntityValidationError) Field ¶
func (e OrganizationUpdateEntityValidationError) Field() string
Field function returns field value.
func (OrganizationUpdateEntityValidationError) Key ¶
func (e OrganizationUpdateEntityValidationError) Key() bool
Key function returns key value.
func (OrganizationUpdateEntityValidationError) Reason ¶
func (e OrganizationUpdateEntityValidationError) Reason() string
Reason function returns reason value.
type OrganizationUser ¶
type OrganizationUser struct { UserKey string `protobuf:"bytes,1,opt,name=userKey,proto3" json:"userKey,omitempty"` OrganizationId string `protobuf:"bytes,2,opt,name=organizationId,proto3" json:"organizationId,omitempty"` OrganizationName string `protobuf:"bytes,3,opt,name=organizationName,proto3" json:"organizationName,omitempty"` OrganizationDescription string `protobuf:"bytes,4,opt,name=organizationDescription,proto3" json:"organizationDescription,omitempty"` // contains filtered or unexported fields }
func (*OrganizationUser) Descriptor
deprecated
func (*OrganizationUser) Descriptor() ([]byte, []int)
Deprecated: Use OrganizationUser.ProtoReflect.Descriptor instead.
func (*OrganizationUser) GetOrganizationDescription ¶
func (x *OrganizationUser) GetOrganizationDescription() string
func (*OrganizationUser) GetOrganizationId ¶
func (x *OrganizationUser) GetOrganizationId() string
func (*OrganizationUser) GetOrganizationName ¶
func (x *OrganizationUser) GetOrganizationName() string
func (*OrganizationUser) GetUserKey ¶
func (x *OrganizationUser) GetUserKey() string
func (*OrganizationUser) ProtoMessage ¶
func (*OrganizationUser) ProtoMessage()
func (*OrganizationUser) ProtoReflect ¶
func (x *OrganizationUser) ProtoReflect() protoreflect.Message
func (*OrganizationUser) Reset ¶
func (x *OrganizationUser) Reset()
func (*OrganizationUser) String ¶
func (x *OrganizationUser) String() string
func (*OrganizationUser) Validate ¶
func (m *OrganizationUser) Validate() error
Validate checks the field values on OrganizationUser with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type OrganizationUserValidationError ¶
type OrganizationUserValidationError struct {
// contains filtered or unexported fields
}
OrganizationUserValidationError is the validation error returned by OrganizationUser.Validate if the designated constraints aren't met.
func (OrganizationUserValidationError) Cause ¶
func (e OrganizationUserValidationError) Cause() error
Cause function returns cause value.
func (OrganizationUserValidationError) Error ¶
func (e OrganizationUserValidationError) Error() string
Error satisfies the builtin error interface
func (OrganizationUserValidationError) ErrorName ¶
func (e OrganizationUserValidationError) ErrorName() string
ErrorName returns error name.
func (OrganizationUserValidationError) Field ¶
func (e OrganizationUserValidationError) Field() string
Field function returns field value.
func (OrganizationUserValidationError) Key ¶
func (e OrganizationUserValidationError) Key() bool
Key function returns key value.
func (OrganizationUserValidationError) Reason ¶
func (e OrganizationUserValidationError) Reason() string
Reason function returns reason value.
type PermissionCheckRequest ¶
type PermissionCheckRequest struct { UserKey string `protobuf:"bytes,1,opt,name=userKey,proto3" json:"userKey,omitempty"` OrganizationName string `protobuf:"bytes,2,opt,name=organizationName,proto3" json:"organizationName,omitempty"` PermissionNames []string `protobuf:"bytes,3,rep,name=permissionNames,proto3" json:"permissionNames,omitempty"` // contains filtered or unexported fields }
func (*PermissionCheckRequest) Descriptor
deprecated
func (*PermissionCheckRequest) Descriptor() ([]byte, []int)
Deprecated: Use PermissionCheckRequest.ProtoReflect.Descriptor instead.
func (*PermissionCheckRequest) GetOrganizationName ¶
func (x *PermissionCheckRequest) GetOrganizationName() string
func (*PermissionCheckRequest) GetPermissionNames ¶
func (x *PermissionCheckRequest) GetPermissionNames() []string
func (*PermissionCheckRequest) GetUserKey ¶
func (x *PermissionCheckRequest) GetUserKey() string
func (*PermissionCheckRequest) ProtoMessage ¶
func (*PermissionCheckRequest) ProtoMessage()
func (*PermissionCheckRequest) ProtoReflect ¶
func (x *PermissionCheckRequest) ProtoReflect() protoreflect.Message
func (*PermissionCheckRequest) Reset ¶
func (x *PermissionCheckRequest) Reset()
func (*PermissionCheckRequest) String ¶
func (x *PermissionCheckRequest) String() string
func (*PermissionCheckRequest) Validate ¶
func (m *PermissionCheckRequest) Validate() error
Validate checks the field values on PermissionCheckRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type PermissionCheckRequestValidationError ¶
type PermissionCheckRequestValidationError struct {
// contains filtered or unexported fields
}
PermissionCheckRequestValidationError is the validation error returned by PermissionCheckRequest.Validate if the designated constraints aren't met.
func (PermissionCheckRequestValidationError) Cause ¶
func (e PermissionCheckRequestValidationError) Cause() error
Cause function returns cause value.
func (PermissionCheckRequestValidationError) Error ¶
func (e PermissionCheckRequestValidationError) Error() string
Error satisfies the builtin error interface
func (PermissionCheckRequestValidationError) ErrorName ¶
func (e PermissionCheckRequestValidationError) ErrorName() string
ErrorName returns error name.
func (PermissionCheckRequestValidationError) Field ¶
func (e PermissionCheckRequestValidationError) Field() string
Field function returns field value.
func (PermissionCheckRequestValidationError) Key ¶
func (e PermissionCheckRequestValidationError) Key() bool
Key function returns key value.
func (PermissionCheckRequestValidationError) Reason ¶
func (e PermissionCheckRequestValidationError) Reason() string
Reason function returns reason value.
type PermissionCheckResult ¶
type PermissionCheckResult struct { Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*PermissionCheckResult) Descriptor
deprecated
func (*PermissionCheckResult) Descriptor() ([]byte, []int)
Deprecated: Use PermissionCheckResult.ProtoReflect.Descriptor instead.
func (*PermissionCheckResult) GetMessage ¶
func (x *PermissionCheckResult) GetMessage() string
func (*PermissionCheckResult) GetResult ¶
func (x *PermissionCheckResult) GetResult() bool
func (*PermissionCheckResult) ProtoMessage ¶
func (*PermissionCheckResult) ProtoMessage()
func (*PermissionCheckResult) ProtoReflect ¶
func (x *PermissionCheckResult) ProtoReflect() protoreflect.Message
func (*PermissionCheckResult) Reset ¶
func (x *PermissionCheckResult) Reset()
func (*PermissionCheckResult) String ¶
func (x *PermissionCheckResult) String() string
func (*PermissionCheckResult) Validate ¶
func (m *PermissionCheckResult) Validate() error
Validate checks the field values on PermissionCheckResult with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type PermissionCheckResultValidationError ¶
type PermissionCheckResultValidationError struct {
// contains filtered or unexported fields
}
PermissionCheckResultValidationError is the validation error returned by PermissionCheckResult.Validate if the designated constraints aren't met.
func (PermissionCheckResultValidationError) Cause ¶
func (e PermissionCheckResultValidationError) Cause() error
Cause function returns cause value.
func (PermissionCheckResultValidationError) Error ¶
func (e PermissionCheckResultValidationError) Error() string
Error satisfies the builtin error interface
func (PermissionCheckResultValidationError) ErrorName ¶
func (e PermissionCheckResultValidationError) ErrorName() string
ErrorName returns error name.
func (PermissionCheckResultValidationError) Field ¶
func (e PermissionCheckResultValidationError) Field() string
Field function returns field value.
func (PermissionCheckResultValidationError) Key ¶
func (e PermissionCheckResultValidationError) Key() bool
Key function returns key value.
func (PermissionCheckResultValidationError) Reason ¶
func (e PermissionCheckResultValidationError) Reason() string
Reason function returns reason value.
type PermissionClient ¶
type PermissionClient interface { // Check is resource check Check(ctx context.Context, in *PermissionCheckRequest, opts ...grpc.CallOption) (*PermissionCheckResult, error) // FindById is find by id FindById(ctx context.Context, in *PermissionKey, opts ...grpc.CallOption) (*PermissionEntity, error) // Update is permission entity update Update(ctx context.Context, in *PermissionEntity, opts ...grpc.CallOption) (*emptypb.Empty, error) // Delete is permission entity delete Delete(ctx context.Context, in *PermissionKey, opts ...grpc.CallOption) (*emptypb.Empty, error) // Create is create permission Create(ctx context.Context, in *PermissionEntities, opts ...grpc.CallOption) (*PermissionEntities, error) // FindAll is find by application id return permissions FindAll(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*PermissionEntities, error) }
PermissionClient is the client API for Permission 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 NewPermissionClient ¶
func NewPermissionClient(cc grpc.ClientConnInterface) PermissionClient
type PermissionEntities ¶
type PermissionEntities struct { Permissions []*PermissionEntity `protobuf:"bytes,1,rep,name=permissions,proto3" json:"permissions,omitempty"` // contains filtered or unexported fields }
func (*PermissionEntities) Descriptor
deprecated
func (*PermissionEntities) Descriptor() ([]byte, []int)
Deprecated: Use PermissionEntities.ProtoReflect.Descriptor instead.
func (*PermissionEntities) GetPermissions ¶
func (x *PermissionEntities) GetPermissions() []*PermissionEntity
func (*PermissionEntities) ProtoMessage ¶
func (*PermissionEntities) ProtoMessage()
func (*PermissionEntities) ProtoReflect ¶
func (x *PermissionEntities) ProtoReflect() protoreflect.Message
func (*PermissionEntities) Reset ¶
func (x *PermissionEntities) Reset()
func (*PermissionEntities) String ¶
func (x *PermissionEntities) String() string
func (*PermissionEntities) Validate ¶
func (m *PermissionEntities) Validate() error
Validate checks the field values on PermissionEntities with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type PermissionEntitiesValidationError ¶
type PermissionEntitiesValidationError struct {
// contains filtered or unexported fields
}
PermissionEntitiesValidationError is the validation error returned by PermissionEntities.Validate if the designated constraints aren't met.
func (PermissionEntitiesValidationError) Cause ¶
func (e PermissionEntitiesValidationError) Cause() error
Cause function returns cause value.
func (PermissionEntitiesValidationError) Error ¶
func (e PermissionEntitiesValidationError) Error() string
Error satisfies the builtin error interface
func (PermissionEntitiesValidationError) ErrorName ¶
func (e PermissionEntitiesValidationError) ErrorName() string
ErrorName returns error name.
func (PermissionEntitiesValidationError) Field ¶
func (e PermissionEntitiesValidationError) Field() string
Field function returns field value.
func (PermissionEntitiesValidationError) Key ¶
func (e PermissionEntitiesValidationError) Key() bool
Key function returns key value.
func (PermissionEntitiesValidationError) Reason ¶
func (e PermissionEntitiesValidationError) Reason() string
Reason function returns reason value.
type PermissionEntity ¶
type PermissionEntity struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // contains filtered or unexported fields }
func (*PermissionEntity) Descriptor
deprecated
func (*PermissionEntity) Descriptor() ([]byte, []int)
Deprecated: Use PermissionEntity.ProtoReflect.Descriptor instead.
func (*PermissionEntity) GetDescription ¶
func (x *PermissionEntity) GetDescription() string
func (*PermissionEntity) GetId ¶
func (x *PermissionEntity) GetId() string
func (*PermissionEntity) GetName ¶
func (x *PermissionEntity) GetName() string
func (*PermissionEntity) ProtoMessage ¶
func (*PermissionEntity) ProtoMessage()
func (*PermissionEntity) ProtoReflect ¶
func (x *PermissionEntity) ProtoReflect() protoreflect.Message
func (*PermissionEntity) Reset ¶
func (x *PermissionEntity) Reset()
func (*PermissionEntity) String ¶
func (x *PermissionEntity) String() string
func (*PermissionEntity) Validate ¶
func (m *PermissionEntity) Validate() error
Validate checks the field values on PermissionEntity with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type PermissionEntityValidationError ¶
type PermissionEntityValidationError struct {
// contains filtered or unexported fields
}
PermissionEntityValidationError is the validation error returned by PermissionEntity.Validate if the designated constraints aren't met.
func (PermissionEntityValidationError) Cause ¶
func (e PermissionEntityValidationError) Cause() error
Cause function returns cause value.
func (PermissionEntityValidationError) Error ¶
func (e PermissionEntityValidationError) Error() string
Error satisfies the builtin error interface
func (PermissionEntityValidationError) ErrorName ¶
func (e PermissionEntityValidationError) ErrorName() string
ErrorName returns error name.
func (PermissionEntityValidationError) Field ¶
func (e PermissionEntityValidationError) Field() string
Field function returns field value.
func (PermissionEntityValidationError) Key ¶
func (e PermissionEntityValidationError) Key() bool
Key function returns key value.
func (PermissionEntityValidationError) Reason ¶
func (e PermissionEntityValidationError) Reason() string
Reason function returns reason value.
type PermissionKey ¶
type PermissionKey struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*PermissionKey) Descriptor
deprecated
func (*PermissionKey) Descriptor() ([]byte, []int)
Deprecated: Use PermissionKey.ProtoReflect.Descriptor instead.
func (*PermissionKey) GetId ¶
func (x *PermissionKey) GetId() string
func (*PermissionKey) ProtoMessage ¶
func (*PermissionKey) ProtoMessage()
func (*PermissionKey) ProtoReflect ¶
func (x *PermissionKey) ProtoReflect() protoreflect.Message
func (*PermissionKey) Reset ¶
func (x *PermissionKey) Reset()
func (*PermissionKey) String ¶
func (x *PermissionKey) String() string
func (*PermissionKey) Validate ¶
func (m *PermissionKey) Validate() error
Validate checks the field values on PermissionKey with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type PermissionKeyValidationError ¶
type PermissionKeyValidationError struct {
// contains filtered or unexported fields
}
PermissionKeyValidationError is the validation error returned by PermissionKey.Validate if the designated constraints aren't met.
func (PermissionKeyValidationError) Cause ¶
func (e PermissionKeyValidationError) Cause() error
Cause function returns cause value.
func (PermissionKeyValidationError) Error ¶
func (e PermissionKeyValidationError) Error() string
Error satisfies the builtin error interface
func (PermissionKeyValidationError) ErrorName ¶
func (e PermissionKeyValidationError) ErrorName() string
ErrorName returns error name.
func (PermissionKeyValidationError) Field ¶
func (e PermissionKeyValidationError) Field() string
Field function returns field value.
func (PermissionKeyValidationError) Key ¶
func (e PermissionKeyValidationError) Key() bool
Key function returns key value.
func (PermissionKeyValidationError) Reason ¶
func (e PermissionKeyValidationError) Reason() string
Reason function returns reason value.
type PermissionServer ¶
type PermissionServer interface { // Check is resource check Check(context.Context, *PermissionCheckRequest) (*PermissionCheckResult, error) // FindById is find by id FindById(context.Context, *PermissionKey) (*PermissionEntity, error) // Update is permission entity update Update(context.Context, *PermissionEntity) (*emptypb.Empty, error) // Delete is permission entity delete Delete(context.Context, *PermissionKey) (*emptypb.Empty, error) // Create is create permission Create(context.Context, *PermissionEntities) (*PermissionEntities, error) // FindAll is find by application id return permissions FindAll(context.Context, *emptypb.Empty) (*PermissionEntities, error) // contains filtered or unexported methods }
PermissionServer is the server API for Permission service. All implementations must embed UnimplementedPermissionServer for forward compatibility
type ResourceClient ¶
type ResourceClient interface { Save(ctx context.Context, in *SaveRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) Authz(ctx context.Context, in *AuthzRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) }
ResourceClient is the client API for Resource 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 NewResourceClient ¶
func NewResourceClient(cc grpc.ClientConnInterface) ResourceClient
type ResourceServer ¶
type ResourceServer interface { Save(context.Context, *SaveRequest) (*emptypb.Empty, error) Authz(context.Context, *AuthzRequest) (*emptypb.Empty, error) // contains filtered or unexported methods }
ResourceServer is the server API for Resource service. All implementations must embed UnimplementedResourceServer for forward compatibility
type RoleClient ¶
type RoleClient interface { // DeletePermission is delete permission to the role DeletePermission(ctx context.Context, in *RoleReleationPermission, opts ...grpc.CallOption) (*emptypb.Empty, error) // GetPermissions is get permission to the role GetPermissions(ctx context.Context, in *RoleKey, opts ...grpc.CallOption) (*PermissionEntities, error) // AddPermissions is add permission to the role AddPermissions(ctx context.Context, in *RoleReleationPermissions, opts ...grpc.CallOption) (*emptypb.Empty, error) // DeletePermissions is delete permission to the role DeletePermissions(ctx context.Context, in *RoleReleationPermissions, opts ...grpc.CallOption) (*emptypb.Empty, error) // FindById is find by id FindById(ctx context.Context, in *RoleKey, opts ...grpc.CallOption) (*RoleEntity, error) // Update is role entity update Update(ctx context.Context, in *RoleUpdateEntity, opts ...grpc.CallOption) (*emptypb.Empty, error) // Delete is role entity delete Delete(ctx context.Context, in *RoleKey, opts ...grpc.CallOption) (*emptypb.Empty, error) // RoleCreate is create role Create(ctx context.Context, in *RoleEntities, opts ...grpc.CallOption) (*RoleEntities, error) // FindAll is find roles FindAll(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*RoleEntities, error) }
RoleClient is the client API for Role 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 NewRoleClient ¶
func NewRoleClient(cc grpc.ClientConnInterface) RoleClient
type RoleEntities ¶
type RoleEntities struct { Roles []*RoleEntity `protobuf:"bytes,1,rep,name=roles,proto3" json:"roles,omitempty"` // contains filtered or unexported fields }
func (*RoleEntities) Descriptor
deprecated
func (*RoleEntities) Descriptor() ([]byte, []int)
Deprecated: Use RoleEntities.ProtoReflect.Descriptor instead.
func (*RoleEntities) GetRoles ¶
func (x *RoleEntities) GetRoles() []*RoleEntity
func (*RoleEntities) ProtoMessage ¶
func (*RoleEntities) ProtoMessage()
func (*RoleEntities) ProtoReflect ¶
func (x *RoleEntities) ProtoReflect() protoreflect.Message
func (*RoleEntities) Reset ¶
func (x *RoleEntities) Reset()
func (*RoleEntities) String ¶
func (x *RoleEntities) String() string
func (*RoleEntities) Validate ¶
func (m *RoleEntities) Validate() error
Validate checks the field values on RoleEntities with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type RoleEntitiesValidationError ¶
type RoleEntitiesValidationError struct {
// contains filtered or unexported fields
}
RoleEntitiesValidationError is the validation error returned by RoleEntities.Validate if the designated constraints aren't met.
func (RoleEntitiesValidationError) Cause ¶
func (e RoleEntitiesValidationError) Cause() error
Cause function returns cause value.
func (RoleEntitiesValidationError) Error ¶
func (e RoleEntitiesValidationError) Error() string
Error satisfies the builtin error interface
func (RoleEntitiesValidationError) ErrorName ¶
func (e RoleEntitiesValidationError) ErrorName() string
ErrorName returns error name.
func (RoleEntitiesValidationError) Field ¶
func (e RoleEntitiesValidationError) Field() string
Field function returns field value.
func (RoleEntitiesValidationError) Key ¶
func (e RoleEntitiesValidationError) Key() bool
Key function returns key value.
func (RoleEntitiesValidationError) Reason ¶
func (e RoleEntitiesValidationError) Reason() string
Reason function returns reason value.
type RoleEntity ¶
type RoleEntity struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` Permissions []*PermissionEntity `protobuf:"bytes,4,rep,name=permissions,proto3" json:"permissions,omitempty"` OrganizationUsers []*OrganizationUser `protobuf:"bytes,5,rep,name=organizationUsers,proto3" json:"organizationUsers,omitempty"` // contains filtered or unexported fields }
func (*RoleEntity) Descriptor
deprecated
func (*RoleEntity) Descriptor() ([]byte, []int)
Deprecated: Use RoleEntity.ProtoReflect.Descriptor instead.
func (*RoleEntity) GetDescription ¶
func (x *RoleEntity) GetDescription() string
func (*RoleEntity) GetId ¶
func (x *RoleEntity) GetId() string
func (*RoleEntity) GetName ¶
func (x *RoleEntity) GetName() string
func (*RoleEntity) GetOrganizationUsers ¶
func (x *RoleEntity) GetOrganizationUsers() []*OrganizationUser
func (*RoleEntity) GetPermissions ¶
func (x *RoleEntity) GetPermissions() []*PermissionEntity
func (*RoleEntity) ProtoMessage ¶
func (*RoleEntity) ProtoMessage()
func (*RoleEntity) ProtoReflect ¶
func (x *RoleEntity) ProtoReflect() protoreflect.Message
func (*RoleEntity) Reset ¶
func (x *RoleEntity) Reset()
func (*RoleEntity) String ¶
func (x *RoleEntity) String() string
func (*RoleEntity) Validate ¶
func (m *RoleEntity) Validate() error
Validate checks the field values on RoleEntity with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type RoleEntityValidationError ¶
type RoleEntityValidationError struct {
// contains filtered or unexported fields
}
RoleEntityValidationError is the validation error returned by RoleEntity.Validate if the designated constraints aren't met.
func (RoleEntityValidationError) Cause ¶
func (e RoleEntityValidationError) Cause() error
Cause function returns cause value.
func (RoleEntityValidationError) Error ¶
func (e RoleEntityValidationError) Error() string
Error satisfies the builtin error interface
func (RoleEntityValidationError) ErrorName ¶
func (e RoleEntityValidationError) ErrorName() string
ErrorName returns error name.
func (RoleEntityValidationError) Field ¶
func (e RoleEntityValidationError) Field() string
Field function returns field value.
func (RoleEntityValidationError) Key ¶
func (e RoleEntityValidationError) Key() bool
Key function returns key value.
func (RoleEntityValidationError) Reason ¶
func (e RoleEntityValidationError) Reason() string
Reason function returns reason value.
type RoleKey ¶
type RoleKey struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*RoleKey) Descriptor
deprecated
func (*RoleKey) ProtoMessage ¶
func (*RoleKey) ProtoMessage()
func (*RoleKey) ProtoReflect ¶
func (x *RoleKey) ProtoReflect() protoreflect.Message
type RoleKeyValidationError ¶
type RoleKeyValidationError struct {
// contains filtered or unexported fields
}
RoleKeyValidationError is the validation error returned by RoleKey.Validate if the designated constraints aren't met.
func (RoleKeyValidationError) Cause ¶
func (e RoleKeyValidationError) Cause() error
Cause function returns cause value.
func (RoleKeyValidationError) Error ¶
func (e RoleKeyValidationError) Error() string
Error satisfies the builtin error interface
func (RoleKeyValidationError) ErrorName ¶
func (e RoleKeyValidationError) ErrorName() string
ErrorName returns error name.
func (RoleKeyValidationError) Field ¶
func (e RoleKeyValidationError) Field() string
Field function returns field value.
func (RoleKeyValidationError) Key ¶
func (e RoleKeyValidationError) Key() bool
Key function returns key value.
func (RoleKeyValidationError) Reason ¶
func (e RoleKeyValidationError) Reason() string
Reason function returns reason value.
type RoleReleationPermission ¶
type RoleReleationPermission struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` PermissionId string `protobuf:"bytes,2,opt,name=permissionId,proto3" json:"permissionId,omitempty"` // contains filtered or unexported fields }
func (*RoleReleationPermission) Descriptor
deprecated
func (*RoleReleationPermission) Descriptor() ([]byte, []int)
Deprecated: Use RoleReleationPermission.ProtoReflect.Descriptor instead.
func (*RoleReleationPermission) GetId ¶
func (x *RoleReleationPermission) GetId() string
func (*RoleReleationPermission) GetPermissionId ¶
func (x *RoleReleationPermission) GetPermissionId() string
func (*RoleReleationPermission) ProtoMessage ¶
func (*RoleReleationPermission) ProtoMessage()
func (*RoleReleationPermission) ProtoReflect ¶
func (x *RoleReleationPermission) ProtoReflect() protoreflect.Message
func (*RoleReleationPermission) Reset ¶
func (x *RoleReleationPermission) Reset()
func (*RoleReleationPermission) String ¶
func (x *RoleReleationPermission) String() string
func (*RoleReleationPermission) Validate ¶
func (m *RoleReleationPermission) Validate() error
Validate checks the field values on RoleReleationPermission with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type RoleReleationPermissionValidationError ¶
type RoleReleationPermissionValidationError struct {
// contains filtered or unexported fields
}
RoleReleationPermissionValidationError is the validation error returned by RoleReleationPermission.Validate if the designated constraints aren't met.
func (RoleReleationPermissionValidationError) Cause ¶
func (e RoleReleationPermissionValidationError) Cause() error
Cause function returns cause value.
func (RoleReleationPermissionValidationError) Error ¶
func (e RoleReleationPermissionValidationError) Error() string
Error satisfies the builtin error interface
func (RoleReleationPermissionValidationError) ErrorName ¶
func (e RoleReleationPermissionValidationError) ErrorName() string
ErrorName returns error name.
func (RoleReleationPermissionValidationError) Field ¶
func (e RoleReleationPermissionValidationError) Field() string
Field function returns field value.
func (RoleReleationPermissionValidationError) Key ¶
func (e RoleReleationPermissionValidationError) Key() bool
Key function returns key value.
func (RoleReleationPermissionValidationError) Reason ¶
func (e RoleReleationPermissionValidationError) Reason() string
Reason function returns reason value.
type RoleReleationPermissions ¶
type RoleReleationPermissions struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Permissions []*PermissionKey `protobuf:"bytes,2,rep,name=permissions,proto3" json:"permissions,omitempty"` // contains filtered or unexported fields }
func (*RoleReleationPermissions) Descriptor
deprecated
func (*RoleReleationPermissions) Descriptor() ([]byte, []int)
Deprecated: Use RoleReleationPermissions.ProtoReflect.Descriptor instead.
func (*RoleReleationPermissions) GetId ¶
func (x *RoleReleationPermissions) GetId() string
func (*RoleReleationPermissions) GetPermissions ¶
func (x *RoleReleationPermissions) GetPermissions() []*PermissionKey
func (*RoleReleationPermissions) ProtoMessage ¶
func (*RoleReleationPermissions) ProtoMessage()
func (*RoleReleationPermissions) ProtoReflect ¶
func (x *RoleReleationPermissions) ProtoReflect() protoreflect.Message
func (*RoleReleationPermissions) Reset ¶
func (x *RoleReleationPermissions) Reset()
func (*RoleReleationPermissions) String ¶
func (x *RoleReleationPermissions) String() string
func (*RoleReleationPermissions) Validate ¶
func (m *RoleReleationPermissions) Validate() error
Validate checks the field values on RoleReleationPermissions with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type RoleReleationPermissionsValidationError ¶
type RoleReleationPermissionsValidationError struct {
// contains filtered or unexported fields
}
RoleReleationPermissionsValidationError is the validation error returned by RoleReleationPermissions.Validate if the designated constraints aren't met.
func (RoleReleationPermissionsValidationError) Cause ¶
func (e RoleReleationPermissionsValidationError) Cause() error
Cause function returns cause value.
func (RoleReleationPermissionsValidationError) Error ¶
func (e RoleReleationPermissionsValidationError) Error() string
Error satisfies the builtin error interface
func (RoleReleationPermissionsValidationError) ErrorName ¶
func (e RoleReleationPermissionsValidationError) ErrorName() string
ErrorName returns error name.
func (RoleReleationPermissionsValidationError) Field ¶
func (e RoleReleationPermissionsValidationError) Field() string
Field function returns field value.
func (RoleReleationPermissionsValidationError) Key ¶
func (e RoleReleationPermissionsValidationError) Key() bool
Key function returns key value.
func (RoleReleationPermissionsValidationError) Reason ¶
func (e RoleReleationPermissionsValidationError) Reason() string
Reason function returns reason value.
type RoleServer ¶
type RoleServer interface { // DeletePermission is delete permission to the role DeletePermission(context.Context, *RoleReleationPermission) (*emptypb.Empty, error) // GetPermissions is get permission to the role GetPermissions(context.Context, *RoleKey) (*PermissionEntities, error) // AddPermissions is add permission to the role AddPermissions(context.Context, *RoleReleationPermissions) (*emptypb.Empty, error) // DeletePermissions is delete permission to the role DeletePermissions(context.Context, *RoleReleationPermissions) (*emptypb.Empty, error) // FindById is find by id FindById(context.Context, *RoleKey) (*RoleEntity, error) // Update is role entity update Update(context.Context, *RoleUpdateEntity) (*emptypb.Empty, error) // Delete is role entity delete Delete(context.Context, *RoleKey) (*emptypb.Empty, error) // RoleCreate is create role Create(context.Context, *RoleEntities) (*RoleEntities, error) // FindAll is find roles FindAll(context.Context, *emptypb.Empty) (*RoleEntities, error) // contains filtered or unexported methods }
RoleServer is the server API for Role service. All implementations must embed UnimplementedRoleServer for forward compatibility
type RoleUpdateEntity ¶
type RoleUpdateEntity struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // contains filtered or unexported fields }
func (*RoleUpdateEntity) Descriptor
deprecated
func (*RoleUpdateEntity) Descriptor() ([]byte, []int)
Deprecated: Use RoleUpdateEntity.ProtoReflect.Descriptor instead.
func (*RoleUpdateEntity) GetDescription ¶
func (x *RoleUpdateEntity) GetDescription() string
func (*RoleUpdateEntity) GetId ¶
func (x *RoleUpdateEntity) GetId() string
func (*RoleUpdateEntity) GetName ¶
func (x *RoleUpdateEntity) GetName() string
func (*RoleUpdateEntity) ProtoMessage ¶
func (*RoleUpdateEntity) ProtoMessage()
func (*RoleUpdateEntity) ProtoReflect ¶
func (x *RoleUpdateEntity) ProtoReflect() protoreflect.Message
func (*RoleUpdateEntity) Reset ¶
func (x *RoleUpdateEntity) Reset()
func (*RoleUpdateEntity) String ¶
func (x *RoleUpdateEntity) String() string
func (*RoleUpdateEntity) Validate ¶
func (m *RoleUpdateEntity) Validate() error
Validate checks the field values on RoleUpdateEntity with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type RoleUpdateEntityValidationError ¶
type RoleUpdateEntityValidationError struct {
// contains filtered or unexported fields
}
RoleUpdateEntityValidationError is the validation error returned by RoleUpdateEntity.Validate if the designated constraints aren't met.
func (RoleUpdateEntityValidationError) Cause ¶
func (e RoleUpdateEntityValidationError) Cause() error
Cause function returns cause value.
func (RoleUpdateEntityValidationError) Error ¶
func (e RoleUpdateEntityValidationError) Error() string
Error satisfies the builtin error interface
func (RoleUpdateEntityValidationError) ErrorName ¶
func (e RoleUpdateEntityValidationError) ErrorName() string
ErrorName returns error name.
func (RoleUpdateEntityValidationError) Field ¶
func (e RoleUpdateEntityValidationError) Field() string
Field function returns field value.
func (RoleUpdateEntityValidationError) Key ¶
func (e RoleUpdateEntityValidationError) Key() bool
Key function returns key value.
func (RoleUpdateEntityValidationError) Reason ¶
func (e RoleUpdateEntityValidationError) Reason() string
Reason function returns reason value.
type SaveRequest ¶
type SaveRequest struct { Method string `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"` Uri string `protobuf:"bytes,2,opt,name=uri,proto3" json:"uri,omitempty"` Permissions []string `protobuf:"bytes,3,rep,name=permissions,proto3" json:"permissions,omitempty"` // contains filtered or unexported fields }
func (*SaveRequest) Descriptor
deprecated
func (*SaveRequest) Descriptor() ([]byte, []int)
Deprecated: Use SaveRequest.ProtoReflect.Descriptor instead.
func (*SaveRequest) GetMethod ¶
func (x *SaveRequest) GetMethod() string
func (*SaveRequest) GetPermissions ¶
func (x *SaveRequest) GetPermissions() []string
func (*SaveRequest) GetUri ¶
func (x *SaveRequest) GetUri() string
func (*SaveRequest) ProtoMessage ¶
func (*SaveRequest) ProtoMessage()
func (*SaveRequest) ProtoReflect ¶
func (x *SaveRequest) ProtoReflect() protoreflect.Message
func (*SaveRequest) Reset ¶
func (x *SaveRequest) Reset()
func (*SaveRequest) String ¶
func (x *SaveRequest) String() string
func (*SaveRequest) Validate ¶
func (m *SaveRequest) Validate() error
Validate checks the field values on SaveRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type SaveRequestValidationError ¶
type SaveRequestValidationError struct {
// contains filtered or unexported fields
}
SaveRequestValidationError is the validation error returned by SaveRequest.Validate if the designated constraints aren't met.
func (SaveRequestValidationError) Cause ¶
func (e SaveRequestValidationError) Cause() error
Cause function returns cause value.
func (SaveRequestValidationError) Error ¶
func (e SaveRequestValidationError) Error() string
Error satisfies the builtin error interface
func (SaveRequestValidationError) ErrorName ¶
func (e SaveRequestValidationError) ErrorName() string
ErrorName returns error name.
func (SaveRequestValidationError) Field ¶
func (e SaveRequestValidationError) Field() string
Field function returns field value.
func (SaveRequestValidationError) Key ¶
func (e SaveRequestValidationError) Key() bool
Key function returns key value.
func (SaveRequestValidationError) Reason ¶
func (e SaveRequestValidationError) Reason() string
Reason function returns reason value.
type UnimplementedOrganizationServer ¶
type UnimplementedOrganizationServer struct { }
UnimplementedOrganizationServer must be embedded to have forward compatible implementations.
func (UnimplementedOrganizationServer) Create ¶
func (UnimplementedOrganizationServer) Create(context.Context, *OrganizationEntity) (*OrganizationEntity, error)
func (UnimplementedOrganizationServer) Delete ¶
func (UnimplementedOrganizationServer) Delete(context.Context, *OrganizationKey) (*emptypb.Empty, error)
func (UnimplementedOrganizationServer) FindAll ¶
func (UnimplementedOrganizationServer) FindAll(context.Context, *emptypb.Empty) (*OrganizationEntities, error)
func (UnimplementedOrganizationServer) FindById ¶
func (UnimplementedOrganizationServer) FindById(context.Context, *OrganizationKey) (*OrganizationEntity, error)
func (UnimplementedOrganizationServer) Update ¶
func (UnimplementedOrganizationServer) Update(context.Context, *OrganizationUpdateEntity) (*emptypb.Empty, error)
type UnimplementedPermissionServer ¶
type UnimplementedPermissionServer struct { }
UnimplementedPermissionServer must be embedded to have forward compatible implementations.
func (UnimplementedPermissionServer) Check ¶
func (UnimplementedPermissionServer) Check(context.Context, *PermissionCheckRequest) (*PermissionCheckResult, error)
func (UnimplementedPermissionServer) Create ¶
func (UnimplementedPermissionServer) Create(context.Context, *PermissionEntities) (*PermissionEntities, error)
func (UnimplementedPermissionServer) Delete ¶
func (UnimplementedPermissionServer) Delete(context.Context, *PermissionKey) (*emptypb.Empty, error)
func (UnimplementedPermissionServer) FindAll ¶
func (UnimplementedPermissionServer) FindAll(context.Context, *emptypb.Empty) (*PermissionEntities, error)
func (UnimplementedPermissionServer) FindById ¶
func (UnimplementedPermissionServer) FindById(context.Context, *PermissionKey) (*PermissionEntity, error)
func (UnimplementedPermissionServer) Update ¶
func (UnimplementedPermissionServer) Update(context.Context, *PermissionEntity) (*emptypb.Empty, error)
type UnimplementedResourceServer ¶
type UnimplementedResourceServer struct { }
UnimplementedResourceServer must be embedded to have forward compatible implementations.
func (UnimplementedResourceServer) Authz ¶
func (UnimplementedResourceServer) Authz(context.Context, *AuthzRequest) (*emptypb.Empty, error)
func (UnimplementedResourceServer) Save ¶
func (UnimplementedResourceServer) Save(context.Context, *SaveRequest) (*emptypb.Empty, error)
type UnimplementedRoleServer ¶
type UnimplementedRoleServer struct { }
UnimplementedRoleServer must be embedded to have forward compatible implementations.
func (UnimplementedRoleServer) AddPermissions ¶
func (UnimplementedRoleServer) AddPermissions(context.Context, *RoleReleationPermissions) (*emptypb.Empty, error)
func (UnimplementedRoleServer) Create ¶
func (UnimplementedRoleServer) Create(context.Context, *RoleEntities) (*RoleEntities, error)
func (UnimplementedRoleServer) DeletePermission ¶
func (UnimplementedRoleServer) DeletePermission(context.Context, *RoleReleationPermission) (*emptypb.Empty, error)
func (UnimplementedRoleServer) DeletePermissions ¶
func (UnimplementedRoleServer) DeletePermissions(context.Context, *RoleReleationPermissions) (*emptypb.Empty, error)
func (UnimplementedRoleServer) FindAll ¶
func (UnimplementedRoleServer) FindAll(context.Context, *emptypb.Empty) (*RoleEntities, error)
func (UnimplementedRoleServer) FindById ¶
func (UnimplementedRoleServer) FindById(context.Context, *RoleKey) (*RoleEntity, error)
func (UnimplementedRoleServer) GetPermissions ¶
func (UnimplementedRoleServer) GetPermissions(context.Context, *RoleKey) (*PermissionEntities, error)
func (UnimplementedRoleServer) Update ¶
func (UnimplementedRoleServer) Update(context.Context, *RoleUpdateEntity) (*emptypb.Empty, error)
type UnimplementedUserServer ¶
type UnimplementedUserServer struct { }
UnimplementedUserServer must be embedded to have forward compatible implementations.
func (UnimplementedUserServer) Create ¶
func (UnimplementedUserServer) Create(context.Context, *UserEntity) (*emptypb.Empty, error)
func (UnimplementedUserServer) DeleteRole ¶
func (UnimplementedUserServer) DeleteRole(context.Context, *UserRoleDelete) (*emptypb.Empty, error)
func (UnimplementedUserServer) DeleteRoles ¶
func (UnimplementedUserServer) FindByKey ¶
func (UnimplementedUserServer) FindByKey(context.Context, *UserKey) (*UserEntity, error)
func (UnimplementedUserServer) FindByOrganizationNameAndUserKey ¶
func (UnimplementedUserServer) FindByOrganizationNameAndUserKey(context.Context, *UserKeyByName) (*UserEntity, error)
type UnsafeOrganizationServer ¶
type UnsafeOrganizationServer interface {
// contains filtered or unexported methods
}
UnsafeOrganizationServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to OrganizationServer will result in compilation errors.
type UnsafePermissionServer ¶
type UnsafePermissionServer interface {
// contains filtered or unexported methods
}
UnsafePermissionServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PermissionServer will result in compilation errors.
type UnsafeResourceServer ¶
type UnsafeResourceServer interface {
// contains filtered or unexported methods
}
UnsafeResourceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ResourceServer will result in compilation errors.
type UnsafeRoleServer ¶
type UnsafeRoleServer interface {
// contains filtered or unexported methods
}
UnsafeRoleServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RoleServer will result in compilation errors.
type UnsafeUserServer ¶
type UnsafeUserServer interface {
// contains filtered or unexported methods
}
UnsafeUserServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserServer will result in compilation errors.
type UserClient ¶
type UserClient interface { // FindByKey is find organization id and user key FindByKey(ctx context.Context, in *UserKey, opts ...grpc.CallOption) (*UserEntity, error) // FindByOrganizationNameAndUserKey is find organization id and user key FindByOrganizationNameAndUserKey(ctx context.Context, in *UserKeyByName, opts ...grpc.CallOption) (*UserEntity, error) // Delete is delete user Delete(ctx context.Context, in *UserKey, opts ...grpc.CallOption) (*emptypb.Empty, error) // DeleteRole is delete role to user DeleteRole(ctx context.Context, in *UserRoleDelete, opts ...grpc.CallOption) (*emptypb.Empty, error) // AddRoles is add role to user AddRoles(ctx context.Context, in *UserRole, opts ...grpc.CallOption) (*emptypb.Empty, error) // DeleteRoles is delete role to user DeleteRoles(ctx context.Context, in *UserRole, opts ...grpc.CallOption) (*emptypb.Empty, error) // Create is create user Create(ctx context.Context, in *UserEntity, opts ...grpc.CallOption) (*emptypb.Empty, error) }
UserClient is the client API for User 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 NewUserClient ¶
func NewUserClient(cc grpc.ClientConnInterface) UserClient
type UserEntity ¶
type UserEntity struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` OrganizationId string `protobuf:"bytes,2,opt,name=organizationId,proto3" json:"organizationId,omitempty"` Roles []*RoleEntity `protobuf:"bytes,3,rep,name=roles,proto3" json:"roles,omitempty"` Permissions []*PermissionEntity `protobuf:"bytes,4,rep,name=permissions,proto3" json:"permissions,omitempty"` // contains filtered or unexported fields }
func (*UserEntity) Descriptor
deprecated
func (*UserEntity) Descriptor() ([]byte, []int)
Deprecated: Use UserEntity.ProtoReflect.Descriptor instead.
func (*UserEntity) GetKey ¶
func (x *UserEntity) GetKey() string
func (*UserEntity) GetOrganizationId ¶
func (x *UserEntity) GetOrganizationId() string
func (*UserEntity) GetPermissions ¶
func (x *UserEntity) GetPermissions() []*PermissionEntity
func (*UserEntity) GetRoles ¶
func (x *UserEntity) GetRoles() []*RoleEntity
func (*UserEntity) ProtoMessage ¶
func (*UserEntity) ProtoMessage()
func (*UserEntity) ProtoReflect ¶
func (x *UserEntity) ProtoReflect() protoreflect.Message
func (*UserEntity) Reset ¶
func (x *UserEntity) Reset()
func (*UserEntity) String ¶
func (x *UserEntity) String() string
func (*UserEntity) Validate ¶
func (m *UserEntity) Validate() error
Validate checks the field values on UserEntity with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type UserEntityValidationError ¶
type UserEntityValidationError struct {
// contains filtered or unexported fields
}
UserEntityValidationError is the validation error returned by UserEntity.Validate if the designated constraints aren't met.
func (UserEntityValidationError) Cause ¶
func (e UserEntityValidationError) Cause() error
Cause function returns cause value.
func (UserEntityValidationError) Error ¶
func (e UserEntityValidationError) Error() string
Error satisfies the builtin error interface
func (UserEntityValidationError) ErrorName ¶
func (e UserEntityValidationError) ErrorName() string
ErrorName returns error name.
func (UserEntityValidationError) Field ¶
func (e UserEntityValidationError) Field() string
Field function returns field value.
func (UserEntityValidationError) Key ¶
func (e UserEntityValidationError) Key() bool
Key function returns key value.
func (UserEntityValidationError) Reason ¶
func (e UserEntityValidationError) Reason() string
Reason function returns reason value.
type UserKey ¶
type UserKey struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` OrganizationId string `protobuf:"bytes,2,opt,name=organizationId,proto3" json:"organizationId,omitempty"` // contains filtered or unexported fields }
func (*UserKey) Descriptor
deprecated
func (*UserKey) GetOrganizationId ¶
func (*UserKey) ProtoMessage ¶
func (*UserKey) ProtoMessage()
func (*UserKey) ProtoReflect ¶
func (x *UserKey) ProtoReflect() protoreflect.Message
type UserKeyByName ¶
type UserKeyByName struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` OrganizationName string `protobuf:"bytes,2,opt,name=organizationName,proto3" json:"organizationName,omitempty"` // contains filtered or unexported fields }
func (*UserKeyByName) Descriptor
deprecated
func (*UserKeyByName) Descriptor() ([]byte, []int)
Deprecated: Use UserKeyByName.ProtoReflect.Descriptor instead.
func (*UserKeyByName) GetKey ¶
func (x *UserKeyByName) GetKey() string
func (*UserKeyByName) GetOrganizationName ¶
func (x *UserKeyByName) GetOrganizationName() string
func (*UserKeyByName) ProtoMessage ¶
func (*UserKeyByName) ProtoMessage()
func (*UserKeyByName) ProtoReflect ¶
func (x *UserKeyByName) ProtoReflect() protoreflect.Message
func (*UserKeyByName) Reset ¶
func (x *UserKeyByName) Reset()
func (*UserKeyByName) String ¶
func (x *UserKeyByName) String() string
func (*UserKeyByName) Validate ¶
func (m *UserKeyByName) Validate() error
Validate checks the field values on UserKeyByName with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type UserKeyByNameValidationError ¶
type UserKeyByNameValidationError struct {
// contains filtered or unexported fields
}
UserKeyByNameValidationError is the validation error returned by UserKeyByName.Validate if the designated constraints aren't met.
func (UserKeyByNameValidationError) Cause ¶
func (e UserKeyByNameValidationError) Cause() error
Cause function returns cause value.
func (UserKeyByNameValidationError) Error ¶
func (e UserKeyByNameValidationError) Error() string
Error satisfies the builtin error interface
func (UserKeyByNameValidationError) ErrorName ¶
func (e UserKeyByNameValidationError) ErrorName() string
ErrorName returns error name.
func (UserKeyByNameValidationError) Field ¶
func (e UserKeyByNameValidationError) Field() string
Field function returns field value.
func (UserKeyByNameValidationError) Key ¶
func (e UserKeyByNameValidationError) Key() bool
Key function returns key value.
func (UserKeyByNameValidationError) Reason ¶
func (e UserKeyByNameValidationError) Reason() string
Reason function returns reason value.
type UserKeyValidationError ¶
type UserKeyValidationError struct {
// contains filtered or unexported fields
}
UserKeyValidationError is the validation error returned by UserKey.Validate if the designated constraints aren't met.
func (UserKeyValidationError) Cause ¶
func (e UserKeyValidationError) Cause() error
Cause function returns cause value.
func (UserKeyValidationError) Error ¶
func (e UserKeyValidationError) Error() string
Error satisfies the builtin error interface
func (UserKeyValidationError) ErrorName ¶
func (e UserKeyValidationError) ErrorName() string
ErrorName returns error name.
func (UserKeyValidationError) Field ¶
func (e UserKeyValidationError) Field() string
Field function returns field value.
func (UserKeyValidationError) Key ¶
func (e UserKeyValidationError) Key() bool
Key function returns key value.
func (UserKeyValidationError) Reason ¶
func (e UserKeyValidationError) Reason() string
Reason function returns reason value.
type UserRole ¶
type UserRole struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` OrganizationId string `protobuf:"bytes,2,opt,name=organizationId,proto3" json:"organizationId,omitempty"` Roles []*RoleKey `protobuf:"bytes,3,rep,name=roles,proto3" json:"roles,omitempty"` // contains filtered or unexported fields }
func (*UserRole) Descriptor
deprecated
func (*UserRole) GetOrganizationId ¶
func (*UserRole) ProtoMessage ¶
func (*UserRole) ProtoMessage()
func (*UserRole) ProtoReflect ¶
func (x *UserRole) ProtoReflect() protoreflect.Message
type UserRoleDelete ¶
type UserRoleDelete struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` OrganizationId string `protobuf:"bytes,2,opt,name=organizationId,proto3" json:"organizationId,omitempty"` RoleId string `protobuf:"bytes,3,opt,name=roleId,proto3" json:"roleId,omitempty"` // contains filtered or unexported fields }
func (*UserRoleDelete) Descriptor
deprecated
func (*UserRoleDelete) Descriptor() ([]byte, []int)
Deprecated: Use UserRoleDelete.ProtoReflect.Descriptor instead.
func (*UserRoleDelete) GetKey ¶
func (x *UserRoleDelete) GetKey() string
func (*UserRoleDelete) GetOrganizationId ¶
func (x *UserRoleDelete) GetOrganizationId() string
func (*UserRoleDelete) GetRoleId ¶
func (x *UserRoleDelete) GetRoleId() string
func (*UserRoleDelete) ProtoMessage ¶
func (*UserRoleDelete) ProtoMessage()
func (*UserRoleDelete) ProtoReflect ¶
func (x *UserRoleDelete) ProtoReflect() protoreflect.Message
func (*UserRoleDelete) Reset ¶
func (x *UserRoleDelete) Reset()
func (*UserRoleDelete) String ¶
func (x *UserRoleDelete) String() string
func (*UserRoleDelete) Validate ¶
func (m *UserRoleDelete) Validate() error
Validate checks the field values on UserRoleDelete with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type UserRoleDeleteValidationError ¶
type UserRoleDeleteValidationError struct {
// contains filtered or unexported fields
}
UserRoleDeleteValidationError is the validation error returned by UserRoleDelete.Validate if the designated constraints aren't met.
func (UserRoleDeleteValidationError) Cause ¶
func (e UserRoleDeleteValidationError) Cause() error
Cause function returns cause value.
func (UserRoleDeleteValidationError) Error ¶
func (e UserRoleDeleteValidationError) Error() string
Error satisfies the builtin error interface
func (UserRoleDeleteValidationError) ErrorName ¶
func (e UserRoleDeleteValidationError) ErrorName() string
ErrorName returns error name.
func (UserRoleDeleteValidationError) Field ¶
func (e UserRoleDeleteValidationError) Field() string
Field function returns field value.
func (UserRoleDeleteValidationError) Key ¶
func (e UserRoleDeleteValidationError) Key() bool
Key function returns key value.
func (UserRoleDeleteValidationError) Reason ¶
func (e UserRoleDeleteValidationError) Reason() string
Reason function returns reason value.
type UserRoleValidationError ¶
type UserRoleValidationError struct {
// contains filtered or unexported fields
}
UserRoleValidationError is the validation error returned by UserRole.Validate if the designated constraints aren't met.
func (UserRoleValidationError) Cause ¶
func (e UserRoleValidationError) Cause() error
Cause function returns cause value.
func (UserRoleValidationError) Error ¶
func (e UserRoleValidationError) Error() string
Error satisfies the builtin error interface
func (UserRoleValidationError) ErrorName ¶
func (e UserRoleValidationError) ErrorName() string
ErrorName returns error name.
func (UserRoleValidationError) Field ¶
func (e UserRoleValidationError) Field() string
Field function returns field value.
func (UserRoleValidationError) Key ¶
func (e UserRoleValidationError) Key() bool
Key function returns key value.
func (UserRoleValidationError) Reason ¶
func (e UserRoleValidationError) Reason() string
Reason function returns reason value.
type UserServer ¶
type UserServer interface { // FindByKey is find organization id and user key FindByKey(context.Context, *UserKey) (*UserEntity, error) // FindByOrganizationNameAndUserKey is find organization id and user key FindByOrganizationNameAndUserKey(context.Context, *UserKeyByName) (*UserEntity, error) // Delete is delete user Delete(context.Context, *UserKey) (*emptypb.Empty, error) // DeleteRole is delete role to user DeleteRole(context.Context, *UserRoleDelete) (*emptypb.Empty, error) // AddRoles is add role to user AddRoles(context.Context, *UserRole) (*emptypb.Empty, error) // DeleteRoles is delete role to user DeleteRoles(context.Context, *UserRole) (*emptypb.Empty, error) // Create is create user Create(context.Context, *UserEntity) (*emptypb.Empty, error) // contains filtered or unexported methods }
UserServer is the server API for User service. All implementations must embed UnimplementedUserServer for forward compatibility