Documentation ¶
Index ¶
- Constants
- Variables
- 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
- func (*CreateRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateRoleRequest) GetName() string
- func (*CreateRoleRequest) ProtoMessage()
- func (x *CreateRoleRequest) ProtoReflect() protoreflect.Message
- func (x *CreateRoleRequest) Reset()
- func (x *CreateRoleRequest) String() string
- func (m *CreateRoleRequest) Validate() error
- func (m *CreateRoleRequest) ValidateAll() error
- type CreateRoleRequestMultiError
- type CreateRoleRequestValidationError
- 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
- func (*DeleteRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteRoleRequest) GetId() string
- func (*DeleteRoleRequest) ProtoMessage()
- func (x *DeleteRoleRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteRoleRequest) Reset()
- func (x *DeleteRoleRequest) String() string
- func (m *DeleteRoleRequest) Validate() error
- func (m *DeleteRoleRequest) ValidateAll() error
- type DeleteRoleRequestMultiError
- type DeleteRoleRequestValidationError
- 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
- func (*DeleteRoleResponse) Descriptor() ([]byte, []int)deprecated
- func (*DeleteRoleResponse) ProtoMessage()
- func (x *DeleteRoleResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteRoleResponse) Reset()
- func (x *DeleteRoleResponse) String() string
- func (m *DeleteRoleResponse) Validate() error
- func (m *DeleteRoleResponse) ValidateAll() error
- type DeleteRoleResponseMultiError
- type DeleteRoleResponseValidationError
- 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
- func (ErrorReason) Descriptor() protoreflect.EnumDescriptor
- func (x ErrorReason) Enum() *ErrorReason
- func (ErrorReason) EnumDescriptor() ([]byte, []int)deprecated
- func (x ErrorReason) Number() protoreflect.EnumNumber
- func (x ErrorReason) String() string
- func (ErrorReason) Type() protoreflect.EnumType
- type GetRolePermissionRequest
- func (*GetRolePermissionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetRolePermissionRequest) GetId() string
- func (*GetRolePermissionRequest) ProtoMessage()
- func (x *GetRolePermissionRequest) ProtoReflect() protoreflect.Message
- func (x *GetRolePermissionRequest) Reset()
- func (x *GetRolePermissionRequest) String() string
- func (m *GetRolePermissionRequest) Validate() error
- func (m *GetRolePermissionRequest) ValidateAll() error
- type GetRolePermissionRequestMultiError
- type GetRolePermissionRequestValidationError
- 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
- func (*GetRolePermissionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetRolePermissionResponse) GetAcl() []*v1.Permission
- func (x *GetRolePermissionResponse) GetDefGroups() []*v1.PermissionDefGroup
- func (*GetRolePermissionResponse) ProtoMessage()
- func (x *GetRolePermissionResponse) ProtoReflect() protoreflect.Message
- func (x *GetRolePermissionResponse) Reset()
- func (x *GetRolePermissionResponse) String() string
- func (m *GetRolePermissionResponse) Validate() error
- func (m *GetRolePermissionResponse) ValidateAll() error
- type GetRolePermissionResponseMultiError
- type GetRolePermissionResponseValidationError
- 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
- func (*GetRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetRoleRequest) GetId() string
- func (x *GetRoleRequest) GetName() string
- func (*GetRoleRequest) ProtoMessage()
- func (x *GetRoleRequest) ProtoReflect() protoreflect.Message
- func (x *GetRoleRequest) Reset()
- func (x *GetRoleRequest) String() string
- func (m *GetRoleRequest) Validate() error
- func (m *GetRoleRequest) ValidateAll() error
- type GetRoleRequestMultiError
- type GetRoleRequestValidationError
- 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
- func (*ListRolesRequest) Descriptor() ([]byte, []int)deprecated
- 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 (*ListRolesRequest) ProtoMessage()
- func (x *ListRolesRequest) ProtoReflect() protoreflect.Message
- func (x *ListRolesRequest) Reset()
- func (x *ListRolesRequest) String() string
- func (m *ListRolesRequest) Validate() error
- func (m *ListRolesRequest) ValidateAll() error
- type ListRolesRequestMultiError
- type ListRolesRequestValidationError
- 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
- func (*ListRolesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListRolesResponse) GetFilterSize() int32
- func (x *ListRolesResponse) GetItems() []*Role
- func (x *ListRolesResponse) GetTotalSize() int32
- func (*ListRolesResponse) ProtoMessage()
- func (x *ListRolesResponse) ProtoReflect() protoreflect.Message
- func (x *ListRolesResponse) Reset()
- func (x *ListRolesResponse) String() string
- func (m *ListRolesResponse) Validate() error
- func (m *ListRolesResponse) ValidateAll() error
- type ListRolesResponseMultiError
- type ListRolesResponseValidationError
- 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
- func (*Role) Descriptor() ([]byte, []int)deprecated
- 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 (*Role) ProtoMessage()
- func (x *Role) ProtoReflect() protoreflect.Message
- func (x *Role) Reset()
- func (x *Role) String() string
- func (m *Role) Validate() error
- func (m *Role) ValidateAll() error
- type RoleFilter
- func (*RoleFilter) Descriptor() ([]byte, []int)deprecated
- func (x *RoleFilter) GetId() *query.StringFilterOperation
- func (x *RoleFilter) GetName() *query.StringFilterOperation
- func (*RoleFilter) ProtoMessage()
- func (x *RoleFilter) ProtoReflect() protoreflect.Message
- func (x *RoleFilter) Reset()
- func (x *RoleFilter) String() string
- func (m *RoleFilter) Validate() error
- func (m *RoleFilter) ValidateAll() error
- type RoleFilterMultiError
- type RoleFilterValidationError
- type RoleMultiError
- type RoleServiceClient
- type RoleServiceHTTPClient
- type RoleServiceHTTPClientImpl
- 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
- type RoleServiceServer
- type RoleValidationError
- type UnimplementedRoleServiceServer
- 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
- type UpdateRole
- func (*UpdateRole) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateRole) GetAcl() []*UpdateRolePermissionAcl
- func (x *UpdateRole) GetId() string
- func (x *UpdateRole) GetName() string
- func (*UpdateRole) ProtoMessage()
- func (x *UpdateRole) ProtoReflect() protoreflect.Message
- func (x *UpdateRole) Reset()
- func (x *UpdateRole) String() string
- func (m *UpdateRole) Validate() error
- func (m *UpdateRole) ValidateAll() error
- type UpdateRoleMultiError
- type UpdateRolePermissionAcl
- func (*UpdateRolePermissionAcl) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateRolePermissionAcl) GetAction() string
- func (x *UpdateRolePermissionAcl) GetEffect() v1.Effect
- func (x *UpdateRolePermissionAcl) GetNamespace() string
- func (x *UpdateRolePermissionAcl) GetResource() string
- func (*UpdateRolePermissionAcl) ProtoMessage()
- func (x *UpdateRolePermissionAcl) ProtoReflect() protoreflect.Message
- func (x *UpdateRolePermissionAcl) Reset()
- func (x *UpdateRolePermissionAcl) String() string
- func (m *UpdateRolePermissionAcl) Validate() error
- func (m *UpdateRolePermissionAcl) ValidateAll() error
- type UpdateRolePermissionAclMultiError
- type UpdateRolePermissionAclValidationError
- 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
- func (*UpdateRolePermissionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateRolePermissionRequest) GetAcl() []*UpdateRolePermissionAcl
- func (x *UpdateRolePermissionRequest) GetId() string
- func (*UpdateRolePermissionRequest) ProtoMessage()
- func (x *UpdateRolePermissionRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateRolePermissionRequest) Reset()
- func (x *UpdateRolePermissionRequest) String() string
- func (m *UpdateRolePermissionRequest) Validate() error
- func (m *UpdateRolePermissionRequest) ValidateAll() error
- type UpdateRolePermissionRequestMultiError
- type UpdateRolePermissionRequestValidationError
- 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
- func (*UpdateRolePermissionResponse) Descriptor() ([]byte, []int)deprecated
- func (*UpdateRolePermissionResponse) ProtoMessage()
- func (x *UpdateRolePermissionResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateRolePermissionResponse) Reset()
- func (x *UpdateRolePermissionResponse) String() string
- func (m *UpdateRolePermissionResponse) Validate() error
- func (m *UpdateRolePermissionResponse) ValidateAll() error
- type UpdateRolePermissionResponseMultiError
- type UpdateRolePermissionResponseValidationError
- 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
- func (*UpdateRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateRoleRequest) GetRole() *UpdateRole
- func (x *UpdateRoleRequest) GetUpdateMask() *fieldmaskpb.FieldMask
- func (*UpdateRoleRequest) ProtoMessage()
- func (x *UpdateRoleRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateRoleRequest) Reset()
- func (x *UpdateRoleRequest) String() string
- func (m *UpdateRoleRequest) Validate() error
- func (m *UpdateRoleRequest) ValidateAll() error
- type UpdateRoleRequestMultiError
- type UpdateRoleRequestValidationError
- 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
Constants ¶
const OperationRoleServiceCreateRole = "/user.api.role.v1.RoleService/CreateRole"
const OperationRoleServiceDeleteRole = "/user.api.role.v1.RoleService/DeleteRole"
const OperationRoleServiceGetRole = "/user.api.role.v1.RoleService/GetRole"
const OperationRoleServiceGetRolePermission = "/user.api.role.v1.RoleService/GetRolePermission"
const OperationRoleServiceListRoles = "/user.api.role.v1.RoleService/ListRoles"
const OperationRoleServiceUpdateRole = "/user.api.role.v1.RoleService/UpdateRole"
const OperationRoleServiceUpdateRolePermission = "/user.api.role.v1.RoleService/UpdateRolePermission"
Variables ¶
var ( ErrorReason_name = map[int32]string{ 0: "ROLE_PRESERVED", } ErrorReason_value = map[string]int32{ "ROLE_PRESERVED": 0, } )
Enum value maps for ErrorReason.
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{ ServiceName: "user.api.role.v1.RoleService", HandlerType: (*RoleServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListRoles", Handler: _RoleService_ListRoles_Handler, }, { MethodName: "GetRole", Handler: _RoleService_GetRole_Handler, }, { MethodName: "CreateRole", Handler: _RoleService_CreateRole_Handler, }, { MethodName: "UpdateRole", Handler: _RoleService_UpdateRole_Handler, }, { MethodName: "DeleteRole", Handler: _RoleService_DeleteRole_Handler, }, { MethodName: "GetRolePermission", Handler: _RoleService_GetRolePermission_Handler, }, { MethodName: "UpdateRolePermission", Handler: _RoleService_UpdateRolePermission_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "user/api/role/v1/role.proto", }
RoleService_ServiceDesc is the grpc.ServiceDesc for RoleService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func ErrorRolePreserved ¶
func IsRolePreserved ¶
func RegisterRoleServiceHTTPServer ¶
func RegisterRoleServiceHTTPServer(s *http.Server, srv RoleServiceHTTPServer)
func RegisterRoleServiceServer ¶
func RegisterRoleServiceServer(s grpc.ServiceRegistrar, srv RoleServiceServer)
Types ¶
type CreateRoleRequest ¶
type CreateRoleRequest struct { Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*CreateRoleRequest) Descriptor
deprecated
func (*CreateRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateRoleRequest.ProtoReflect.Descriptor instead.
func (*CreateRoleRequest) GetName ¶
func (x *CreateRoleRequest) GetName() string
func (*CreateRoleRequest) ProtoMessage ¶
func (*CreateRoleRequest) ProtoMessage()
func (*CreateRoleRequest) ProtoReflect ¶
func (x *CreateRoleRequest) ProtoReflect() protoreflect.Message
func (*CreateRoleRequest) Reset ¶
func (x *CreateRoleRequest) Reset()
func (*CreateRoleRequest) String ¶
func (x *CreateRoleRequest) String() string
func (*CreateRoleRequest) Validate ¶
func (m *CreateRoleRequest) Validate() error
Validate checks the field values on CreateRoleRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*CreateRoleRequest) ValidateAll ¶
func (m *CreateRoleRequest) ValidateAll() error
ValidateAll checks the field values on CreateRoleRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateRoleRequestMultiError, or nil if none found.
type CreateRoleRequestMultiError ¶
type CreateRoleRequestMultiError []error
CreateRoleRequestMultiError is an error wrapping multiple validation errors returned by CreateRoleRequest.ValidateAll() if the designated constraints aren't met.
func (CreateRoleRequestMultiError) AllErrors ¶
func (m CreateRoleRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateRoleRequestMultiError) Error ¶
func (m CreateRoleRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateRoleRequestValidationError ¶
type CreateRoleRequestValidationError struct {
// contains filtered or unexported fields
}
CreateRoleRequestValidationError is the validation error returned by CreateRoleRequest.Validate if the designated constraints aren't met.
func (CreateRoleRequestValidationError) Cause ¶
func (e CreateRoleRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateRoleRequestValidationError) Error ¶
func (e CreateRoleRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateRoleRequestValidationError) ErrorName ¶
func (e CreateRoleRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateRoleRequestValidationError) Field ¶
func (e CreateRoleRequestValidationError) Field() string
Field function returns field value.
func (CreateRoleRequestValidationError) Key ¶
func (e CreateRoleRequestValidationError) Key() bool
Key function returns key value.
func (CreateRoleRequestValidationError) Reason ¶
func (e CreateRoleRequestValidationError) Reason() string
Reason function returns reason value.
type DeleteRoleRequest ¶
type DeleteRoleRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteRoleRequest) Descriptor
deprecated
func (*DeleteRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRoleRequest.ProtoReflect.Descriptor instead.
func (*DeleteRoleRequest) GetId ¶
func (x *DeleteRoleRequest) GetId() string
func (*DeleteRoleRequest) ProtoMessage ¶
func (*DeleteRoleRequest) ProtoMessage()
func (*DeleteRoleRequest) ProtoReflect ¶
func (x *DeleteRoleRequest) ProtoReflect() protoreflect.Message
func (*DeleteRoleRequest) Reset ¶
func (x *DeleteRoleRequest) Reset()
func (*DeleteRoleRequest) String ¶
func (x *DeleteRoleRequest) String() string
func (*DeleteRoleRequest) Validate ¶
func (m *DeleteRoleRequest) Validate() error
Validate checks the field values on DeleteRoleRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*DeleteRoleRequest) ValidateAll ¶
func (m *DeleteRoleRequest) ValidateAll() error
ValidateAll checks the field values on DeleteRoleRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteRoleRequestMultiError, or nil if none found.
type DeleteRoleRequestMultiError ¶
type DeleteRoleRequestMultiError []error
DeleteRoleRequestMultiError is an error wrapping multiple validation errors returned by DeleteRoleRequest.ValidateAll() if the designated constraints aren't met.
func (DeleteRoleRequestMultiError) AllErrors ¶
func (m DeleteRoleRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteRoleRequestMultiError) Error ¶
func (m DeleteRoleRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteRoleRequestValidationError ¶
type DeleteRoleRequestValidationError struct {
// contains filtered or unexported fields
}
DeleteRoleRequestValidationError is the validation error returned by DeleteRoleRequest.Validate if the designated constraints aren't met.
func (DeleteRoleRequestValidationError) Cause ¶
func (e DeleteRoleRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteRoleRequestValidationError) Error ¶
func (e DeleteRoleRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteRoleRequestValidationError) ErrorName ¶
func (e DeleteRoleRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteRoleRequestValidationError) Field ¶
func (e DeleteRoleRequestValidationError) Field() string
Field function returns field value.
func (DeleteRoleRequestValidationError) Key ¶
func (e DeleteRoleRequestValidationError) Key() bool
Key function returns key value.
func (DeleteRoleRequestValidationError) Reason ¶
func (e DeleteRoleRequestValidationError) Reason() string
Reason function returns reason value.
type DeleteRoleResponse ¶
type DeleteRoleResponse struct {
// contains filtered or unexported fields
}
func (*DeleteRoleResponse) Descriptor
deprecated
func (*DeleteRoleResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRoleResponse.ProtoReflect.Descriptor instead.
func (*DeleteRoleResponse) ProtoMessage ¶
func (*DeleteRoleResponse) ProtoMessage()
func (*DeleteRoleResponse) ProtoReflect ¶
func (x *DeleteRoleResponse) ProtoReflect() protoreflect.Message
func (*DeleteRoleResponse) Reset ¶
func (x *DeleteRoleResponse) Reset()
func (*DeleteRoleResponse) String ¶
func (x *DeleteRoleResponse) String() string
func (*DeleteRoleResponse) Validate ¶
func (m *DeleteRoleResponse) Validate() error
Validate checks the field values on DeleteRoleResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*DeleteRoleResponse) ValidateAll ¶
func (m *DeleteRoleResponse) ValidateAll() error
ValidateAll checks the field values on DeleteRoleResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteRoleResponseMultiError, or nil if none found.
type DeleteRoleResponseMultiError ¶
type DeleteRoleResponseMultiError []error
DeleteRoleResponseMultiError is an error wrapping multiple validation errors returned by DeleteRoleResponse.ValidateAll() if the designated constraints aren't met.
func (DeleteRoleResponseMultiError) AllErrors ¶
func (m DeleteRoleResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteRoleResponseMultiError) Error ¶
func (m DeleteRoleResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteRoleResponseValidationError ¶
type DeleteRoleResponseValidationError struct {
// contains filtered or unexported fields
}
DeleteRoleResponseValidationError is the validation error returned by DeleteRoleResponse.Validate if the designated constraints aren't met.
func (DeleteRoleResponseValidationError) Cause ¶
func (e DeleteRoleResponseValidationError) Cause() error
Cause function returns cause value.
func (DeleteRoleResponseValidationError) Error ¶
func (e DeleteRoleResponseValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteRoleResponseValidationError) ErrorName ¶
func (e DeleteRoleResponseValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteRoleResponseValidationError) Field ¶
func (e DeleteRoleResponseValidationError) Field() string
Field function returns field value.
func (DeleteRoleResponseValidationError) Key ¶
func (e DeleteRoleResponseValidationError) Key() bool
Key function returns key value.
func (DeleteRoleResponseValidationError) Reason ¶
func (e DeleteRoleResponseValidationError) Reason() string
Reason function returns reason value.
type ErrorReason ¶
type ErrorReason int32
const (
ErrorReason_ROLE_PRESERVED ErrorReason = 0
)
func (ErrorReason) Descriptor ¶
func (ErrorReason) Descriptor() protoreflect.EnumDescriptor
func (ErrorReason) Enum ¶
func (x ErrorReason) Enum() *ErrorReason
func (ErrorReason) EnumDescriptor
deprecated
func (ErrorReason) EnumDescriptor() ([]byte, []int)
Deprecated: Use ErrorReason.Descriptor instead.
func (ErrorReason) Number ¶
func (x ErrorReason) Number() protoreflect.EnumNumber
func (ErrorReason) String ¶
func (x ErrorReason) String() string
func (ErrorReason) Type ¶
func (ErrorReason) Type() protoreflect.EnumType
type GetRolePermissionRequest ¶
type GetRolePermissionRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetRolePermissionRequest) Descriptor
deprecated
func (*GetRolePermissionRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRolePermissionRequest.ProtoReflect.Descriptor instead.
func (*GetRolePermissionRequest) GetId ¶
func (x *GetRolePermissionRequest) GetId() string
func (*GetRolePermissionRequest) ProtoMessage ¶
func (*GetRolePermissionRequest) ProtoMessage()
func (*GetRolePermissionRequest) ProtoReflect ¶
func (x *GetRolePermissionRequest) ProtoReflect() protoreflect.Message
func (*GetRolePermissionRequest) Reset ¶
func (x *GetRolePermissionRequest) Reset()
func (*GetRolePermissionRequest) String ¶
func (x *GetRolePermissionRequest) String() string
func (*GetRolePermissionRequest) Validate ¶
func (m *GetRolePermissionRequest) Validate() error
Validate checks the field values on GetRolePermissionRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetRolePermissionRequest) ValidateAll ¶
func (m *GetRolePermissionRequest) ValidateAll() error
ValidateAll checks the field values on GetRolePermissionRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetRolePermissionRequestMultiError, or nil if none found.
type GetRolePermissionRequestMultiError ¶
type GetRolePermissionRequestMultiError []error
GetRolePermissionRequestMultiError is an error wrapping multiple validation errors returned by GetRolePermissionRequest.ValidateAll() if the designated constraints aren't met.
func (GetRolePermissionRequestMultiError) AllErrors ¶
func (m GetRolePermissionRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetRolePermissionRequestMultiError) Error ¶
func (m GetRolePermissionRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetRolePermissionRequestValidationError ¶
type GetRolePermissionRequestValidationError struct {
// contains filtered or unexported fields
}
GetRolePermissionRequestValidationError is the validation error returned by GetRolePermissionRequest.Validate if the designated constraints aren't met.
func (GetRolePermissionRequestValidationError) Cause ¶
func (e GetRolePermissionRequestValidationError) Cause() error
Cause function returns cause value.
func (GetRolePermissionRequestValidationError) Error ¶
func (e GetRolePermissionRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetRolePermissionRequestValidationError) ErrorName ¶
func (e GetRolePermissionRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetRolePermissionRequestValidationError) Field ¶
func (e GetRolePermissionRequestValidationError) Field() string
Field function returns field value.
func (GetRolePermissionRequestValidationError) Key ¶
func (e GetRolePermissionRequestValidationError) Key() bool
Key function returns key value.
func (GetRolePermissionRequestValidationError) Reason ¶
func (e GetRolePermissionRequestValidationError) Reason() string
Reason function returns reason value.
type GetRolePermissionResponse ¶
type GetRolePermissionResponse struct { Acl []*v1.Permission `protobuf:"bytes,1,rep,name=acl,proto3" json:"acl,omitempty"` DefGroups []*v1.PermissionDefGroup `protobuf:"bytes,2,rep,name=def_groups,json=defGroups,proto3" json:"def_groups,omitempty"` // contains filtered or unexported fields }
func (*GetRolePermissionResponse) Descriptor
deprecated
func (*GetRolePermissionResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetRolePermissionResponse.ProtoReflect.Descriptor instead.
func (*GetRolePermissionResponse) GetAcl ¶
func (x *GetRolePermissionResponse) GetAcl() []*v1.Permission
func (*GetRolePermissionResponse) GetDefGroups ¶
func (x *GetRolePermissionResponse) GetDefGroups() []*v1.PermissionDefGroup
func (*GetRolePermissionResponse) ProtoMessage ¶
func (*GetRolePermissionResponse) ProtoMessage()
func (*GetRolePermissionResponse) ProtoReflect ¶
func (x *GetRolePermissionResponse) ProtoReflect() protoreflect.Message
func (*GetRolePermissionResponse) Reset ¶
func (x *GetRolePermissionResponse) Reset()
func (*GetRolePermissionResponse) String ¶
func (x *GetRolePermissionResponse) String() string
func (*GetRolePermissionResponse) Validate ¶
func (m *GetRolePermissionResponse) Validate() error
Validate checks the field values on GetRolePermissionResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetRolePermissionResponse) ValidateAll ¶
func (m *GetRolePermissionResponse) ValidateAll() error
ValidateAll checks the field values on GetRolePermissionResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetRolePermissionResponseMultiError, or nil if none found.
type GetRolePermissionResponseMultiError ¶
type GetRolePermissionResponseMultiError []error
GetRolePermissionResponseMultiError is an error wrapping multiple validation errors returned by GetRolePermissionResponse.ValidateAll() if the designated constraints aren't met.
func (GetRolePermissionResponseMultiError) AllErrors ¶
func (m GetRolePermissionResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetRolePermissionResponseMultiError) Error ¶
func (m GetRolePermissionResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetRolePermissionResponseValidationError ¶
type GetRolePermissionResponseValidationError struct {
// contains filtered or unexported fields
}
GetRolePermissionResponseValidationError is the validation error returned by GetRolePermissionResponse.Validate if the designated constraints aren't met.
func (GetRolePermissionResponseValidationError) Cause ¶
func (e GetRolePermissionResponseValidationError) Cause() error
Cause function returns cause value.
func (GetRolePermissionResponseValidationError) Error ¶
func (e GetRolePermissionResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetRolePermissionResponseValidationError) ErrorName ¶
func (e GetRolePermissionResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetRolePermissionResponseValidationError) Field ¶
func (e GetRolePermissionResponseValidationError) Field() string
Field function returns field value.
func (GetRolePermissionResponseValidationError) Key ¶
func (e GetRolePermissionResponseValidationError) Key() bool
Key function returns key value.
func (GetRolePermissionResponseValidationError) Reason ¶
func (e GetRolePermissionResponseValidationError) Reason() string
Reason function returns reason value.
type GetRoleRequest ¶
type GetRoleRequest struct { // id or name should be provided Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // id or name should be provided Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*GetRoleRequest) Descriptor
deprecated
func (*GetRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRoleRequest.ProtoReflect.Descriptor instead.
func (*GetRoleRequest) GetId ¶
func (x *GetRoleRequest) GetId() string
func (*GetRoleRequest) GetName ¶
func (x *GetRoleRequest) GetName() string
func (*GetRoleRequest) ProtoMessage ¶
func (*GetRoleRequest) ProtoMessage()
func (*GetRoleRequest) ProtoReflect ¶
func (x *GetRoleRequest) ProtoReflect() protoreflect.Message
func (*GetRoleRequest) Reset ¶
func (x *GetRoleRequest) Reset()
func (*GetRoleRequest) String ¶
func (x *GetRoleRequest) String() string
func (*GetRoleRequest) Validate ¶
func (m *GetRoleRequest) Validate() error
Validate checks the field values on GetRoleRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetRoleRequest) ValidateAll ¶
func (m *GetRoleRequest) ValidateAll() error
ValidateAll checks the field values on GetRoleRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetRoleRequestMultiError, or nil if none found.
type GetRoleRequestMultiError ¶
type GetRoleRequestMultiError []error
GetRoleRequestMultiError is an error wrapping multiple validation errors returned by GetRoleRequest.ValidateAll() if the designated constraints aren't met.
func (GetRoleRequestMultiError) AllErrors ¶
func (m GetRoleRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetRoleRequestMultiError) Error ¶
func (m GetRoleRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetRoleRequestValidationError ¶
type GetRoleRequestValidationError struct {
// contains filtered or unexported fields
}
GetRoleRequestValidationError is the validation error returned by GetRoleRequest.Validate if the designated constraints aren't met.
func (GetRoleRequestValidationError) Cause ¶
func (e GetRoleRequestValidationError) Cause() error
Cause function returns cause value.
func (GetRoleRequestValidationError) Error ¶
func (e GetRoleRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetRoleRequestValidationError) ErrorName ¶
func (e GetRoleRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetRoleRequestValidationError) Field ¶
func (e GetRoleRequestValidationError) Field() string
Field function returns field value.
func (GetRoleRequestValidationError) Key ¶
func (e GetRoleRequestValidationError) Key() bool
Key function returns key value.
func (GetRoleRequestValidationError) Reason ¶
func (e GetRoleRequestValidationError) Reason() string
Reason function returns reason value.
type ListRolesRequest ¶
type ListRolesRequest struct { PageOffset int32 `protobuf:"varint,1,opt,name=page_offset,json=pageOffset,proto3" json:"page_offset,omitempty"` PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` Search string `protobuf:"bytes,3,opt,name=search,proto3" json:"search,omitempty"` Sort []string `protobuf:"bytes,4,rep,name=sort,proto3" json:"sort,omitempty"` Fields *fieldmaskpb.FieldMask `protobuf:"bytes,5,opt,name=fields,proto3" json:"fields,omitempty"` Filter *RoleFilter `protobuf:"bytes,6,opt,name=filter,proto3" json:"filter,omitempty"` // contains filtered or unexported fields }
func (*ListRolesRequest) Descriptor
deprecated
func (*ListRolesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListRolesRequest.ProtoReflect.Descriptor instead.
func (*ListRolesRequest) GetFields ¶
func (x *ListRolesRequest) GetFields() *fieldmaskpb.FieldMask
func (*ListRolesRequest) GetFilter ¶
func (x *ListRolesRequest) GetFilter() *RoleFilter
func (*ListRolesRequest) GetPageOffset ¶
func (x *ListRolesRequest) GetPageOffset() int32
func (*ListRolesRequest) GetPageSize ¶
func (x *ListRolesRequest) GetPageSize() int32
func (*ListRolesRequest) GetSearch ¶
func (x *ListRolesRequest) GetSearch() string
func (*ListRolesRequest) GetSort ¶
func (x *ListRolesRequest) GetSort() []string
func (*ListRolesRequest) ProtoMessage ¶
func (*ListRolesRequest) ProtoMessage()
func (*ListRolesRequest) ProtoReflect ¶
func (x *ListRolesRequest) ProtoReflect() protoreflect.Message
func (*ListRolesRequest) Reset ¶
func (x *ListRolesRequest) Reset()
func (*ListRolesRequest) String ¶
func (x *ListRolesRequest) String() string
func (*ListRolesRequest) Validate ¶
func (m *ListRolesRequest) Validate() error
Validate checks the field values on ListRolesRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ListRolesRequest) ValidateAll ¶
func (m *ListRolesRequest) ValidateAll() error
ValidateAll checks the field values on ListRolesRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListRolesRequestMultiError, or nil if none found.
type ListRolesRequestMultiError ¶
type ListRolesRequestMultiError []error
ListRolesRequestMultiError is an error wrapping multiple validation errors returned by ListRolesRequest.ValidateAll() if the designated constraints aren't met.
func (ListRolesRequestMultiError) AllErrors ¶
func (m ListRolesRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListRolesRequestMultiError) Error ¶
func (m ListRolesRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListRolesRequestValidationError ¶
type ListRolesRequestValidationError struct {
// contains filtered or unexported fields
}
ListRolesRequestValidationError is the validation error returned by ListRolesRequest.Validate if the designated constraints aren't met.
func (ListRolesRequestValidationError) Cause ¶
func (e ListRolesRequestValidationError) Cause() error
Cause function returns cause value.
func (ListRolesRequestValidationError) Error ¶
func (e ListRolesRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListRolesRequestValidationError) ErrorName ¶
func (e ListRolesRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListRolesRequestValidationError) Field ¶
func (e ListRolesRequestValidationError) Field() string
Field function returns field value.
func (ListRolesRequestValidationError) Key ¶
func (e ListRolesRequestValidationError) Key() bool
Key function returns key value.
func (ListRolesRequestValidationError) Reason ¶
func (e ListRolesRequestValidationError) Reason() string
Reason function returns reason value.
type ListRolesResponse ¶
type ListRolesResponse struct { TotalSize int32 `protobuf:"varint,1,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"` FilterSize int32 `protobuf:"varint,2,opt,name=filter_size,json=filterSize,proto3" json:"filter_size,omitempty"` Items []*Role `protobuf:"bytes,3,rep,name=items,proto3" json:"items,omitempty"` // contains filtered or unexported fields }
func (*ListRolesResponse) Descriptor
deprecated
func (*ListRolesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListRolesResponse.ProtoReflect.Descriptor instead.
func (*ListRolesResponse) GetFilterSize ¶
func (x *ListRolesResponse) GetFilterSize() int32
func (*ListRolesResponse) GetItems ¶
func (x *ListRolesResponse) GetItems() []*Role
func (*ListRolesResponse) GetTotalSize ¶
func (x *ListRolesResponse) GetTotalSize() int32
func (*ListRolesResponse) ProtoMessage ¶
func (*ListRolesResponse) ProtoMessage()
func (*ListRolesResponse) ProtoReflect ¶
func (x *ListRolesResponse) ProtoReflect() protoreflect.Message
func (*ListRolesResponse) Reset ¶
func (x *ListRolesResponse) Reset()
func (*ListRolesResponse) String ¶
func (x *ListRolesResponse) String() string
func (*ListRolesResponse) Validate ¶
func (m *ListRolesResponse) Validate() error
Validate checks the field values on ListRolesResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ListRolesResponse) ValidateAll ¶
func (m *ListRolesResponse) ValidateAll() error
ValidateAll checks the field values on ListRolesResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListRolesResponseMultiError, or nil if none found.
type ListRolesResponseMultiError ¶
type ListRolesResponseMultiError []error
ListRolesResponseMultiError is an error wrapping multiple validation errors returned by ListRolesResponse.ValidateAll() if the designated constraints aren't met.
func (ListRolesResponseMultiError) AllErrors ¶
func (m ListRolesResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListRolesResponseMultiError) Error ¶
func (m ListRolesResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListRolesResponseValidationError ¶
type ListRolesResponseValidationError struct {
// contains filtered or unexported fields
}
ListRolesResponseValidationError is the validation error returned by ListRolesResponse.Validate if the designated constraints aren't met.
func (ListRolesResponseValidationError) Cause ¶
func (e ListRolesResponseValidationError) Cause() error
Cause function returns cause value.
func (ListRolesResponseValidationError) Error ¶
func (e ListRolesResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ListRolesResponseValidationError) ErrorName ¶
func (e ListRolesResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ListRolesResponseValidationError) Field ¶
func (e ListRolesResponseValidationError) Field() string
Field function returns field value.
func (ListRolesResponseValidationError) Key ¶
func (e ListRolesResponseValidationError) Key() bool
Key function returns key value.
func (ListRolesResponseValidationError) Reason ¶
func (e ListRolesResponseValidationError) Reason() string
Reason function returns reason value.
type Role ¶
type Role 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"` IsPreserved bool `protobuf:"varint,3,opt,name=is_preserved,json=isPreserved,proto3" json:"is_preserved,omitempty"` Acl []*v1.Permission `protobuf:"bytes,4,rep,name=acl,proto3" json:"acl,omitempty"` DefGroups []*v1.PermissionDefGroup `protobuf:"bytes,5,rep,name=def_groups,json=defGroups,proto3" json:"def_groups,omitempty"` // contains filtered or unexported fields }
func (*Role) Descriptor
deprecated
func (*Role) GetAcl ¶
func (x *Role) GetAcl() []*v1.Permission
func (*Role) GetDefGroups ¶
func (x *Role) GetDefGroups() []*v1.PermissionDefGroup
func (*Role) GetIsPreserved ¶
func (*Role) ProtoMessage ¶
func (*Role) ProtoMessage()
func (*Role) ProtoReflect ¶
func (x *Role) ProtoReflect() protoreflect.Message
func (*Role) Validate ¶
Validate checks the field values on Role with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Role) ValidateAll ¶
ValidateAll checks the field values on Role with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RoleMultiError, or nil if none found.
type RoleFilter ¶
type RoleFilter struct { Id *query.StringFilterOperation `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name *query.StringFilterOperation `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*RoleFilter) Descriptor
deprecated
func (*RoleFilter) Descriptor() ([]byte, []int)
Deprecated: Use RoleFilter.ProtoReflect.Descriptor instead.
func (*RoleFilter) GetId ¶
func (x *RoleFilter) GetId() *query.StringFilterOperation
func (*RoleFilter) GetName ¶
func (x *RoleFilter) GetName() *query.StringFilterOperation
func (*RoleFilter) ProtoMessage ¶
func (*RoleFilter) ProtoMessage()
func (*RoleFilter) ProtoReflect ¶
func (x *RoleFilter) ProtoReflect() protoreflect.Message
func (*RoleFilter) Reset ¶
func (x *RoleFilter) Reset()
func (*RoleFilter) String ¶
func (x *RoleFilter) String() string
func (*RoleFilter) Validate ¶
func (m *RoleFilter) Validate() error
Validate checks the field values on RoleFilter with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*RoleFilter) ValidateAll ¶
func (m *RoleFilter) ValidateAll() error
ValidateAll checks the field values on RoleFilter with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RoleFilterMultiError, or nil if none found.
type RoleFilterMultiError ¶
type RoleFilterMultiError []error
RoleFilterMultiError is an error wrapping multiple validation errors returned by RoleFilter.ValidateAll() if the designated constraints aren't met.
func (RoleFilterMultiError) AllErrors ¶
func (m RoleFilterMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RoleFilterMultiError) Error ¶
func (m RoleFilterMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RoleFilterValidationError ¶
type RoleFilterValidationError struct {
// contains filtered or unexported fields
}
RoleFilterValidationError is the validation error returned by RoleFilter.Validate if the designated constraints aren't met.
func (RoleFilterValidationError) Cause ¶
func (e RoleFilterValidationError) Cause() error
Cause function returns cause value.
func (RoleFilterValidationError) Error ¶
func (e RoleFilterValidationError) Error() string
Error satisfies the builtin error interface
func (RoleFilterValidationError) ErrorName ¶
func (e RoleFilterValidationError) ErrorName() string
ErrorName returns error name.
func (RoleFilterValidationError) Field ¶
func (e RoleFilterValidationError) Field() string
Field function returns field value.
func (RoleFilterValidationError) Key ¶
func (e RoleFilterValidationError) Key() bool
Key function returns key value.
func (RoleFilterValidationError) Reason ¶
func (e RoleFilterValidationError) Reason() string
Reason function returns reason value.
type RoleMultiError ¶
type RoleMultiError []error
RoleMultiError is an error wrapping multiple validation errors returned by Role.ValidateAll() if the designated constraints aren't met.
func (RoleMultiError) AllErrors ¶
func (m RoleMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RoleMultiError) Error ¶
func (m RoleMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RoleServiceClient ¶
type RoleServiceClient interface { // authz: user.role,*,list ListRoles(ctx context.Context, in *ListRolesRequest, opts ...grpc.CallOption) (*ListRolesResponse, error) // authz: user.role,id,get GetRole(ctx context.Context, in *GetRoleRequest, opts ...grpc.CallOption) (*Role, error) // authz: user.role,*,create CreateRole(ctx context.Context, in *CreateRoleRequest, opts ...grpc.CallOption) (*Role, error) // authz: user.role,id,update UpdateRole(ctx context.Context, in *UpdateRoleRequest, opts ...grpc.CallOption) (*Role, error) // authz: user.role,id,delete DeleteRole(ctx context.Context, in *DeleteRoleRequest, opts ...grpc.CallOption) (*DeleteRoleResponse, error) GetRolePermission(ctx context.Context, in *GetRolePermissionRequest, opts ...grpc.CallOption) (*GetRolePermissionResponse, error) UpdateRolePermission(ctx context.Context, in *UpdateRolePermissionRequest, opts ...grpc.CallOption) (*UpdateRolePermissionResponse, error) }
RoleServiceClient is the client API for RoleService 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 NewRoleServiceClient ¶
func NewRoleServiceClient(cc grpc.ClientConnInterface) RoleServiceClient
type RoleServiceHTTPClient ¶
type RoleServiceHTTPClient interface { CreateRole(ctx context.Context, req *CreateRoleRequest, opts ...http.CallOption) (rsp *Role, err error) DeleteRole(ctx context.Context, req *DeleteRoleRequest, opts ...http.CallOption) (rsp *DeleteRoleResponse, err error) GetRole(ctx context.Context, req *GetRoleRequest, opts ...http.CallOption) (rsp *Role, err error) GetRolePermission(ctx context.Context, req *GetRolePermissionRequest, opts ...http.CallOption) (rsp *GetRolePermissionResponse, err error) ListRoles(ctx context.Context, req *ListRolesRequest, opts ...http.CallOption) (rsp *ListRolesResponse, err error) UpdateRole(ctx context.Context, req *UpdateRoleRequest, opts ...http.CallOption) (rsp *Role, err error) UpdateRolePermission(ctx context.Context, req *UpdateRolePermissionRequest, opts ...http.CallOption) (rsp *UpdateRolePermissionResponse, err error) }
func NewRoleServiceHTTPClient ¶
func NewRoleServiceHTTPClient(client *http.Client) RoleServiceHTTPClient
type RoleServiceHTTPClientImpl ¶
type RoleServiceHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*RoleServiceHTTPClientImpl) CreateRole ¶
func (c *RoleServiceHTTPClientImpl) CreateRole(ctx context.Context, in *CreateRoleRequest, opts ...http.CallOption) (*Role, error)
func (*RoleServiceHTTPClientImpl) DeleteRole ¶
func (c *RoleServiceHTTPClientImpl) DeleteRole(ctx context.Context, in *DeleteRoleRequest, opts ...http.CallOption) (*DeleteRoleResponse, error)
func (*RoleServiceHTTPClientImpl) GetRole ¶
func (c *RoleServiceHTTPClientImpl) GetRole(ctx context.Context, in *GetRoleRequest, opts ...http.CallOption) (*Role, error)
func (*RoleServiceHTTPClientImpl) GetRolePermission ¶
func (c *RoleServiceHTTPClientImpl) GetRolePermission(ctx context.Context, in *GetRolePermissionRequest, opts ...http.CallOption) (*GetRolePermissionResponse, error)
func (*RoleServiceHTTPClientImpl) ListRoles ¶
func (c *RoleServiceHTTPClientImpl) ListRoles(ctx context.Context, in *ListRolesRequest, opts ...http.CallOption) (*ListRolesResponse, error)
func (*RoleServiceHTTPClientImpl) UpdateRole ¶
func (c *RoleServiceHTTPClientImpl) UpdateRole(ctx context.Context, in *UpdateRoleRequest, opts ...http.CallOption) (*Role, error)
func (*RoleServiceHTTPClientImpl) UpdateRolePermission ¶
func (c *RoleServiceHTTPClientImpl) UpdateRolePermission(ctx context.Context, in *UpdateRolePermissionRequest, opts ...http.CallOption) (*UpdateRolePermissionResponse, error)
type RoleServiceHTTPServer ¶
type RoleServiceHTTPServer interface { CreateRole(context.Context, *CreateRoleRequest) (*Role, error) DeleteRole(context.Context, *DeleteRoleRequest) (*DeleteRoleResponse, error) GetRole(context.Context, *GetRoleRequest) (*Role, error) GetRolePermission(context.Context, *GetRolePermissionRequest) (*GetRolePermissionResponse, error) ListRoles(context.Context, *ListRolesRequest) (*ListRolesResponse, error) UpdateRole(context.Context, *UpdateRoleRequest) (*Role, error) UpdateRolePermission(context.Context, *UpdateRolePermissionRequest) (*UpdateRolePermissionResponse, error) }
type RoleServiceServer ¶
type RoleServiceServer interface { // authz: user.role,*,list ListRoles(context.Context, *ListRolesRequest) (*ListRolesResponse, error) // authz: user.role,id,get GetRole(context.Context, *GetRoleRequest) (*Role, error) // authz: user.role,*,create CreateRole(context.Context, *CreateRoleRequest) (*Role, error) // authz: user.role,id,update UpdateRole(context.Context, *UpdateRoleRequest) (*Role, error) // authz: user.role,id,delete DeleteRole(context.Context, *DeleteRoleRequest) (*DeleteRoleResponse, error) GetRolePermission(context.Context, *GetRolePermissionRequest) (*GetRolePermissionResponse, error) UpdateRolePermission(context.Context, *UpdateRolePermissionRequest) (*UpdateRolePermissionResponse, error) }
RoleServiceServer is the server API for RoleService service. All implementations should embed UnimplementedRoleServiceServer for forward compatibility
func NewRoleServiceClientProxy ¶
func NewRoleServiceClientProxy(cc RoleServiceClient) RoleServiceServer
type RoleValidationError ¶
type RoleValidationError struct {
// contains filtered or unexported fields
}
RoleValidationError is the validation error returned by Role.Validate if the designated constraints aren't met.
func (RoleValidationError) Cause ¶
func (e RoleValidationError) Cause() error
Cause function returns cause value.
func (RoleValidationError) Error ¶
func (e RoleValidationError) Error() string
Error satisfies the builtin error interface
func (RoleValidationError) ErrorName ¶
func (e RoleValidationError) ErrorName() string
ErrorName returns error name.
func (RoleValidationError) Field ¶
func (e RoleValidationError) Field() string
Field function returns field value.
func (RoleValidationError) Key ¶
func (e RoleValidationError) Key() bool
Key function returns key value.
func (RoleValidationError) Reason ¶
func (e RoleValidationError) Reason() string
Reason function returns reason value.
type UnimplementedRoleServiceServer ¶
type UnimplementedRoleServiceServer struct { }
UnimplementedRoleServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedRoleServiceServer) CreateRole ¶
func (UnimplementedRoleServiceServer) CreateRole(context.Context, *CreateRoleRequest) (*Role, error)
func (UnimplementedRoleServiceServer) DeleteRole ¶
func (UnimplementedRoleServiceServer) DeleteRole(context.Context, *DeleteRoleRequest) (*DeleteRoleResponse, error)
func (UnimplementedRoleServiceServer) GetRole ¶
func (UnimplementedRoleServiceServer) GetRole(context.Context, *GetRoleRequest) (*Role, error)
func (UnimplementedRoleServiceServer) GetRolePermission ¶
func (UnimplementedRoleServiceServer) GetRolePermission(context.Context, *GetRolePermissionRequest) (*GetRolePermissionResponse, error)
func (UnimplementedRoleServiceServer) ListRoles ¶
func (UnimplementedRoleServiceServer) ListRoles(context.Context, *ListRolesRequest) (*ListRolesResponse, error)
func (UnimplementedRoleServiceServer) UpdateRole ¶
func (UnimplementedRoleServiceServer) UpdateRole(context.Context, *UpdateRoleRequest) (*Role, error)
func (UnimplementedRoleServiceServer) UpdateRolePermission ¶
func (UnimplementedRoleServiceServer) UpdateRolePermission(context.Context, *UpdateRolePermissionRequest) (*UpdateRolePermissionResponse, error)
type UnsafeRoleServiceServer ¶
type UnsafeRoleServiceServer interface {
// contains filtered or unexported methods
}
UnsafeRoleServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RoleServiceServer will result in compilation errors.
type UpdateRole ¶
type UpdateRole 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"` Acl []*UpdateRolePermissionAcl `protobuf:"bytes,3,rep,name=acl,proto3" json:"acl,omitempty"` // contains filtered or unexported fields }
func (*UpdateRole) Descriptor
deprecated
func (*UpdateRole) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRole.ProtoReflect.Descriptor instead.
func (*UpdateRole) GetAcl ¶
func (x *UpdateRole) GetAcl() []*UpdateRolePermissionAcl
func (*UpdateRole) GetId ¶
func (x *UpdateRole) GetId() string
func (*UpdateRole) GetName ¶
func (x *UpdateRole) GetName() string
func (*UpdateRole) ProtoMessage ¶
func (*UpdateRole) ProtoMessage()
func (*UpdateRole) ProtoReflect ¶
func (x *UpdateRole) ProtoReflect() protoreflect.Message
func (*UpdateRole) Reset ¶
func (x *UpdateRole) Reset()
func (*UpdateRole) String ¶
func (x *UpdateRole) String() string
func (*UpdateRole) Validate ¶
func (m *UpdateRole) Validate() error
Validate checks the field values on UpdateRole with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UpdateRole) ValidateAll ¶
func (m *UpdateRole) ValidateAll() error
ValidateAll checks the field values on UpdateRole with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateRoleMultiError, or nil if none found.
type UpdateRoleMultiError ¶
type UpdateRoleMultiError []error
UpdateRoleMultiError is an error wrapping multiple validation errors returned by UpdateRole.ValidateAll() if the designated constraints aren't met.
func (UpdateRoleMultiError) AllErrors ¶
func (m UpdateRoleMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateRoleMultiError) Error ¶
func (m UpdateRoleMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateRolePermissionAcl ¶
type UpdateRolePermissionAcl struct { Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` Resource string `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"` Action string `protobuf:"bytes,3,opt,name=action,proto3" json:"action,omitempty"` Effect v1.Effect `protobuf:"varint,5,opt,name=effect,proto3,enum=user.api.permission.v1.Effect" json:"effect,omitempty"` // contains filtered or unexported fields }
func (*UpdateRolePermissionAcl) Descriptor
deprecated
func (*UpdateRolePermissionAcl) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRolePermissionAcl.ProtoReflect.Descriptor instead.
func (*UpdateRolePermissionAcl) GetAction ¶
func (x *UpdateRolePermissionAcl) GetAction() string
func (*UpdateRolePermissionAcl) GetEffect ¶
func (x *UpdateRolePermissionAcl) GetEffect() v1.Effect
func (*UpdateRolePermissionAcl) GetNamespace ¶
func (x *UpdateRolePermissionAcl) GetNamespace() string
func (*UpdateRolePermissionAcl) GetResource ¶
func (x *UpdateRolePermissionAcl) GetResource() string
func (*UpdateRolePermissionAcl) ProtoMessage ¶
func (*UpdateRolePermissionAcl) ProtoMessage()
func (*UpdateRolePermissionAcl) ProtoReflect ¶
func (x *UpdateRolePermissionAcl) ProtoReflect() protoreflect.Message
func (*UpdateRolePermissionAcl) Reset ¶
func (x *UpdateRolePermissionAcl) Reset()
func (*UpdateRolePermissionAcl) String ¶
func (x *UpdateRolePermissionAcl) String() string
func (*UpdateRolePermissionAcl) Validate ¶
func (m *UpdateRolePermissionAcl) Validate() error
Validate checks the field values on UpdateRolePermissionAcl with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UpdateRolePermissionAcl) ValidateAll ¶
func (m *UpdateRolePermissionAcl) ValidateAll() error
ValidateAll checks the field values on UpdateRolePermissionAcl with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateRolePermissionAclMultiError, or nil if none found.
type UpdateRolePermissionAclMultiError ¶
type UpdateRolePermissionAclMultiError []error
UpdateRolePermissionAclMultiError is an error wrapping multiple validation errors returned by UpdateRolePermissionAcl.ValidateAll() if the designated constraints aren't met.
func (UpdateRolePermissionAclMultiError) AllErrors ¶
func (m UpdateRolePermissionAclMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateRolePermissionAclMultiError) Error ¶
func (m UpdateRolePermissionAclMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateRolePermissionAclValidationError ¶
type UpdateRolePermissionAclValidationError struct {
// contains filtered or unexported fields
}
UpdateRolePermissionAclValidationError is the validation error returned by UpdateRolePermissionAcl.Validate if the designated constraints aren't met.
func (UpdateRolePermissionAclValidationError) Cause ¶
func (e UpdateRolePermissionAclValidationError) Cause() error
Cause function returns cause value.
func (UpdateRolePermissionAclValidationError) Error ¶
func (e UpdateRolePermissionAclValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateRolePermissionAclValidationError) ErrorName ¶
func (e UpdateRolePermissionAclValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateRolePermissionAclValidationError) Field ¶
func (e UpdateRolePermissionAclValidationError) Field() string
Field function returns field value.
func (UpdateRolePermissionAclValidationError) Key ¶
func (e UpdateRolePermissionAclValidationError) Key() bool
Key function returns key value.
func (UpdateRolePermissionAclValidationError) Reason ¶
func (e UpdateRolePermissionAclValidationError) Reason() string
Reason function returns reason value.
type UpdateRolePermissionRequest ¶
type UpdateRolePermissionRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Acl []*UpdateRolePermissionAcl `protobuf:"bytes,2,rep,name=acl,proto3" json:"acl,omitempty"` // contains filtered or unexported fields }
func (*UpdateRolePermissionRequest) Descriptor
deprecated
func (*UpdateRolePermissionRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRolePermissionRequest.ProtoReflect.Descriptor instead.
func (*UpdateRolePermissionRequest) GetAcl ¶
func (x *UpdateRolePermissionRequest) GetAcl() []*UpdateRolePermissionAcl
func (*UpdateRolePermissionRequest) GetId ¶
func (x *UpdateRolePermissionRequest) GetId() string
func (*UpdateRolePermissionRequest) ProtoMessage ¶
func (*UpdateRolePermissionRequest) ProtoMessage()
func (*UpdateRolePermissionRequest) ProtoReflect ¶
func (x *UpdateRolePermissionRequest) ProtoReflect() protoreflect.Message
func (*UpdateRolePermissionRequest) Reset ¶
func (x *UpdateRolePermissionRequest) Reset()
func (*UpdateRolePermissionRequest) String ¶
func (x *UpdateRolePermissionRequest) String() string
func (*UpdateRolePermissionRequest) Validate ¶
func (m *UpdateRolePermissionRequest) Validate() error
Validate checks the field values on UpdateRolePermissionRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UpdateRolePermissionRequest) ValidateAll ¶
func (m *UpdateRolePermissionRequest) ValidateAll() error
ValidateAll checks the field values on UpdateRolePermissionRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateRolePermissionRequestMultiError, or nil if none found.
type UpdateRolePermissionRequestMultiError ¶
type UpdateRolePermissionRequestMultiError []error
UpdateRolePermissionRequestMultiError is an error wrapping multiple validation errors returned by UpdateRolePermissionRequest.ValidateAll() if the designated constraints aren't met.
func (UpdateRolePermissionRequestMultiError) AllErrors ¶
func (m UpdateRolePermissionRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateRolePermissionRequestMultiError) Error ¶
func (m UpdateRolePermissionRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateRolePermissionRequestValidationError ¶
type UpdateRolePermissionRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateRolePermissionRequestValidationError is the validation error returned by UpdateRolePermissionRequest.Validate if the designated constraints aren't met.
func (UpdateRolePermissionRequestValidationError) Cause ¶
func (e UpdateRolePermissionRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateRolePermissionRequestValidationError) Error ¶
func (e UpdateRolePermissionRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateRolePermissionRequestValidationError) ErrorName ¶
func (e UpdateRolePermissionRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateRolePermissionRequestValidationError) Field ¶
func (e UpdateRolePermissionRequestValidationError) Field() string
Field function returns field value.
func (UpdateRolePermissionRequestValidationError) Key ¶
func (e UpdateRolePermissionRequestValidationError) Key() bool
Key function returns key value.
func (UpdateRolePermissionRequestValidationError) Reason ¶
func (e UpdateRolePermissionRequestValidationError) Reason() string
Reason function returns reason value.
type UpdateRolePermissionResponse ¶
type UpdateRolePermissionResponse struct {
// contains filtered or unexported fields
}
func (*UpdateRolePermissionResponse) Descriptor
deprecated
func (*UpdateRolePermissionResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRolePermissionResponse.ProtoReflect.Descriptor instead.
func (*UpdateRolePermissionResponse) ProtoMessage ¶
func (*UpdateRolePermissionResponse) ProtoMessage()
func (*UpdateRolePermissionResponse) ProtoReflect ¶
func (x *UpdateRolePermissionResponse) ProtoReflect() protoreflect.Message
func (*UpdateRolePermissionResponse) Reset ¶
func (x *UpdateRolePermissionResponse) Reset()
func (*UpdateRolePermissionResponse) String ¶
func (x *UpdateRolePermissionResponse) String() string
func (*UpdateRolePermissionResponse) Validate ¶
func (m *UpdateRolePermissionResponse) Validate() error
Validate checks the field values on UpdateRolePermissionResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UpdateRolePermissionResponse) ValidateAll ¶
func (m *UpdateRolePermissionResponse) ValidateAll() error
ValidateAll checks the field values on UpdateRolePermissionResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateRolePermissionResponseMultiError, or nil if none found.
type UpdateRolePermissionResponseMultiError ¶
type UpdateRolePermissionResponseMultiError []error
UpdateRolePermissionResponseMultiError is an error wrapping multiple validation errors returned by UpdateRolePermissionResponse.ValidateAll() if the designated constraints aren't met.
func (UpdateRolePermissionResponseMultiError) AllErrors ¶
func (m UpdateRolePermissionResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateRolePermissionResponseMultiError) Error ¶
func (m UpdateRolePermissionResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateRolePermissionResponseValidationError ¶
type UpdateRolePermissionResponseValidationError struct {
// contains filtered or unexported fields
}
UpdateRolePermissionResponseValidationError is the validation error returned by UpdateRolePermissionResponse.Validate if the designated constraints aren't met.
func (UpdateRolePermissionResponseValidationError) Cause ¶
func (e UpdateRolePermissionResponseValidationError) Cause() error
Cause function returns cause value.
func (UpdateRolePermissionResponseValidationError) Error ¶
func (e UpdateRolePermissionResponseValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateRolePermissionResponseValidationError) ErrorName ¶
func (e UpdateRolePermissionResponseValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateRolePermissionResponseValidationError) Field ¶
func (e UpdateRolePermissionResponseValidationError) Field() string
Field function returns field value.
func (UpdateRolePermissionResponseValidationError) Key ¶
func (e UpdateRolePermissionResponseValidationError) Key() bool
Key function returns key value.
func (UpdateRolePermissionResponseValidationError) Reason ¶
func (e UpdateRolePermissionResponseValidationError) Reason() string
Reason function returns reason value.
type UpdateRoleRequest ¶
type UpdateRoleRequest struct { Role *UpdateRole `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"` UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // contains filtered or unexported fields }
func (*UpdateRoleRequest) Descriptor
deprecated
func (*UpdateRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRoleRequest.ProtoReflect.Descriptor instead.
func (*UpdateRoleRequest) GetRole ¶
func (x *UpdateRoleRequest) GetRole() *UpdateRole
func (*UpdateRoleRequest) GetUpdateMask ¶
func (x *UpdateRoleRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*UpdateRoleRequest) ProtoMessage ¶
func (*UpdateRoleRequest) ProtoMessage()
func (*UpdateRoleRequest) ProtoReflect ¶
func (x *UpdateRoleRequest) ProtoReflect() protoreflect.Message
func (*UpdateRoleRequest) Reset ¶
func (x *UpdateRoleRequest) Reset()
func (*UpdateRoleRequest) String ¶
func (x *UpdateRoleRequest) String() string
func (*UpdateRoleRequest) Validate ¶
func (m *UpdateRoleRequest) Validate() error
Validate checks the field values on UpdateRoleRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UpdateRoleRequest) ValidateAll ¶
func (m *UpdateRoleRequest) ValidateAll() error
ValidateAll checks the field values on UpdateRoleRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateRoleRequestMultiError, or nil if none found.
type UpdateRoleRequestMultiError ¶
type UpdateRoleRequestMultiError []error
UpdateRoleRequestMultiError is an error wrapping multiple validation errors returned by UpdateRoleRequest.ValidateAll() if the designated constraints aren't met.
func (UpdateRoleRequestMultiError) AllErrors ¶
func (m UpdateRoleRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateRoleRequestMultiError) Error ¶
func (m UpdateRoleRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateRoleRequestValidationError ¶
type UpdateRoleRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateRoleRequestValidationError is the validation error returned by UpdateRoleRequest.Validate if the designated constraints aren't met.
func (UpdateRoleRequestValidationError) Cause ¶
func (e UpdateRoleRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateRoleRequestValidationError) Error ¶
func (e UpdateRoleRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateRoleRequestValidationError) ErrorName ¶
func (e UpdateRoleRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateRoleRequestValidationError) Field ¶
func (e UpdateRoleRequestValidationError) Field() string
Field function returns field value.
func (UpdateRoleRequestValidationError) Key ¶
func (e UpdateRoleRequestValidationError) Key() bool
Key function returns key value.
func (UpdateRoleRequestValidationError) Reason ¶
func (e UpdateRoleRequestValidationError) Reason() string
Reason function returns reason value.
type UpdateRoleValidationError ¶
type UpdateRoleValidationError struct {
// contains filtered or unexported fields
}
UpdateRoleValidationError is the validation error returned by UpdateRole.Validate if the designated constraints aren't met.
func (UpdateRoleValidationError) Cause ¶
func (e UpdateRoleValidationError) Cause() error
Cause function returns cause value.
func (UpdateRoleValidationError) Error ¶
func (e UpdateRoleValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateRoleValidationError) ErrorName ¶
func (e UpdateRoleValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateRoleValidationError) Field ¶
func (e UpdateRoleValidationError) Field() string
Field function returns field value.
func (UpdateRoleValidationError) Key ¶
func (e UpdateRoleValidationError) Key() bool
Key function returns key value.
func (UpdateRoleValidationError) Reason ¶
func (e UpdateRoleValidationError) Reason() string
Reason function returns reason value.