Versions in this module Expand all Collapse all v0 v0.0.4 Jul 9, 2022 Changes in this version + const OperationRoleServiceCreateRole + const OperationRoleServiceDeleteRole + const OperationRoleServiceGetRole + const OperationRoleServiceGetRolePermission + const OperationRoleServiceListRoles + const OperationRoleServiceUpdateRole + const OperationRoleServiceUpdateRolePermission + var ErrorReason_name = map[int32]string + var ErrorReason_value = map[string]int32 + var File_user_api_role_v1_error_reason_proto protoreflect.FileDescriptor + var File_user_api_role_v1_role_proto protoreflect.FileDescriptor + var RoleService_ServiceDesc = grpc.ServiceDesc + func ErrorRolePreserved(format string, args ...interface{}) *errors.Error + func ErrorRolePreservedLocalized(localizer *i18n.Localizer, data map[string]interface{}, ...) *errors.Error + func IsRolePreserved(err error) bool + func RegisterRoleServiceHTTPServer(s *http.Server, srv RoleServiceHTTPServer) + func RegisterRoleServiceServer(s grpc.ServiceRegistrar, srv RoleServiceServer) + type CreateRoleRequest struct + Name string + func (*CreateRoleRequest) Descriptor() ([]byte, []int) + func (*CreateRoleRequest) ProtoMessage() + func (m *CreateRoleRequest) Validate() error + func (m *CreateRoleRequest) ValidateAll() error + func (x *CreateRoleRequest) GetName() string + func (x *CreateRoleRequest) ProtoReflect() protoreflect.Message + func (x *CreateRoleRequest) Reset() + func (x *CreateRoleRequest) String() string + type CreateRoleRequestMultiError []error + func (m CreateRoleRequestMultiError) AllErrors() []error + func (m CreateRoleRequestMultiError) Error() string + type CreateRoleRequestValidationError struct + func (e CreateRoleRequestValidationError) Cause() error + func (e CreateRoleRequestValidationError) Error() string + func (e CreateRoleRequestValidationError) ErrorName() string + func (e CreateRoleRequestValidationError) Field() string + func (e CreateRoleRequestValidationError) Key() bool + func (e CreateRoleRequestValidationError) Reason() string + type DeleteRoleRequest struct + Id string + func (*DeleteRoleRequest) Descriptor() ([]byte, []int) + func (*DeleteRoleRequest) ProtoMessage() + func (m *DeleteRoleRequest) Validate() error + func (m *DeleteRoleRequest) ValidateAll() error + func (x *DeleteRoleRequest) GetId() string + func (x *DeleteRoleRequest) ProtoReflect() protoreflect.Message + func (x *DeleteRoleRequest) Reset() + func (x *DeleteRoleRequest) String() string + type DeleteRoleRequestMultiError []error + func (m DeleteRoleRequestMultiError) AllErrors() []error + func (m DeleteRoleRequestMultiError) Error() string + type DeleteRoleRequestValidationError struct + func (e DeleteRoleRequestValidationError) Cause() error + func (e DeleteRoleRequestValidationError) Error() string + func (e DeleteRoleRequestValidationError) ErrorName() string + func (e DeleteRoleRequestValidationError) Field() string + func (e DeleteRoleRequestValidationError) Key() bool + func (e DeleteRoleRequestValidationError) Reason() string + type DeleteRoleResponse struct + func (*DeleteRoleResponse) Descriptor() ([]byte, []int) + func (*DeleteRoleResponse) ProtoMessage() + func (m *DeleteRoleResponse) Validate() error + func (m *DeleteRoleResponse) ValidateAll() error + func (x *DeleteRoleResponse) ProtoReflect() protoreflect.Message + func (x *DeleteRoleResponse) Reset() + func (x *DeleteRoleResponse) String() string + type DeleteRoleResponseMultiError []error + func (m DeleteRoleResponseMultiError) AllErrors() []error + func (m DeleteRoleResponseMultiError) Error() string + type DeleteRoleResponseValidationError struct + func (e DeleteRoleResponseValidationError) Cause() error + func (e DeleteRoleResponseValidationError) Error() string + func (e DeleteRoleResponseValidationError) ErrorName() string + func (e DeleteRoleResponseValidationError) Field() string + func (e DeleteRoleResponseValidationError) Key() bool + func (e DeleteRoleResponseValidationError) Reason() string + type ErrorReason int32 + const ErrorReason_ROLE_PRESERVED + func (ErrorReason) Descriptor() protoreflect.EnumDescriptor + func (ErrorReason) EnumDescriptor() ([]byte, []int) + func (ErrorReason) Type() protoreflect.EnumType + func (x ErrorReason) Enum() *ErrorReason + func (x ErrorReason) Number() protoreflect.EnumNumber + func (x ErrorReason) String() string + type GetRolePermissionRequest struct + Id string + func (*GetRolePermissionRequest) Descriptor() ([]byte, []int) + func (*GetRolePermissionRequest) ProtoMessage() + func (m *GetRolePermissionRequest) Validate() error + func (m *GetRolePermissionRequest) ValidateAll() error + func (x *GetRolePermissionRequest) GetId() string + func (x *GetRolePermissionRequest) ProtoReflect() protoreflect.Message + func (x *GetRolePermissionRequest) Reset() + func (x *GetRolePermissionRequest) String() string + type GetRolePermissionRequestMultiError []error + func (m GetRolePermissionRequestMultiError) AllErrors() []error + func (m GetRolePermissionRequestMultiError) Error() string + type GetRolePermissionRequestValidationError struct + func (e GetRolePermissionRequestValidationError) Cause() error + func (e GetRolePermissionRequestValidationError) Error() string + func (e GetRolePermissionRequestValidationError) ErrorName() string + func (e GetRolePermissionRequestValidationError) Field() string + func (e GetRolePermissionRequestValidationError) Key() bool + func (e GetRolePermissionRequestValidationError) Reason() string + type GetRolePermissionResponse struct + Acl []*v1.Permission + DefGroups []*v1.PermissionDefGroup + func (*GetRolePermissionResponse) Descriptor() ([]byte, []int) + func (*GetRolePermissionResponse) ProtoMessage() + func (m *GetRolePermissionResponse) Validate() error + func (m *GetRolePermissionResponse) ValidateAll() error + func (x *GetRolePermissionResponse) GetAcl() []*v1.Permission + func (x *GetRolePermissionResponse) GetDefGroups() []*v1.PermissionDefGroup + func (x *GetRolePermissionResponse) ProtoReflect() protoreflect.Message + func (x *GetRolePermissionResponse) Reset() + func (x *GetRolePermissionResponse) String() string + type GetRolePermissionResponseMultiError []error + func (m GetRolePermissionResponseMultiError) AllErrors() []error + func (m GetRolePermissionResponseMultiError) Error() string + type GetRolePermissionResponseValidationError struct + func (e GetRolePermissionResponseValidationError) Cause() error + func (e GetRolePermissionResponseValidationError) Error() string + func (e GetRolePermissionResponseValidationError) ErrorName() string + func (e GetRolePermissionResponseValidationError) Field() string + func (e GetRolePermissionResponseValidationError) Key() bool + func (e GetRolePermissionResponseValidationError) Reason() string + type GetRoleRequest struct + Id string + Name string + func (*GetRoleRequest) Descriptor() ([]byte, []int) + func (*GetRoleRequest) ProtoMessage() + func (m *GetRoleRequest) Validate() error + func (m *GetRoleRequest) ValidateAll() error + func (x *GetRoleRequest) GetId() string + func (x *GetRoleRequest) GetName() string + func (x *GetRoleRequest) ProtoReflect() protoreflect.Message + func (x *GetRoleRequest) Reset() + func (x *GetRoleRequest) String() string + type GetRoleRequestMultiError []error + func (m GetRoleRequestMultiError) AllErrors() []error + func (m GetRoleRequestMultiError) Error() string + type GetRoleRequestValidationError struct + func (e GetRoleRequestValidationError) Cause() error + func (e GetRoleRequestValidationError) Error() string + func (e GetRoleRequestValidationError) ErrorName() string + func (e GetRoleRequestValidationError) Field() string + func (e GetRoleRequestValidationError) Key() bool + func (e GetRoleRequestValidationError) Reason() string + type ListRolesRequest struct + Fields *fieldmaskpb.FieldMask + Filter *RoleFilter + PageOffset int32 + PageSize int32 + Search string + Sort []string + func (*ListRolesRequest) Descriptor() ([]byte, []int) + func (*ListRolesRequest) ProtoMessage() + func (m *ListRolesRequest) Validate() error + func (m *ListRolesRequest) ValidateAll() error + func (x *ListRolesRequest) GetFields() *fieldmaskpb.FieldMask + func (x *ListRolesRequest) GetFilter() *RoleFilter + func (x *ListRolesRequest) GetPageOffset() int32 + func (x *ListRolesRequest) GetPageSize() int32 + func (x *ListRolesRequest) GetSearch() string + func (x *ListRolesRequest) GetSort() []string + func (x *ListRolesRequest) ProtoReflect() protoreflect.Message + func (x *ListRolesRequest) Reset() + func (x *ListRolesRequest) String() string + type ListRolesRequestMultiError []error + func (m ListRolesRequestMultiError) AllErrors() []error + func (m ListRolesRequestMultiError) Error() string + type ListRolesRequestValidationError struct + func (e ListRolesRequestValidationError) Cause() error + func (e ListRolesRequestValidationError) Error() string + func (e ListRolesRequestValidationError) ErrorName() string + func (e ListRolesRequestValidationError) Field() string + func (e ListRolesRequestValidationError) Key() bool + func (e ListRolesRequestValidationError) Reason() string + type ListRolesResponse struct + FilterSize int32 + Items []*Role + TotalSize int32 + func (*ListRolesResponse) Descriptor() ([]byte, []int) + func (*ListRolesResponse) ProtoMessage() + func (m *ListRolesResponse) Validate() error + func (m *ListRolesResponse) ValidateAll() error + func (x *ListRolesResponse) GetFilterSize() int32 + func (x *ListRolesResponse) GetItems() []*Role + func (x *ListRolesResponse) GetTotalSize() int32 + func (x *ListRolesResponse) ProtoReflect() protoreflect.Message + func (x *ListRolesResponse) Reset() + func (x *ListRolesResponse) String() string + type ListRolesResponseMultiError []error + func (m ListRolesResponseMultiError) AllErrors() []error + func (m ListRolesResponseMultiError) Error() string + type ListRolesResponseValidationError struct + func (e ListRolesResponseValidationError) Cause() error + func (e ListRolesResponseValidationError) Error() string + func (e ListRolesResponseValidationError) ErrorName() string + func (e ListRolesResponseValidationError) Field() string + func (e ListRolesResponseValidationError) Key() bool + func (e ListRolesResponseValidationError) Reason() string + type Role struct + Acl []*v1.Permission + DefGroups []*v1.PermissionDefGroup + Id string + IsPreserved bool + Name string + func (*Role) Descriptor() ([]byte, []int) + func (*Role) ProtoMessage() + func (m *Role) Validate() error + func (m *Role) ValidateAll() error + func (x *Role) GetAcl() []*v1.Permission + func (x *Role) GetDefGroups() []*v1.PermissionDefGroup + func (x *Role) GetId() string + func (x *Role) GetIsPreserved() bool + func (x *Role) GetName() string + func (x *Role) ProtoReflect() protoreflect.Message + func (x *Role) Reset() + func (x *Role) String() string + type RoleFilter struct + Id *query.StringFilterOperation + Name *query.StringFilterOperation + func (*RoleFilter) Descriptor() ([]byte, []int) + func (*RoleFilter) ProtoMessage() + func (m *RoleFilter) Validate() error + func (m *RoleFilter) ValidateAll() error + func (x *RoleFilter) GetId() *query.StringFilterOperation + func (x *RoleFilter) GetName() *query.StringFilterOperation + func (x *RoleFilter) ProtoReflect() protoreflect.Message + func (x *RoleFilter) Reset() + func (x *RoleFilter) String() string + type RoleFilterMultiError []error + func (m RoleFilterMultiError) AllErrors() []error + func (m RoleFilterMultiError) Error() string + type RoleFilterValidationError struct + func (e RoleFilterValidationError) Cause() error + func (e RoleFilterValidationError) Error() string + func (e RoleFilterValidationError) ErrorName() string + func (e RoleFilterValidationError) Field() string + func (e RoleFilterValidationError) Key() bool + func (e RoleFilterValidationError) Reason() string + type RoleMultiError []error + func (m RoleMultiError) AllErrors() []error + func (m RoleMultiError) Error() string + type RoleServiceClient interface + CreateRole func(ctx context.Context, in *CreateRoleRequest, opts ...grpc.CallOption) (*Role, error) + DeleteRole func(ctx context.Context, in *DeleteRoleRequest, opts ...grpc.CallOption) (*DeleteRoleResponse, error) + GetRole func(ctx context.Context, in *GetRoleRequest, opts ...grpc.CallOption) (*Role, error) + GetRolePermission func(ctx context.Context, in *GetRolePermissionRequest, opts ...grpc.CallOption) (*GetRolePermissionResponse, error) + ListRoles func(ctx context.Context, in *ListRolesRequest, opts ...grpc.CallOption) (*ListRolesResponse, error) + UpdateRole func(ctx context.Context, in *UpdateRoleRequest, opts ...grpc.CallOption) (*Role, error) + UpdateRolePermission func(ctx context.Context, in *UpdateRolePermissionRequest, opts ...grpc.CallOption) (*UpdateRolePermissionResponse, error) + func NewRoleServiceClient(cc grpc.ClientConnInterface) RoleServiceClient + type RoleServiceHTTPClient interface + CreateRole func(ctx context.Context, req *CreateRoleRequest, opts ...http.CallOption) (rsp *Role, err error) + DeleteRole func(ctx context.Context, req *DeleteRoleRequest, opts ...http.CallOption) (rsp *DeleteRoleResponse, err error) + GetRole func(ctx context.Context, req *GetRoleRequest, opts ...http.CallOption) (rsp *Role, err error) + GetRolePermission func(ctx context.Context, req *GetRolePermissionRequest, opts ...http.CallOption) (rsp *GetRolePermissionResponse, err error) + ListRoles func(ctx context.Context, req *ListRolesRequest, opts ...http.CallOption) (rsp *ListRolesResponse, err error) + UpdateRole func(ctx context.Context, req *UpdateRoleRequest, opts ...http.CallOption) (rsp *Role, err error) + UpdateRolePermission func(ctx context.Context, req *UpdateRolePermissionRequest, opts ...http.CallOption) (rsp *UpdateRolePermissionResponse, err error) + func NewRoleServiceHTTPClient(client *http.Client) RoleServiceHTTPClient + type RoleServiceHTTPClientImpl struct + func (c *RoleServiceHTTPClientImpl) CreateRole(ctx context.Context, in *CreateRoleRequest, opts ...http.CallOption) (*Role, error) + func (c *RoleServiceHTTPClientImpl) DeleteRole(ctx context.Context, in *DeleteRoleRequest, opts ...http.CallOption) (*DeleteRoleResponse, error) + func (c *RoleServiceHTTPClientImpl) GetRole(ctx context.Context, in *GetRoleRequest, opts ...http.CallOption) (*Role, error) + func (c *RoleServiceHTTPClientImpl) GetRolePermission(ctx context.Context, in *GetRolePermissionRequest, opts ...http.CallOption) (*GetRolePermissionResponse, error) + func (c *RoleServiceHTTPClientImpl) ListRoles(ctx context.Context, in *ListRolesRequest, opts ...http.CallOption) (*ListRolesResponse, error) + func (c *RoleServiceHTTPClientImpl) UpdateRole(ctx context.Context, in *UpdateRoleRequest, opts ...http.CallOption) (*Role, error) + func (c *RoleServiceHTTPClientImpl) UpdateRolePermission(ctx context.Context, in *UpdateRolePermissionRequest, opts ...http.CallOption) (*UpdateRolePermissionResponse, error) + type RoleServiceHTTPServer interface + CreateRole func(context.Context, *CreateRoleRequest) (*Role, error) + DeleteRole func(context.Context, *DeleteRoleRequest) (*DeleteRoleResponse, error) + GetRole func(context.Context, *GetRoleRequest) (*Role, error) + GetRolePermission func(context.Context, *GetRolePermissionRequest) (*GetRolePermissionResponse, error) + ListRoles func(context.Context, *ListRolesRequest) (*ListRolesResponse, error) + UpdateRole func(context.Context, *UpdateRoleRequest) (*Role, error) + UpdateRolePermission func(context.Context, *UpdateRolePermissionRequest) (*UpdateRolePermissionResponse, error) + type RoleServiceServer interface + CreateRole func(context.Context, *CreateRoleRequest) (*Role, error) + DeleteRole func(context.Context, *DeleteRoleRequest) (*DeleteRoleResponse, error) + GetRole func(context.Context, *GetRoleRequest) (*Role, error) + GetRolePermission func(context.Context, *GetRolePermissionRequest) (*GetRolePermissionResponse, error) + ListRoles func(context.Context, *ListRolesRequest) (*ListRolesResponse, error) + UpdateRole func(context.Context, *UpdateRoleRequest) (*Role, error) + UpdateRolePermission func(context.Context, *UpdateRolePermissionRequest) (*UpdateRolePermissionResponse, error) + func NewRoleServiceClientProxy(cc RoleServiceClient) RoleServiceServer + type RoleValidationError struct + func (e RoleValidationError) Cause() error + func (e RoleValidationError) Error() string + func (e RoleValidationError) ErrorName() string + func (e RoleValidationError) Field() string + func (e RoleValidationError) Key() bool + func (e RoleValidationError) Reason() string + type UnimplementedRoleServiceServer struct + func (UnimplementedRoleServiceServer) CreateRole(context.Context, *CreateRoleRequest) (*Role, error) + func (UnimplementedRoleServiceServer) DeleteRole(context.Context, *DeleteRoleRequest) (*DeleteRoleResponse, error) + func (UnimplementedRoleServiceServer) GetRole(context.Context, *GetRoleRequest) (*Role, error) + func (UnimplementedRoleServiceServer) GetRolePermission(context.Context, *GetRolePermissionRequest) (*GetRolePermissionResponse, error) + func (UnimplementedRoleServiceServer) ListRoles(context.Context, *ListRolesRequest) (*ListRolesResponse, error) + func (UnimplementedRoleServiceServer) UpdateRole(context.Context, *UpdateRoleRequest) (*Role, error) + func (UnimplementedRoleServiceServer) UpdateRolePermission(context.Context, *UpdateRolePermissionRequest) (*UpdateRolePermissionResponse, error) + type UnsafeRoleServiceServer interface + type UpdateRole struct + Acl []*UpdateRolePermissionAcl + Id string + Name string + func (*UpdateRole) Descriptor() ([]byte, []int) + func (*UpdateRole) ProtoMessage() + func (m *UpdateRole) Validate() error + func (m *UpdateRole) ValidateAll() error + func (x *UpdateRole) GetAcl() []*UpdateRolePermissionAcl + func (x *UpdateRole) GetId() string + func (x *UpdateRole) GetName() string + func (x *UpdateRole) ProtoReflect() protoreflect.Message + func (x *UpdateRole) Reset() + func (x *UpdateRole) String() string + type UpdateRoleMultiError []error + func (m UpdateRoleMultiError) AllErrors() []error + func (m UpdateRoleMultiError) Error() string + type UpdateRolePermissionAcl struct + Action string + Effect v1.Effect + Namespace string + Resource string + func (*UpdateRolePermissionAcl) Descriptor() ([]byte, []int) + func (*UpdateRolePermissionAcl) ProtoMessage() + func (m *UpdateRolePermissionAcl) Validate() error + func (m *UpdateRolePermissionAcl) ValidateAll() error + func (x *UpdateRolePermissionAcl) GetAction() string + func (x *UpdateRolePermissionAcl) GetEffect() v1.Effect + func (x *UpdateRolePermissionAcl) GetNamespace() string + func (x *UpdateRolePermissionAcl) GetResource() string + func (x *UpdateRolePermissionAcl) ProtoReflect() protoreflect.Message + func (x *UpdateRolePermissionAcl) Reset() + func (x *UpdateRolePermissionAcl) String() string + type UpdateRolePermissionAclMultiError []error + func (m UpdateRolePermissionAclMultiError) AllErrors() []error + func (m UpdateRolePermissionAclMultiError) Error() string + type UpdateRolePermissionAclValidationError struct + func (e UpdateRolePermissionAclValidationError) Cause() error + func (e UpdateRolePermissionAclValidationError) Error() string + func (e UpdateRolePermissionAclValidationError) ErrorName() string + func (e UpdateRolePermissionAclValidationError) Field() string + func (e UpdateRolePermissionAclValidationError) Key() bool + func (e UpdateRolePermissionAclValidationError) Reason() string + type UpdateRolePermissionRequest struct + Acl []*UpdateRolePermissionAcl + Id string + func (*UpdateRolePermissionRequest) Descriptor() ([]byte, []int) + func (*UpdateRolePermissionRequest) ProtoMessage() + func (m *UpdateRolePermissionRequest) Validate() error + func (m *UpdateRolePermissionRequest) ValidateAll() error + func (x *UpdateRolePermissionRequest) GetAcl() []*UpdateRolePermissionAcl + func (x *UpdateRolePermissionRequest) GetId() string + func (x *UpdateRolePermissionRequest) ProtoReflect() protoreflect.Message + func (x *UpdateRolePermissionRequest) Reset() + func (x *UpdateRolePermissionRequest) String() string + type UpdateRolePermissionRequestMultiError []error + func (m UpdateRolePermissionRequestMultiError) AllErrors() []error + func (m UpdateRolePermissionRequestMultiError) Error() string + type UpdateRolePermissionRequestValidationError struct + func (e UpdateRolePermissionRequestValidationError) Cause() error + func (e UpdateRolePermissionRequestValidationError) Error() string + func (e UpdateRolePermissionRequestValidationError) ErrorName() string + func (e UpdateRolePermissionRequestValidationError) Field() string + func (e UpdateRolePermissionRequestValidationError) Key() bool + func (e UpdateRolePermissionRequestValidationError) Reason() string + type UpdateRolePermissionResponse struct + func (*UpdateRolePermissionResponse) Descriptor() ([]byte, []int) + func (*UpdateRolePermissionResponse) ProtoMessage() + func (m *UpdateRolePermissionResponse) Validate() error + func (m *UpdateRolePermissionResponse) ValidateAll() error + func (x *UpdateRolePermissionResponse) ProtoReflect() protoreflect.Message + func (x *UpdateRolePermissionResponse) Reset() + func (x *UpdateRolePermissionResponse) String() string + type UpdateRolePermissionResponseMultiError []error + func (m UpdateRolePermissionResponseMultiError) AllErrors() []error + func (m UpdateRolePermissionResponseMultiError) Error() string + type UpdateRolePermissionResponseValidationError struct + func (e UpdateRolePermissionResponseValidationError) Cause() error + func (e UpdateRolePermissionResponseValidationError) Error() string + func (e UpdateRolePermissionResponseValidationError) ErrorName() string + func (e UpdateRolePermissionResponseValidationError) Field() string + func (e UpdateRolePermissionResponseValidationError) Key() bool + func (e UpdateRolePermissionResponseValidationError) Reason() string + type UpdateRoleRequest struct + Role *UpdateRole + UpdateMask *fieldmaskpb.FieldMask + func (*UpdateRoleRequest) Descriptor() ([]byte, []int) + func (*UpdateRoleRequest) ProtoMessage() + func (m *UpdateRoleRequest) Validate() error + func (m *UpdateRoleRequest) ValidateAll() error + func (x *UpdateRoleRequest) GetRole() *UpdateRole + func (x *UpdateRoleRequest) GetUpdateMask() *fieldmaskpb.FieldMask + func (x *UpdateRoleRequest) ProtoReflect() protoreflect.Message + func (x *UpdateRoleRequest) Reset() + func (x *UpdateRoleRequest) String() string + type UpdateRoleRequestMultiError []error + func (m UpdateRoleRequestMultiError) AllErrors() []error + func (m UpdateRoleRequestMultiError) Error() string + type UpdateRoleRequestValidationError struct + func (e UpdateRoleRequestValidationError) Cause() error + func (e UpdateRoleRequestValidationError) Error() string + func (e UpdateRoleRequestValidationError) ErrorName() string + func (e UpdateRoleRequestValidationError) Field() string + func (e UpdateRoleRequestValidationError) Key() bool + func (e UpdateRoleRequestValidationError) Reason() string + type UpdateRoleValidationError struct + func (e UpdateRoleValidationError) Cause() error + func (e UpdateRoleValidationError) Error() string + func (e UpdateRoleValidationError) ErrorName() string + func (e UpdateRoleValidationError) Field() string + func (e UpdateRoleValidationError) Key() bool + func (e UpdateRoleValidationError) Reason() string