Documentation ¶
Index ¶
- Variables
- func RegisterDispatchServiceServer(s grpc.ServiceRegistrar, srv DispatchServiceServer)
- type DispatchCheckRequest
- func (*DispatchCheckRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DispatchCheckRequest) GetMetadata() *ResolverMeta
- func (x *DispatchCheckRequest) GetResourceAndRelation() *v1.ObjectAndRelation
- func (x *DispatchCheckRequest) GetSubject() *v1.ObjectAndRelation
- func (cr *DispatchCheckRequest) MarshalZerologObject(e *zerolog.Event)
- func (*DispatchCheckRequest) ProtoMessage()
- func (x *DispatchCheckRequest) ProtoReflect() protoreflect.Message
- func (x *DispatchCheckRequest) Reset()
- func (x *DispatchCheckRequest) String() string
- func (m *DispatchCheckRequest) Validate() error
- func (m *DispatchCheckRequest) ValidateAll() error
- type DispatchCheckRequestMultiError
- type DispatchCheckRequestValidationError
- func (e DispatchCheckRequestValidationError) Cause() error
- func (e DispatchCheckRequestValidationError) Error() string
- func (e DispatchCheckRequestValidationError) ErrorName() string
- func (e DispatchCheckRequestValidationError) Field() string
- func (e DispatchCheckRequestValidationError) Key() bool
- func (e DispatchCheckRequestValidationError) Reason() string
- type DispatchCheckResponse
- func (*DispatchCheckResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DispatchCheckResponse) GetMembership() DispatchCheckResponse_Membership
- func (x *DispatchCheckResponse) GetMetadata() *ResponseMeta
- func (cr *DispatchCheckResponse) MarshalZerologObject(e *zerolog.Event)
- func (*DispatchCheckResponse) ProtoMessage()
- func (x *DispatchCheckResponse) ProtoReflect() protoreflect.Message
- func (x *DispatchCheckResponse) Reset()
- func (x *DispatchCheckResponse) String() string
- func (m *DispatchCheckResponse) Validate() error
- func (m *DispatchCheckResponse) ValidateAll() error
- type DispatchCheckResponseMultiError
- type DispatchCheckResponseValidationError
- func (e DispatchCheckResponseValidationError) Cause() error
- func (e DispatchCheckResponseValidationError) Error() string
- func (e DispatchCheckResponseValidationError) ErrorName() string
- func (e DispatchCheckResponseValidationError) Field() string
- func (e DispatchCheckResponseValidationError) Key() bool
- func (e DispatchCheckResponseValidationError) Reason() string
- type DispatchCheckResponse_Membership
- func (DispatchCheckResponse_Membership) Descriptor() protoreflect.EnumDescriptor
- func (x DispatchCheckResponse_Membership) Enum() *DispatchCheckResponse_Membership
- func (DispatchCheckResponse_Membership) EnumDescriptor() ([]byte, []int)deprecated
- func (x DispatchCheckResponse_Membership) Number() protoreflect.EnumNumber
- func (x DispatchCheckResponse_Membership) String() string
- func (DispatchCheckResponse_Membership) Type() protoreflect.EnumType
- type DispatchExpandRequest
- func (*DispatchExpandRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DispatchExpandRequest) GetExpansionMode() DispatchExpandRequest_ExpansionMode
- func (x *DispatchExpandRequest) GetMetadata() *ResolverMeta
- func (x *DispatchExpandRequest) GetResourceAndRelation() *v1.ObjectAndRelation
- func (er *DispatchExpandRequest) MarshalZerologObject(e *zerolog.Event)
- func (*DispatchExpandRequest) ProtoMessage()
- func (x *DispatchExpandRequest) ProtoReflect() protoreflect.Message
- func (x *DispatchExpandRequest) Reset()
- func (x *DispatchExpandRequest) String() string
- func (m *DispatchExpandRequest) Validate() error
- func (m *DispatchExpandRequest) ValidateAll() error
- type DispatchExpandRequestMultiError
- type DispatchExpandRequestValidationError
- func (e DispatchExpandRequestValidationError) Cause() error
- func (e DispatchExpandRequestValidationError) Error() string
- func (e DispatchExpandRequestValidationError) ErrorName() string
- func (e DispatchExpandRequestValidationError) Field() string
- func (e DispatchExpandRequestValidationError) Key() bool
- func (e DispatchExpandRequestValidationError) Reason() string
- type DispatchExpandRequest_ExpansionMode
- func (DispatchExpandRequest_ExpansionMode) Descriptor() protoreflect.EnumDescriptor
- func (x DispatchExpandRequest_ExpansionMode) Enum() *DispatchExpandRequest_ExpansionMode
- func (DispatchExpandRequest_ExpansionMode) EnumDescriptor() ([]byte, []int)deprecated
- func (x DispatchExpandRequest_ExpansionMode) Number() protoreflect.EnumNumber
- func (x DispatchExpandRequest_ExpansionMode) String() string
- func (DispatchExpandRequest_ExpansionMode) Type() protoreflect.EnumType
- type DispatchExpandResponse
- func (*DispatchExpandResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DispatchExpandResponse) GetMetadata() *ResponseMeta
- func (x *DispatchExpandResponse) GetTreeNode() *v1.RelationTupleTreeNode
- func (cr *DispatchExpandResponse) MarshalZerologObject(e *zerolog.Event)
- func (*DispatchExpandResponse) ProtoMessage()
- func (x *DispatchExpandResponse) ProtoReflect() protoreflect.Message
- func (x *DispatchExpandResponse) Reset()
- func (x *DispatchExpandResponse) String() string
- func (m *DispatchExpandResponse) Validate() error
- func (m *DispatchExpandResponse) ValidateAll() error
- type DispatchExpandResponseMultiError
- type DispatchExpandResponseValidationError
- func (e DispatchExpandResponseValidationError) Cause() error
- func (e DispatchExpandResponseValidationError) Error() string
- func (e DispatchExpandResponseValidationError) ErrorName() string
- func (e DispatchExpandResponseValidationError) Field() string
- func (e DispatchExpandResponseValidationError) Key() bool
- func (e DispatchExpandResponseValidationError) Reason() string
- type DispatchLookupRequest
- func (*DispatchLookupRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DispatchLookupRequest) GetDirectStack() []*v1.RelationReference
- func (x *DispatchLookupRequest) GetLimit() uint32
- func (x *DispatchLookupRequest) GetMetadata() *ResolverMeta
- func (x *DispatchLookupRequest) GetObjectRelation() *v1.RelationReference
- func (x *DispatchLookupRequest) GetSubject() *v1.ObjectAndRelation
- func (x *DispatchLookupRequest) GetTtuStack() []*v1.RelationReference
- func (lr *DispatchLookupRequest) MarshalZerologObject(e *zerolog.Event)
- func (*DispatchLookupRequest) ProtoMessage()
- func (x *DispatchLookupRequest) ProtoReflect() protoreflect.Message
- func (x *DispatchLookupRequest) Reset()
- func (x *DispatchLookupRequest) String() string
- func (m *DispatchLookupRequest) Validate() error
- func (m *DispatchLookupRequest) ValidateAll() error
- type DispatchLookupRequestMultiError
- type DispatchLookupRequestValidationError
- func (e DispatchLookupRequestValidationError) Cause() error
- func (e DispatchLookupRequestValidationError) Error() string
- func (e DispatchLookupRequestValidationError) ErrorName() string
- func (e DispatchLookupRequestValidationError) Field() string
- func (e DispatchLookupRequestValidationError) Key() bool
- func (e DispatchLookupRequestValidationError) Reason() string
- type DispatchLookupResponse
- func (*DispatchLookupResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DispatchLookupResponse) GetMetadata() *ResponseMeta
- func (x *DispatchLookupResponse) GetNextPageReference() string
- func (x *DispatchLookupResponse) GetResolvedOnrs() []*v1.ObjectAndRelation
- func (cr *DispatchLookupResponse) MarshalZerologObject(e *zerolog.Event)
- func (*DispatchLookupResponse) ProtoMessage()
- func (x *DispatchLookupResponse) ProtoReflect() protoreflect.Message
- func (x *DispatchLookupResponse) Reset()
- func (x *DispatchLookupResponse) String() string
- func (m *DispatchLookupResponse) Validate() error
- func (m *DispatchLookupResponse) ValidateAll() error
- type DispatchLookupResponseMultiError
- type DispatchLookupResponseValidationError
- func (e DispatchLookupResponseValidationError) Cause() error
- func (e DispatchLookupResponseValidationError) Error() string
- func (e DispatchLookupResponseValidationError) ErrorName() string
- func (e DispatchLookupResponseValidationError) Field() string
- func (e DispatchLookupResponseValidationError) Key() bool
- func (e DispatchLookupResponseValidationError) Reason() string
- type DispatchReachableResourcesRequest
- func (*DispatchReachableResourcesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DispatchReachableResourcesRequest) GetMetadata() *ResolverMeta
- func (x *DispatchReachableResourcesRequest) GetObjectRelation() *v1.RelationReference
- func (x *DispatchReachableResourcesRequest) GetSubject() *v1.ObjectAndRelation
- func (lr *DispatchReachableResourcesRequest) MarshalZerologObject(e *zerolog.Event)
- func (*DispatchReachableResourcesRequest) ProtoMessage()
- func (x *DispatchReachableResourcesRequest) ProtoReflect() protoreflect.Message
- func (x *DispatchReachableResourcesRequest) Reset()
- func (x *DispatchReachableResourcesRequest) String() string
- func (m *DispatchReachableResourcesRequest) Validate() error
- func (m *DispatchReachableResourcesRequest) ValidateAll() error
- type DispatchReachableResourcesRequestMultiError
- type DispatchReachableResourcesRequestValidationError
- func (e DispatchReachableResourcesRequestValidationError) Cause() error
- func (e DispatchReachableResourcesRequestValidationError) Error() string
- func (e DispatchReachableResourcesRequestValidationError) ErrorName() string
- func (e DispatchReachableResourcesRequestValidationError) Field() string
- func (e DispatchReachableResourcesRequestValidationError) Key() bool
- func (e DispatchReachableResourcesRequestValidationError) Reason() string
- type DispatchReachableResourcesResponse
- func (*DispatchReachableResourcesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DispatchReachableResourcesResponse) GetMetadata() *ResponseMeta
- func (x *DispatchReachableResourcesResponse) GetResource() *ReachableResource
- func (*DispatchReachableResourcesResponse) ProtoMessage()
- func (x *DispatchReachableResourcesResponse) ProtoReflect() protoreflect.Message
- func (x *DispatchReachableResourcesResponse) Reset()
- func (x *DispatchReachableResourcesResponse) String() string
- func (m *DispatchReachableResourcesResponse) Validate() error
- func (m *DispatchReachableResourcesResponse) ValidateAll() error
- type DispatchReachableResourcesResponseMultiError
- type DispatchReachableResourcesResponseValidationError
- func (e DispatchReachableResourcesResponseValidationError) Cause() error
- func (e DispatchReachableResourcesResponseValidationError) Error() string
- func (e DispatchReachableResourcesResponseValidationError) ErrorName() string
- func (e DispatchReachableResourcesResponseValidationError) Field() string
- func (e DispatchReachableResourcesResponseValidationError) Key() bool
- func (e DispatchReachableResourcesResponseValidationError) Reason() string
- type DispatchServiceClient
- type DispatchServiceServer
- type DispatchService_DispatchReachableResourcesClient
- type DispatchService_DispatchReachableResourcesServer
- type ReachableResource
- func (*ReachableResource) Descriptor() ([]byte, []int)deprecated
- func (x *ReachableResource) GetResource() *v1.ObjectAndRelation
- func (x *ReachableResource) GetResultStatus() ReachableResource_ResultStatus
- func (*ReachableResource) ProtoMessage()
- func (x *ReachableResource) ProtoReflect() protoreflect.Message
- func (x *ReachableResource) Reset()
- func (x *ReachableResource) String() string
- func (m *ReachableResource) Validate() error
- func (m *ReachableResource) ValidateAll() error
- type ReachableResourceMultiError
- type ReachableResourceValidationError
- func (e ReachableResourceValidationError) Cause() error
- func (e ReachableResourceValidationError) Error() string
- func (e ReachableResourceValidationError) ErrorName() string
- func (e ReachableResourceValidationError) Field() string
- func (e ReachableResourceValidationError) Key() bool
- func (e ReachableResourceValidationError) Reason() string
- type ReachableResource_ResultStatus
- func (ReachableResource_ResultStatus) Descriptor() protoreflect.EnumDescriptor
- func (x ReachableResource_ResultStatus) Enum() *ReachableResource_ResultStatus
- func (ReachableResource_ResultStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x ReachableResource_ResultStatus) Number() protoreflect.EnumNumber
- func (x ReachableResource_ResultStatus) String() string
- func (ReachableResource_ResultStatus) Type() protoreflect.EnumType
- type ResolverMeta
- func (*ResolverMeta) Descriptor() ([]byte, []int)deprecated
- func (x *ResolverMeta) GetAtRevision() string
- func (x *ResolverMeta) GetDepthRemaining() uint32
- func (cr *ResolverMeta) MarshalZerologObject(e *zerolog.Event)
- func (*ResolverMeta) ProtoMessage()
- func (x *ResolverMeta) ProtoReflect() protoreflect.Message
- func (x *ResolverMeta) Reset()
- func (x *ResolverMeta) String() string
- func (m *ResolverMeta) Validate() error
- func (m *ResolverMeta) ValidateAll() error
- type ResolverMetaMultiError
- type ResolverMetaValidationError
- func (e ResolverMetaValidationError) Cause() error
- func (e ResolverMetaValidationError) Error() string
- func (e ResolverMetaValidationError) ErrorName() string
- func (e ResolverMetaValidationError) Field() string
- func (e ResolverMetaValidationError) Key() bool
- func (e ResolverMetaValidationError) Reason() string
- type ResponseMeta
- func (*ResponseMeta) Descriptor() ([]byte, []int)deprecated
- func (x *ResponseMeta) GetCachedDispatchCount() uint32
- func (x *ResponseMeta) GetDepthRequired() uint32
- func (x *ResponseMeta) GetDispatchCount() uint32
- func (x *ResponseMeta) GetLookupExcludedDirect() []*v1.RelationReference
- func (x *ResponseMeta) GetLookupExcludedTtu() []*v1.RelationReference
- func (cr *ResponseMeta) MarshalZerologObject(e *zerolog.Event)
- func (*ResponseMeta) ProtoMessage()
- func (x *ResponseMeta) ProtoReflect() protoreflect.Message
- func (x *ResponseMeta) Reset()
- func (x *ResponseMeta) String() string
- func (m *ResponseMeta) Validate() error
- func (m *ResponseMeta) ValidateAll() error
- type ResponseMetaMultiError
- type ResponseMetaValidationError
- func (e ResponseMetaValidationError) Cause() error
- func (e ResponseMetaValidationError) Error() string
- func (e ResponseMetaValidationError) ErrorName() string
- func (e ResponseMetaValidationError) Field() string
- func (e ResponseMetaValidationError) Key() bool
- func (e ResponseMetaValidationError) Reason() string
- type UnimplementedDispatchServiceServer
- func (UnimplementedDispatchServiceServer) DispatchCheck(context.Context, *DispatchCheckRequest) (*DispatchCheckResponse, error)
- func (UnimplementedDispatchServiceServer) DispatchExpand(context.Context, *DispatchExpandRequest) (*DispatchExpandResponse, error)
- func (UnimplementedDispatchServiceServer) DispatchLookup(context.Context, *DispatchLookupRequest) (*DispatchLookupResponse, error)
- func (UnimplementedDispatchServiceServer) DispatchReachableResources(*DispatchReachableResourcesRequest, ...) error
- type UnsafeDispatchServiceServer
Constants ¶
This section is empty.
Variables ¶
var ( DispatchCheckResponse_Membership_name = map[int32]string{ 0: "UNKNOWN", 1: "NOT_MEMBER", 2: "MEMBER", } DispatchCheckResponse_Membership_value = map[string]int32{ "UNKNOWN": 0, "NOT_MEMBER": 1, "MEMBER": 2, } )
Enum value maps for DispatchCheckResponse_Membership.
var ( DispatchExpandRequest_ExpansionMode_name = map[int32]string{ 0: "SHALLOW", 1: "RECURSIVE", } DispatchExpandRequest_ExpansionMode_value = map[string]int32{ "SHALLOW": 0, "RECURSIVE": 1, } )
Enum value maps for DispatchExpandRequest_ExpansionMode.
var ( ReachableResource_ResultStatus_name = map[int32]string{ 0: "REQUIRES_CHECK", 1: "HAS_PERMISSION", } ReachableResource_ResultStatus_value = map[string]int32{ "REQUIRES_CHECK": 0, "HAS_PERMISSION": 1, } )
Enum value maps for ReachableResource_ResultStatus.
var DispatchService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "dispatch.v1.DispatchService", HandlerType: (*DispatchServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "DispatchCheck", Handler: _DispatchService_DispatchCheck_Handler, }, { MethodName: "DispatchExpand", Handler: _DispatchService_DispatchExpand_Handler, }, { MethodName: "DispatchLookup", Handler: _DispatchService_DispatchLookup_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "DispatchReachableResources", Handler: _DispatchService_DispatchReachableResources_Handler, ServerStreams: true, }, }, Metadata: "dispatch/v1/dispatch.proto", }
DispatchService_ServiceDesc is the grpc.ServiceDesc for DispatchService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_dispatch_v1_dispatch_proto protoreflect.FileDescriptor
Functions ¶
func RegisterDispatchServiceServer ¶
func RegisterDispatchServiceServer(s grpc.ServiceRegistrar, srv DispatchServiceServer)
Types ¶
type DispatchCheckRequest ¶
type DispatchCheckRequest struct { Metadata *ResolverMeta `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` ResourceAndRelation *v1.ObjectAndRelation `protobuf:"bytes,2,opt,name=resource_and_relation,json=resourceAndRelation,proto3" json:"resource_and_relation,omitempty"` Subject *v1.ObjectAndRelation `protobuf:"bytes,3,opt,name=subject,proto3" json:"subject,omitempty"` // contains filtered or unexported fields }
func (*DispatchCheckRequest) Descriptor
deprecated
func (*DispatchCheckRequest) Descriptor() ([]byte, []int)
Deprecated: Use DispatchCheckRequest.ProtoReflect.Descriptor instead.
func (*DispatchCheckRequest) GetMetadata ¶
func (x *DispatchCheckRequest) GetMetadata() *ResolverMeta
func (*DispatchCheckRequest) GetResourceAndRelation ¶ added in v1.9.0
func (x *DispatchCheckRequest) GetResourceAndRelation() *v1.ObjectAndRelation
func (*DispatchCheckRequest) GetSubject ¶
func (x *DispatchCheckRequest) GetSubject() *v1.ObjectAndRelation
func (*DispatchCheckRequest) MarshalZerologObject ¶
func (cr *DispatchCheckRequest) MarshalZerologObject(e *zerolog.Event)
MarshalZerologObject implements zerolog object marshalling.
func (*DispatchCheckRequest) ProtoMessage ¶
func (*DispatchCheckRequest) ProtoMessage()
func (*DispatchCheckRequest) ProtoReflect ¶
func (x *DispatchCheckRequest) ProtoReflect() protoreflect.Message
func (*DispatchCheckRequest) Reset ¶
func (x *DispatchCheckRequest) Reset()
func (*DispatchCheckRequest) String ¶
func (x *DispatchCheckRequest) String() string
func (*DispatchCheckRequest) Validate ¶
func (m *DispatchCheckRequest) Validate() error
Validate checks the field values on DispatchCheckRequest 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 (*DispatchCheckRequest) ValidateAll ¶ added in v1.6.0
func (m *DispatchCheckRequest) ValidateAll() error
ValidateAll checks the field values on DispatchCheckRequest 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 DispatchCheckRequestMultiError, or nil if none found.
type DispatchCheckRequestMultiError ¶ added in v1.6.0
type DispatchCheckRequestMultiError []error
DispatchCheckRequestMultiError is an error wrapping multiple validation errors returned by DispatchCheckRequest.ValidateAll() if the designated constraints aren't met.
func (DispatchCheckRequestMultiError) AllErrors ¶ added in v1.6.0
func (m DispatchCheckRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DispatchCheckRequestMultiError) Error ¶ added in v1.6.0
func (m DispatchCheckRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DispatchCheckRequestValidationError ¶
type DispatchCheckRequestValidationError struct {
// contains filtered or unexported fields
}
DispatchCheckRequestValidationError is the validation error returned by DispatchCheckRequest.Validate if the designated constraints aren't met.
func (DispatchCheckRequestValidationError) Cause ¶
func (e DispatchCheckRequestValidationError) Cause() error
Cause function returns cause value.
func (DispatchCheckRequestValidationError) Error ¶
func (e DispatchCheckRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DispatchCheckRequestValidationError) ErrorName ¶
func (e DispatchCheckRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DispatchCheckRequestValidationError) Field ¶
func (e DispatchCheckRequestValidationError) Field() string
Field function returns field value.
func (DispatchCheckRequestValidationError) Key ¶
func (e DispatchCheckRequestValidationError) Key() bool
Key function returns key value.
func (DispatchCheckRequestValidationError) Reason ¶
func (e DispatchCheckRequestValidationError) Reason() string
Reason function returns reason value.
type DispatchCheckResponse ¶
type DispatchCheckResponse struct { Metadata *ResponseMeta `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` Membership DispatchCheckResponse_Membership `protobuf:"varint,2,opt,name=membership,proto3,enum=dispatch.v1.DispatchCheckResponse_Membership" json:"membership,omitempty"` // contains filtered or unexported fields }
func (*DispatchCheckResponse) Descriptor
deprecated
func (*DispatchCheckResponse) Descriptor() ([]byte, []int)
Deprecated: Use DispatchCheckResponse.ProtoReflect.Descriptor instead.
func (*DispatchCheckResponse) GetMembership ¶
func (x *DispatchCheckResponse) GetMembership() DispatchCheckResponse_Membership
func (*DispatchCheckResponse) GetMetadata ¶
func (x *DispatchCheckResponse) GetMetadata() *ResponseMeta
func (*DispatchCheckResponse) MarshalZerologObject ¶
func (cr *DispatchCheckResponse) MarshalZerologObject(e *zerolog.Event)
MarshalZerologObject implements zerolog object marshalling.
func (*DispatchCheckResponse) ProtoMessage ¶
func (*DispatchCheckResponse) ProtoMessage()
func (*DispatchCheckResponse) ProtoReflect ¶
func (x *DispatchCheckResponse) ProtoReflect() protoreflect.Message
func (*DispatchCheckResponse) Reset ¶
func (x *DispatchCheckResponse) Reset()
func (*DispatchCheckResponse) String ¶
func (x *DispatchCheckResponse) String() string
func (*DispatchCheckResponse) Validate ¶
func (m *DispatchCheckResponse) Validate() error
Validate checks the field values on DispatchCheckResponse 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 (*DispatchCheckResponse) ValidateAll ¶ added in v1.6.0
func (m *DispatchCheckResponse) ValidateAll() error
ValidateAll checks the field values on DispatchCheckResponse 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 DispatchCheckResponseMultiError, or nil if none found.
type DispatchCheckResponseMultiError ¶ added in v1.6.0
type DispatchCheckResponseMultiError []error
DispatchCheckResponseMultiError is an error wrapping multiple validation errors returned by DispatchCheckResponse.ValidateAll() if the designated constraints aren't met.
func (DispatchCheckResponseMultiError) AllErrors ¶ added in v1.6.0
func (m DispatchCheckResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DispatchCheckResponseMultiError) Error ¶ added in v1.6.0
func (m DispatchCheckResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DispatchCheckResponseValidationError ¶
type DispatchCheckResponseValidationError struct {
// contains filtered or unexported fields
}
DispatchCheckResponseValidationError is the validation error returned by DispatchCheckResponse.Validate if the designated constraints aren't met.
func (DispatchCheckResponseValidationError) Cause ¶
func (e DispatchCheckResponseValidationError) Cause() error
Cause function returns cause value.
func (DispatchCheckResponseValidationError) Error ¶
func (e DispatchCheckResponseValidationError) Error() string
Error satisfies the builtin error interface
func (DispatchCheckResponseValidationError) ErrorName ¶
func (e DispatchCheckResponseValidationError) ErrorName() string
ErrorName returns error name.
func (DispatchCheckResponseValidationError) Field ¶
func (e DispatchCheckResponseValidationError) Field() string
Field function returns field value.
func (DispatchCheckResponseValidationError) Key ¶
func (e DispatchCheckResponseValidationError) Key() bool
Key function returns key value.
func (DispatchCheckResponseValidationError) Reason ¶
func (e DispatchCheckResponseValidationError) Reason() string
Reason function returns reason value.
type DispatchCheckResponse_Membership ¶
type DispatchCheckResponse_Membership int32
const ( DispatchCheckResponse_UNKNOWN DispatchCheckResponse_Membership = 0 DispatchCheckResponse_NOT_MEMBER DispatchCheckResponse_Membership = 1 DispatchCheckResponse_MEMBER DispatchCheckResponse_Membership = 2 )
func (DispatchCheckResponse_Membership) Descriptor ¶
func (DispatchCheckResponse_Membership) Descriptor() protoreflect.EnumDescriptor
func (DispatchCheckResponse_Membership) Enum ¶
func (x DispatchCheckResponse_Membership) Enum() *DispatchCheckResponse_Membership
func (DispatchCheckResponse_Membership) EnumDescriptor
deprecated
func (DispatchCheckResponse_Membership) EnumDescriptor() ([]byte, []int)
Deprecated: Use DispatchCheckResponse_Membership.Descriptor instead.
func (DispatchCheckResponse_Membership) Number ¶
func (x DispatchCheckResponse_Membership) Number() protoreflect.EnumNumber
func (DispatchCheckResponse_Membership) String ¶
func (x DispatchCheckResponse_Membership) String() string
func (DispatchCheckResponse_Membership) Type ¶
func (DispatchCheckResponse_Membership) Type() protoreflect.EnumType
type DispatchExpandRequest ¶
type DispatchExpandRequest struct { Metadata *ResolverMeta `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` ResourceAndRelation *v1.ObjectAndRelation `protobuf:"bytes,2,opt,name=resource_and_relation,json=resourceAndRelation,proto3" json:"resource_and_relation,omitempty"` ExpansionMode DispatchExpandRequest_ExpansionMode `` /* 154-byte string literal not displayed */ // contains filtered or unexported fields }
func (*DispatchExpandRequest) Descriptor
deprecated
func (*DispatchExpandRequest) Descriptor() ([]byte, []int)
Deprecated: Use DispatchExpandRequest.ProtoReflect.Descriptor instead.
func (*DispatchExpandRequest) GetExpansionMode ¶
func (x *DispatchExpandRequest) GetExpansionMode() DispatchExpandRequest_ExpansionMode
func (*DispatchExpandRequest) GetMetadata ¶
func (x *DispatchExpandRequest) GetMetadata() *ResolverMeta
func (*DispatchExpandRequest) GetResourceAndRelation ¶ added in v1.9.0
func (x *DispatchExpandRequest) GetResourceAndRelation() *v1.ObjectAndRelation
func (*DispatchExpandRequest) MarshalZerologObject ¶
func (er *DispatchExpandRequest) MarshalZerologObject(e *zerolog.Event)
MarshalZerologObject implements zerolog object marshalling.
func (*DispatchExpandRequest) ProtoMessage ¶
func (*DispatchExpandRequest) ProtoMessage()
func (*DispatchExpandRequest) ProtoReflect ¶
func (x *DispatchExpandRequest) ProtoReflect() protoreflect.Message
func (*DispatchExpandRequest) Reset ¶
func (x *DispatchExpandRequest) Reset()
func (*DispatchExpandRequest) String ¶
func (x *DispatchExpandRequest) String() string
func (*DispatchExpandRequest) Validate ¶
func (m *DispatchExpandRequest) Validate() error
Validate checks the field values on DispatchExpandRequest 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 (*DispatchExpandRequest) ValidateAll ¶ added in v1.6.0
func (m *DispatchExpandRequest) ValidateAll() error
ValidateAll checks the field values on DispatchExpandRequest 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 DispatchExpandRequestMultiError, or nil if none found.
type DispatchExpandRequestMultiError ¶ added in v1.6.0
type DispatchExpandRequestMultiError []error
DispatchExpandRequestMultiError is an error wrapping multiple validation errors returned by DispatchExpandRequest.ValidateAll() if the designated constraints aren't met.
func (DispatchExpandRequestMultiError) AllErrors ¶ added in v1.6.0
func (m DispatchExpandRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DispatchExpandRequestMultiError) Error ¶ added in v1.6.0
func (m DispatchExpandRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DispatchExpandRequestValidationError ¶
type DispatchExpandRequestValidationError struct {
// contains filtered or unexported fields
}
DispatchExpandRequestValidationError is the validation error returned by DispatchExpandRequest.Validate if the designated constraints aren't met.
func (DispatchExpandRequestValidationError) Cause ¶
func (e DispatchExpandRequestValidationError) Cause() error
Cause function returns cause value.
func (DispatchExpandRequestValidationError) Error ¶
func (e DispatchExpandRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DispatchExpandRequestValidationError) ErrorName ¶
func (e DispatchExpandRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DispatchExpandRequestValidationError) Field ¶
func (e DispatchExpandRequestValidationError) Field() string
Field function returns field value.
func (DispatchExpandRequestValidationError) Key ¶
func (e DispatchExpandRequestValidationError) Key() bool
Key function returns key value.
func (DispatchExpandRequestValidationError) Reason ¶
func (e DispatchExpandRequestValidationError) Reason() string
Reason function returns reason value.
type DispatchExpandRequest_ExpansionMode ¶
type DispatchExpandRequest_ExpansionMode int32
const ( DispatchExpandRequest_SHALLOW DispatchExpandRequest_ExpansionMode = 0 DispatchExpandRequest_RECURSIVE DispatchExpandRequest_ExpansionMode = 1 )
func (DispatchExpandRequest_ExpansionMode) Descriptor ¶
func (DispatchExpandRequest_ExpansionMode) Descriptor() protoreflect.EnumDescriptor
func (DispatchExpandRequest_ExpansionMode) Enum ¶
func (x DispatchExpandRequest_ExpansionMode) Enum() *DispatchExpandRequest_ExpansionMode
func (DispatchExpandRequest_ExpansionMode) EnumDescriptor
deprecated
func (DispatchExpandRequest_ExpansionMode) EnumDescriptor() ([]byte, []int)
Deprecated: Use DispatchExpandRequest_ExpansionMode.Descriptor instead.
func (DispatchExpandRequest_ExpansionMode) Number ¶
func (x DispatchExpandRequest_ExpansionMode) Number() protoreflect.EnumNumber
func (DispatchExpandRequest_ExpansionMode) String ¶
func (x DispatchExpandRequest_ExpansionMode) String() string
func (DispatchExpandRequest_ExpansionMode) Type ¶
func (DispatchExpandRequest_ExpansionMode) Type() protoreflect.EnumType
type DispatchExpandResponse ¶
type DispatchExpandResponse struct { Metadata *ResponseMeta `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` TreeNode *v1.RelationTupleTreeNode `protobuf:"bytes,2,opt,name=tree_node,json=treeNode,proto3" json:"tree_node,omitempty"` // contains filtered or unexported fields }
func (*DispatchExpandResponse) Descriptor
deprecated
func (*DispatchExpandResponse) Descriptor() ([]byte, []int)
Deprecated: Use DispatchExpandResponse.ProtoReflect.Descriptor instead.
func (*DispatchExpandResponse) GetMetadata ¶
func (x *DispatchExpandResponse) GetMetadata() *ResponseMeta
func (*DispatchExpandResponse) GetTreeNode ¶
func (x *DispatchExpandResponse) GetTreeNode() *v1.RelationTupleTreeNode
func (*DispatchExpandResponse) MarshalZerologObject ¶
func (cr *DispatchExpandResponse) MarshalZerologObject(e *zerolog.Event)
MarshalZerologObject implements zerolog object marshalling.
func (*DispatchExpandResponse) ProtoMessage ¶
func (*DispatchExpandResponse) ProtoMessage()
func (*DispatchExpandResponse) ProtoReflect ¶
func (x *DispatchExpandResponse) ProtoReflect() protoreflect.Message
func (*DispatchExpandResponse) Reset ¶
func (x *DispatchExpandResponse) Reset()
func (*DispatchExpandResponse) String ¶
func (x *DispatchExpandResponse) String() string
func (*DispatchExpandResponse) Validate ¶
func (m *DispatchExpandResponse) Validate() error
Validate checks the field values on DispatchExpandResponse 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 (*DispatchExpandResponse) ValidateAll ¶ added in v1.6.0
func (m *DispatchExpandResponse) ValidateAll() error
ValidateAll checks the field values on DispatchExpandResponse 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 DispatchExpandResponseMultiError, or nil if none found.
type DispatchExpandResponseMultiError ¶ added in v1.6.0
type DispatchExpandResponseMultiError []error
DispatchExpandResponseMultiError is an error wrapping multiple validation errors returned by DispatchExpandResponse.ValidateAll() if the designated constraints aren't met.
func (DispatchExpandResponseMultiError) AllErrors ¶ added in v1.6.0
func (m DispatchExpandResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DispatchExpandResponseMultiError) Error ¶ added in v1.6.0
func (m DispatchExpandResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DispatchExpandResponseValidationError ¶
type DispatchExpandResponseValidationError struct {
// contains filtered or unexported fields
}
DispatchExpandResponseValidationError is the validation error returned by DispatchExpandResponse.Validate if the designated constraints aren't met.
func (DispatchExpandResponseValidationError) Cause ¶
func (e DispatchExpandResponseValidationError) Cause() error
Cause function returns cause value.
func (DispatchExpandResponseValidationError) Error ¶
func (e DispatchExpandResponseValidationError) Error() string
Error satisfies the builtin error interface
func (DispatchExpandResponseValidationError) ErrorName ¶
func (e DispatchExpandResponseValidationError) ErrorName() string
ErrorName returns error name.
func (DispatchExpandResponseValidationError) Field ¶
func (e DispatchExpandResponseValidationError) Field() string
Field function returns field value.
func (DispatchExpandResponseValidationError) Key ¶
func (e DispatchExpandResponseValidationError) Key() bool
Key function returns key value.
func (DispatchExpandResponseValidationError) Reason ¶
func (e DispatchExpandResponseValidationError) Reason() string
Reason function returns reason value.
type DispatchLookupRequest ¶
type DispatchLookupRequest struct { Metadata *ResolverMeta `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` ObjectRelation *v1.RelationReference `protobuf:"bytes,2,opt,name=object_relation,json=objectRelation,proto3" json:"object_relation,omitempty"` Subject *v1.ObjectAndRelation `protobuf:"bytes,3,opt,name=subject,proto3" json:"subject,omitempty"` Limit uint32 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"` DirectStack []*v1.RelationReference `protobuf:"bytes,5,rep,name=direct_stack,json=directStack,proto3" json:"direct_stack,omitempty"` TtuStack []*v1.RelationReference `protobuf:"bytes,6,rep,name=ttu_stack,json=ttuStack,proto3" json:"ttu_stack,omitempty"` // contains filtered or unexported fields }
func (*DispatchLookupRequest) Descriptor
deprecated
func (*DispatchLookupRequest) Descriptor() ([]byte, []int)
Deprecated: Use DispatchLookupRequest.ProtoReflect.Descriptor instead.
func (*DispatchLookupRequest) GetDirectStack ¶
func (x *DispatchLookupRequest) GetDirectStack() []*v1.RelationReference
func (*DispatchLookupRequest) GetLimit ¶
func (x *DispatchLookupRequest) GetLimit() uint32
func (*DispatchLookupRequest) GetMetadata ¶
func (x *DispatchLookupRequest) GetMetadata() *ResolverMeta
func (*DispatchLookupRequest) GetObjectRelation ¶
func (x *DispatchLookupRequest) GetObjectRelation() *v1.RelationReference
func (*DispatchLookupRequest) GetSubject ¶
func (x *DispatchLookupRequest) GetSubject() *v1.ObjectAndRelation
func (*DispatchLookupRequest) GetTtuStack ¶
func (x *DispatchLookupRequest) GetTtuStack() []*v1.RelationReference
func (*DispatchLookupRequest) MarshalZerologObject ¶
func (lr *DispatchLookupRequest) MarshalZerologObject(e *zerolog.Event)
MarshalZerologObject implements zerolog object marshalling.
func (*DispatchLookupRequest) ProtoMessage ¶
func (*DispatchLookupRequest) ProtoMessage()
func (*DispatchLookupRequest) ProtoReflect ¶
func (x *DispatchLookupRequest) ProtoReflect() protoreflect.Message
func (*DispatchLookupRequest) Reset ¶
func (x *DispatchLookupRequest) Reset()
func (*DispatchLookupRequest) String ¶
func (x *DispatchLookupRequest) String() string
func (*DispatchLookupRequest) Validate ¶
func (m *DispatchLookupRequest) Validate() error
Validate checks the field values on DispatchLookupRequest 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 (*DispatchLookupRequest) ValidateAll ¶ added in v1.6.0
func (m *DispatchLookupRequest) ValidateAll() error
ValidateAll checks the field values on DispatchLookupRequest 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 DispatchLookupRequestMultiError, or nil if none found.
type DispatchLookupRequestMultiError ¶ added in v1.6.0
type DispatchLookupRequestMultiError []error
DispatchLookupRequestMultiError is an error wrapping multiple validation errors returned by DispatchLookupRequest.ValidateAll() if the designated constraints aren't met.
func (DispatchLookupRequestMultiError) AllErrors ¶ added in v1.6.0
func (m DispatchLookupRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DispatchLookupRequestMultiError) Error ¶ added in v1.6.0
func (m DispatchLookupRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DispatchLookupRequestValidationError ¶
type DispatchLookupRequestValidationError struct {
// contains filtered or unexported fields
}
DispatchLookupRequestValidationError is the validation error returned by DispatchLookupRequest.Validate if the designated constraints aren't met.
func (DispatchLookupRequestValidationError) Cause ¶
func (e DispatchLookupRequestValidationError) Cause() error
Cause function returns cause value.
func (DispatchLookupRequestValidationError) Error ¶
func (e DispatchLookupRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DispatchLookupRequestValidationError) ErrorName ¶
func (e DispatchLookupRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DispatchLookupRequestValidationError) Field ¶
func (e DispatchLookupRequestValidationError) Field() string
Field function returns field value.
func (DispatchLookupRequestValidationError) Key ¶
func (e DispatchLookupRequestValidationError) Key() bool
Key function returns key value.
func (DispatchLookupRequestValidationError) Reason ¶
func (e DispatchLookupRequestValidationError) Reason() string
Reason function returns reason value.
type DispatchLookupResponse ¶
type DispatchLookupResponse struct { Metadata *ResponseMeta `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` ResolvedOnrs []*v1.ObjectAndRelation `protobuf:"bytes,2,rep,name=resolved_onrs,json=resolvedOnrs,proto3" json:"resolved_onrs,omitempty"` NextPageReference string `protobuf:"bytes,3,opt,name=next_page_reference,json=nextPageReference,proto3" json:"next_page_reference,omitempty"` // contains filtered or unexported fields }
func (*DispatchLookupResponse) Descriptor
deprecated
func (*DispatchLookupResponse) Descriptor() ([]byte, []int)
Deprecated: Use DispatchLookupResponse.ProtoReflect.Descriptor instead.
func (*DispatchLookupResponse) GetMetadata ¶
func (x *DispatchLookupResponse) GetMetadata() *ResponseMeta
func (*DispatchLookupResponse) GetNextPageReference ¶
func (x *DispatchLookupResponse) GetNextPageReference() string
func (*DispatchLookupResponse) GetResolvedOnrs ¶
func (x *DispatchLookupResponse) GetResolvedOnrs() []*v1.ObjectAndRelation
func (*DispatchLookupResponse) MarshalZerologObject ¶
func (cr *DispatchLookupResponse) MarshalZerologObject(e *zerolog.Event)
MarshalZerologObject implements zerolog object marshalling.
func (*DispatchLookupResponse) ProtoMessage ¶
func (*DispatchLookupResponse) ProtoMessage()
func (*DispatchLookupResponse) ProtoReflect ¶
func (x *DispatchLookupResponse) ProtoReflect() protoreflect.Message
func (*DispatchLookupResponse) Reset ¶
func (x *DispatchLookupResponse) Reset()
func (*DispatchLookupResponse) String ¶
func (x *DispatchLookupResponse) String() string
func (*DispatchLookupResponse) Validate ¶
func (m *DispatchLookupResponse) Validate() error
Validate checks the field values on DispatchLookupResponse 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 (*DispatchLookupResponse) ValidateAll ¶ added in v1.6.0
func (m *DispatchLookupResponse) ValidateAll() error
ValidateAll checks the field values on DispatchLookupResponse 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 DispatchLookupResponseMultiError, or nil if none found.
type DispatchLookupResponseMultiError ¶ added in v1.6.0
type DispatchLookupResponseMultiError []error
DispatchLookupResponseMultiError is an error wrapping multiple validation errors returned by DispatchLookupResponse.ValidateAll() if the designated constraints aren't met.
func (DispatchLookupResponseMultiError) AllErrors ¶ added in v1.6.0
func (m DispatchLookupResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DispatchLookupResponseMultiError) Error ¶ added in v1.6.0
func (m DispatchLookupResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DispatchLookupResponseValidationError ¶
type DispatchLookupResponseValidationError struct {
// contains filtered or unexported fields
}
DispatchLookupResponseValidationError is the validation error returned by DispatchLookupResponse.Validate if the designated constraints aren't met.
func (DispatchLookupResponseValidationError) Cause ¶
func (e DispatchLookupResponseValidationError) Cause() error
Cause function returns cause value.
func (DispatchLookupResponseValidationError) Error ¶
func (e DispatchLookupResponseValidationError) Error() string
Error satisfies the builtin error interface
func (DispatchLookupResponseValidationError) ErrorName ¶
func (e DispatchLookupResponseValidationError) ErrorName() string
ErrorName returns error name.
func (DispatchLookupResponseValidationError) Field ¶
func (e DispatchLookupResponseValidationError) Field() string
Field function returns field value.
func (DispatchLookupResponseValidationError) Key ¶
func (e DispatchLookupResponseValidationError) Key() bool
Key function returns key value.
func (DispatchLookupResponseValidationError) Reason ¶
func (e DispatchLookupResponseValidationError) Reason() string
Reason function returns reason value.
type DispatchReachableResourcesRequest ¶ added in v1.8.0
type DispatchReachableResourcesRequest struct { Metadata *ResolverMeta `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` ObjectRelation *v1.RelationReference `protobuf:"bytes,2,opt,name=object_relation,json=objectRelation,proto3" json:"object_relation,omitempty"` Subject *v1.ObjectAndRelation `protobuf:"bytes,3,opt,name=subject,proto3" json:"subject,omitempty"` // contains filtered or unexported fields }
func (*DispatchReachableResourcesRequest) Descriptor
deprecated
added in
v1.8.0
func (*DispatchReachableResourcesRequest) Descriptor() ([]byte, []int)
Deprecated: Use DispatchReachableResourcesRequest.ProtoReflect.Descriptor instead.
func (*DispatchReachableResourcesRequest) GetMetadata ¶ added in v1.8.0
func (x *DispatchReachableResourcesRequest) GetMetadata() *ResolverMeta
func (*DispatchReachableResourcesRequest) GetObjectRelation ¶ added in v1.8.0
func (x *DispatchReachableResourcesRequest) GetObjectRelation() *v1.RelationReference
func (*DispatchReachableResourcesRequest) GetSubject ¶ added in v1.8.0
func (x *DispatchReachableResourcesRequest) GetSubject() *v1.ObjectAndRelation
func (*DispatchReachableResourcesRequest) MarshalZerologObject ¶ added in v1.8.0
func (lr *DispatchReachableResourcesRequest) MarshalZerologObject(e *zerolog.Event)
MarshalZerologObject implements zerolog object marshalling.
func (*DispatchReachableResourcesRequest) ProtoMessage ¶ added in v1.8.0
func (*DispatchReachableResourcesRequest) ProtoMessage()
func (*DispatchReachableResourcesRequest) ProtoReflect ¶ added in v1.8.0
func (x *DispatchReachableResourcesRequest) ProtoReflect() protoreflect.Message
func (*DispatchReachableResourcesRequest) Reset ¶ added in v1.8.0
func (x *DispatchReachableResourcesRequest) Reset()
func (*DispatchReachableResourcesRequest) String ¶ added in v1.8.0
func (x *DispatchReachableResourcesRequest) String() string
func (*DispatchReachableResourcesRequest) Validate ¶ added in v1.8.0
func (m *DispatchReachableResourcesRequest) Validate() error
Validate checks the field values on DispatchReachableResourcesRequest 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 (*DispatchReachableResourcesRequest) ValidateAll ¶ added in v1.8.0
func (m *DispatchReachableResourcesRequest) ValidateAll() error
ValidateAll checks the field values on DispatchReachableResourcesRequest 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 DispatchReachableResourcesRequestMultiError, or nil if none found.
type DispatchReachableResourcesRequestMultiError ¶ added in v1.8.0
type DispatchReachableResourcesRequestMultiError []error
DispatchReachableResourcesRequestMultiError is an error wrapping multiple validation errors returned by DispatchReachableResourcesRequest.ValidateAll() if the designated constraints aren't met.
func (DispatchReachableResourcesRequestMultiError) AllErrors ¶ added in v1.8.0
func (m DispatchReachableResourcesRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DispatchReachableResourcesRequestMultiError) Error ¶ added in v1.8.0
func (m DispatchReachableResourcesRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DispatchReachableResourcesRequestValidationError ¶ added in v1.8.0
type DispatchReachableResourcesRequestValidationError struct {
// contains filtered or unexported fields
}
DispatchReachableResourcesRequestValidationError is the validation error returned by DispatchReachableResourcesRequest.Validate if the designated constraints aren't met.
func (DispatchReachableResourcesRequestValidationError) Cause ¶ added in v1.8.0
func (e DispatchReachableResourcesRequestValidationError) Cause() error
Cause function returns cause value.
func (DispatchReachableResourcesRequestValidationError) Error ¶ added in v1.8.0
func (e DispatchReachableResourcesRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DispatchReachableResourcesRequestValidationError) ErrorName ¶ added in v1.8.0
func (e DispatchReachableResourcesRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DispatchReachableResourcesRequestValidationError) Field ¶ added in v1.8.0
func (e DispatchReachableResourcesRequestValidationError) Field() string
Field function returns field value.
func (DispatchReachableResourcesRequestValidationError) Key ¶ added in v1.8.0
func (e DispatchReachableResourcesRequestValidationError) Key() bool
Key function returns key value.
func (DispatchReachableResourcesRequestValidationError) Reason ¶ added in v1.8.0
func (e DispatchReachableResourcesRequestValidationError) Reason() string
Reason function returns reason value.
type DispatchReachableResourcesResponse ¶ added in v1.8.0
type DispatchReachableResourcesResponse struct { Resource *ReachableResource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"` Metadata *ResponseMeta `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` // contains filtered or unexported fields }
func (*DispatchReachableResourcesResponse) Descriptor
deprecated
added in
v1.8.0
func (*DispatchReachableResourcesResponse) Descriptor() ([]byte, []int)
Deprecated: Use DispatchReachableResourcesResponse.ProtoReflect.Descriptor instead.
func (*DispatchReachableResourcesResponse) GetMetadata ¶ added in v1.8.0
func (x *DispatchReachableResourcesResponse) GetMetadata() *ResponseMeta
func (*DispatchReachableResourcesResponse) GetResource ¶ added in v1.8.0
func (x *DispatchReachableResourcesResponse) GetResource() *ReachableResource
func (*DispatchReachableResourcesResponse) ProtoMessage ¶ added in v1.8.0
func (*DispatchReachableResourcesResponse) ProtoMessage()
func (*DispatchReachableResourcesResponse) ProtoReflect ¶ added in v1.8.0
func (x *DispatchReachableResourcesResponse) ProtoReflect() protoreflect.Message
func (*DispatchReachableResourcesResponse) Reset ¶ added in v1.8.0
func (x *DispatchReachableResourcesResponse) Reset()
func (*DispatchReachableResourcesResponse) String ¶ added in v1.8.0
func (x *DispatchReachableResourcesResponse) String() string
func (*DispatchReachableResourcesResponse) Validate ¶ added in v1.8.0
func (m *DispatchReachableResourcesResponse) Validate() error
Validate checks the field values on DispatchReachableResourcesResponse 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 (*DispatchReachableResourcesResponse) ValidateAll ¶ added in v1.8.0
func (m *DispatchReachableResourcesResponse) ValidateAll() error
ValidateAll checks the field values on DispatchReachableResourcesResponse 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 DispatchReachableResourcesResponseMultiError, or nil if none found.
type DispatchReachableResourcesResponseMultiError ¶ added in v1.8.0
type DispatchReachableResourcesResponseMultiError []error
DispatchReachableResourcesResponseMultiError is an error wrapping multiple validation errors returned by DispatchReachableResourcesResponse.ValidateAll() if the designated constraints aren't met.
func (DispatchReachableResourcesResponseMultiError) AllErrors ¶ added in v1.8.0
func (m DispatchReachableResourcesResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DispatchReachableResourcesResponseMultiError) Error ¶ added in v1.8.0
func (m DispatchReachableResourcesResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DispatchReachableResourcesResponseValidationError ¶ added in v1.8.0
type DispatchReachableResourcesResponseValidationError struct {
// contains filtered or unexported fields
}
DispatchReachableResourcesResponseValidationError is the validation error returned by DispatchReachableResourcesResponse.Validate if the designated constraints aren't met.
func (DispatchReachableResourcesResponseValidationError) Cause ¶ added in v1.8.0
func (e DispatchReachableResourcesResponseValidationError) Cause() error
Cause function returns cause value.
func (DispatchReachableResourcesResponseValidationError) Error ¶ added in v1.8.0
func (e DispatchReachableResourcesResponseValidationError) Error() string
Error satisfies the builtin error interface
func (DispatchReachableResourcesResponseValidationError) ErrorName ¶ added in v1.8.0
func (e DispatchReachableResourcesResponseValidationError) ErrorName() string
ErrorName returns error name.
func (DispatchReachableResourcesResponseValidationError) Field ¶ added in v1.8.0
func (e DispatchReachableResourcesResponseValidationError) Field() string
Field function returns field value.
func (DispatchReachableResourcesResponseValidationError) Key ¶ added in v1.8.0
func (e DispatchReachableResourcesResponseValidationError) Key() bool
Key function returns key value.
func (DispatchReachableResourcesResponseValidationError) Reason ¶ added in v1.8.0
func (e DispatchReachableResourcesResponseValidationError) Reason() string
Reason function returns reason value.
type DispatchServiceClient ¶
type DispatchServiceClient interface { DispatchCheck(ctx context.Context, in *DispatchCheckRequest, opts ...grpc.CallOption) (*DispatchCheckResponse, error) DispatchExpand(ctx context.Context, in *DispatchExpandRequest, opts ...grpc.CallOption) (*DispatchExpandResponse, error) DispatchLookup(ctx context.Context, in *DispatchLookupRequest, opts ...grpc.CallOption) (*DispatchLookupResponse, error) DispatchReachableResources(ctx context.Context, in *DispatchReachableResourcesRequest, opts ...grpc.CallOption) (DispatchService_DispatchReachableResourcesClient, error) }
DispatchServiceClient is the client API for DispatchService 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 NewDispatchServiceClient ¶
func NewDispatchServiceClient(cc grpc.ClientConnInterface) DispatchServiceClient
type DispatchServiceServer ¶
type DispatchServiceServer interface { DispatchCheck(context.Context, *DispatchCheckRequest) (*DispatchCheckResponse, error) DispatchExpand(context.Context, *DispatchExpandRequest) (*DispatchExpandResponse, error) DispatchLookup(context.Context, *DispatchLookupRequest) (*DispatchLookupResponse, error) DispatchReachableResources(*DispatchReachableResourcesRequest, DispatchService_DispatchReachableResourcesServer) error // contains filtered or unexported methods }
DispatchServiceServer is the server API for DispatchService service. All implementations must embed UnimplementedDispatchServiceServer for forward compatibility
type DispatchService_DispatchReachableResourcesClient ¶ added in v1.8.0
type DispatchService_DispatchReachableResourcesClient interface { Recv() (*DispatchReachableResourcesResponse, error) grpc.ClientStream }
type DispatchService_DispatchReachableResourcesServer ¶ added in v1.8.0
type DispatchService_DispatchReachableResourcesServer interface { Send(*DispatchReachableResourcesResponse) error grpc.ServerStream }
type ReachableResource ¶ added in v1.8.0
type ReachableResource struct { Resource *v1.ObjectAndRelation `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"` ResultStatus ReachableResource_ResultStatus `` /* 146-byte string literal not displayed */ // contains filtered or unexported fields }
func (*ReachableResource) Descriptor
deprecated
added in
v1.8.0
func (*ReachableResource) Descriptor() ([]byte, []int)
Deprecated: Use ReachableResource.ProtoReflect.Descriptor instead.
func (*ReachableResource) GetResource ¶ added in v1.8.0
func (x *ReachableResource) GetResource() *v1.ObjectAndRelation
func (*ReachableResource) GetResultStatus ¶ added in v1.8.0
func (x *ReachableResource) GetResultStatus() ReachableResource_ResultStatus
func (*ReachableResource) ProtoMessage ¶ added in v1.8.0
func (*ReachableResource) ProtoMessage()
func (*ReachableResource) ProtoReflect ¶ added in v1.8.0
func (x *ReachableResource) ProtoReflect() protoreflect.Message
func (*ReachableResource) Reset ¶ added in v1.8.0
func (x *ReachableResource) Reset()
func (*ReachableResource) String ¶ added in v1.8.0
func (x *ReachableResource) String() string
func (*ReachableResource) Validate ¶ added in v1.8.0
func (m *ReachableResource) Validate() error
Validate checks the field values on ReachableResource 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 (*ReachableResource) ValidateAll ¶ added in v1.8.0
func (m *ReachableResource) ValidateAll() error
ValidateAll checks the field values on ReachableResource 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 ReachableResourceMultiError, or nil if none found.
type ReachableResourceMultiError ¶ added in v1.8.0
type ReachableResourceMultiError []error
ReachableResourceMultiError is an error wrapping multiple validation errors returned by ReachableResource.ValidateAll() if the designated constraints aren't met.
func (ReachableResourceMultiError) AllErrors ¶ added in v1.8.0
func (m ReachableResourceMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ReachableResourceMultiError) Error ¶ added in v1.8.0
func (m ReachableResourceMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ReachableResourceValidationError ¶ added in v1.8.0
type ReachableResourceValidationError struct {
// contains filtered or unexported fields
}
ReachableResourceValidationError is the validation error returned by ReachableResource.Validate if the designated constraints aren't met.
func (ReachableResourceValidationError) Cause ¶ added in v1.8.0
func (e ReachableResourceValidationError) Cause() error
Cause function returns cause value.
func (ReachableResourceValidationError) Error ¶ added in v1.8.0
func (e ReachableResourceValidationError) Error() string
Error satisfies the builtin error interface
func (ReachableResourceValidationError) ErrorName ¶ added in v1.8.0
func (e ReachableResourceValidationError) ErrorName() string
ErrorName returns error name.
func (ReachableResourceValidationError) Field ¶ added in v1.8.0
func (e ReachableResourceValidationError) Field() string
Field function returns field value.
func (ReachableResourceValidationError) Key ¶ added in v1.8.0
func (e ReachableResourceValidationError) Key() bool
Key function returns key value.
func (ReachableResourceValidationError) Reason ¶ added in v1.8.0
func (e ReachableResourceValidationError) Reason() string
Reason function returns reason value.
type ReachableResource_ResultStatus ¶ added in v1.8.0
type ReachableResource_ResultStatus int32
const ( // // REQUIRES_CHECK indicates that the resource is reachable but a Check is required to // determine if the resource is actually found for the user. ReachableResource_REQUIRES_CHECK ReachableResource_ResultStatus = 0 // // HAS_PERMISSION indicates that the resource is both reachable and found for the permission // for the subject. ReachableResource_HAS_PERMISSION ReachableResource_ResultStatus = 1 )
func (ReachableResource_ResultStatus) Descriptor ¶ added in v1.8.0
func (ReachableResource_ResultStatus) Descriptor() protoreflect.EnumDescriptor
func (ReachableResource_ResultStatus) Enum ¶ added in v1.8.0
func (x ReachableResource_ResultStatus) Enum() *ReachableResource_ResultStatus
func (ReachableResource_ResultStatus) EnumDescriptor
deprecated
added in
v1.8.0
func (ReachableResource_ResultStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use ReachableResource_ResultStatus.Descriptor instead.
func (ReachableResource_ResultStatus) Number ¶ added in v1.8.0
func (x ReachableResource_ResultStatus) Number() protoreflect.EnumNumber
func (ReachableResource_ResultStatus) String ¶ added in v1.8.0
func (x ReachableResource_ResultStatus) String() string
func (ReachableResource_ResultStatus) Type ¶ added in v1.8.0
func (ReachableResource_ResultStatus) Type() protoreflect.EnumType
type ResolverMeta ¶
type ResolverMeta struct { AtRevision string `protobuf:"bytes,1,opt,name=at_revision,json=atRevision,proto3" json:"at_revision,omitempty"` DepthRemaining uint32 `protobuf:"varint,2,opt,name=depth_remaining,json=depthRemaining,proto3" json:"depth_remaining,omitempty"` // contains filtered or unexported fields }
func (*ResolverMeta) Descriptor
deprecated
func (*ResolverMeta) Descriptor() ([]byte, []int)
Deprecated: Use ResolverMeta.ProtoReflect.Descriptor instead.
func (*ResolverMeta) GetAtRevision ¶
func (x *ResolverMeta) GetAtRevision() string
func (*ResolverMeta) GetDepthRemaining ¶
func (x *ResolverMeta) GetDepthRemaining() uint32
func (*ResolverMeta) MarshalZerologObject ¶
func (cr *ResolverMeta) MarshalZerologObject(e *zerolog.Event)
MarshalZerologObject implements zerolog object marshalling.
func (*ResolverMeta) ProtoMessage ¶
func (*ResolverMeta) ProtoMessage()
func (*ResolverMeta) ProtoReflect ¶
func (x *ResolverMeta) ProtoReflect() protoreflect.Message
func (*ResolverMeta) Reset ¶
func (x *ResolverMeta) Reset()
func (*ResolverMeta) String ¶
func (x *ResolverMeta) String() string
func (*ResolverMeta) Validate ¶
func (m *ResolverMeta) Validate() error
Validate checks the field values on ResolverMeta 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 (*ResolverMeta) ValidateAll ¶ added in v1.6.0
func (m *ResolverMeta) ValidateAll() error
ValidateAll checks the field values on ResolverMeta 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 ResolverMetaMultiError, or nil if none found.
type ResolverMetaMultiError ¶ added in v1.6.0
type ResolverMetaMultiError []error
ResolverMetaMultiError is an error wrapping multiple validation errors returned by ResolverMeta.ValidateAll() if the designated constraints aren't met.
func (ResolverMetaMultiError) AllErrors ¶ added in v1.6.0
func (m ResolverMetaMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ResolverMetaMultiError) Error ¶ added in v1.6.0
func (m ResolverMetaMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ResolverMetaValidationError ¶
type ResolverMetaValidationError struct {
// contains filtered or unexported fields
}
ResolverMetaValidationError is the validation error returned by ResolverMeta.Validate if the designated constraints aren't met.
func (ResolverMetaValidationError) Cause ¶
func (e ResolverMetaValidationError) Cause() error
Cause function returns cause value.
func (ResolverMetaValidationError) Error ¶
func (e ResolverMetaValidationError) Error() string
Error satisfies the builtin error interface
func (ResolverMetaValidationError) ErrorName ¶
func (e ResolverMetaValidationError) ErrorName() string
ErrorName returns error name.
func (ResolverMetaValidationError) Field ¶
func (e ResolverMetaValidationError) Field() string
Field function returns field value.
func (ResolverMetaValidationError) Key ¶
func (e ResolverMetaValidationError) Key() bool
Key function returns key value.
func (ResolverMetaValidationError) Reason ¶
func (e ResolverMetaValidationError) Reason() string
Reason function returns reason value.
type ResponseMeta ¶
type ResponseMeta struct { DispatchCount uint32 `protobuf:"varint,1,opt,name=dispatch_count,json=dispatchCount,proto3" json:"dispatch_count,omitempty"` DepthRequired uint32 `protobuf:"varint,2,opt,name=depth_required,json=depthRequired,proto3" json:"depth_required,omitempty"` CachedDispatchCount uint32 `protobuf:"varint,3,opt,name=cached_dispatch_count,json=cachedDispatchCount,proto3" json:"cached_dispatch_count,omitempty"` // LEGACY: To be removed LookupExcludedDirect []*v1.RelationReference `protobuf:"bytes,4,rep,name=lookup_excluded_direct,json=lookupExcludedDirect,proto3" json:"lookup_excluded_direct,omitempty"` LookupExcludedTtu []*v1.RelationReference `protobuf:"bytes,5,rep,name=lookup_excluded_ttu,json=lookupExcludedTtu,proto3" json:"lookup_excluded_ttu,omitempty"` // contains filtered or unexported fields }
func (*ResponseMeta) Descriptor
deprecated
func (*ResponseMeta) Descriptor() ([]byte, []int)
Deprecated: Use ResponseMeta.ProtoReflect.Descriptor instead.
func (*ResponseMeta) GetCachedDispatchCount ¶
func (x *ResponseMeta) GetCachedDispatchCount() uint32
func (*ResponseMeta) GetDepthRequired ¶
func (x *ResponseMeta) GetDepthRequired() uint32
func (*ResponseMeta) GetDispatchCount ¶
func (x *ResponseMeta) GetDispatchCount() uint32
func (*ResponseMeta) GetLookupExcludedDirect ¶
func (x *ResponseMeta) GetLookupExcludedDirect() []*v1.RelationReference
func (*ResponseMeta) GetLookupExcludedTtu ¶
func (x *ResponseMeta) GetLookupExcludedTtu() []*v1.RelationReference
func (*ResponseMeta) MarshalZerologObject ¶
func (cr *ResponseMeta) MarshalZerologObject(e *zerolog.Event)
MarshalZerologObject implements zerolog object marshalling.
func (*ResponseMeta) ProtoMessage ¶
func (*ResponseMeta) ProtoMessage()
func (*ResponseMeta) ProtoReflect ¶
func (x *ResponseMeta) ProtoReflect() protoreflect.Message
func (*ResponseMeta) Reset ¶
func (x *ResponseMeta) Reset()
func (*ResponseMeta) String ¶
func (x *ResponseMeta) String() string
func (*ResponseMeta) Validate ¶
func (m *ResponseMeta) Validate() error
Validate checks the field values on ResponseMeta 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 (*ResponseMeta) ValidateAll ¶ added in v1.6.0
func (m *ResponseMeta) ValidateAll() error
ValidateAll checks the field values on ResponseMeta 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 ResponseMetaMultiError, or nil if none found.
type ResponseMetaMultiError ¶ added in v1.6.0
type ResponseMetaMultiError []error
ResponseMetaMultiError is an error wrapping multiple validation errors returned by ResponseMeta.ValidateAll() if the designated constraints aren't met.
func (ResponseMetaMultiError) AllErrors ¶ added in v1.6.0
func (m ResponseMetaMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ResponseMetaMultiError) Error ¶ added in v1.6.0
func (m ResponseMetaMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ResponseMetaValidationError ¶
type ResponseMetaValidationError struct {
// contains filtered or unexported fields
}
ResponseMetaValidationError is the validation error returned by ResponseMeta.Validate if the designated constraints aren't met.
func (ResponseMetaValidationError) Cause ¶
func (e ResponseMetaValidationError) Cause() error
Cause function returns cause value.
func (ResponseMetaValidationError) Error ¶
func (e ResponseMetaValidationError) Error() string
Error satisfies the builtin error interface
func (ResponseMetaValidationError) ErrorName ¶
func (e ResponseMetaValidationError) ErrorName() string
ErrorName returns error name.
func (ResponseMetaValidationError) Field ¶
func (e ResponseMetaValidationError) Field() string
Field function returns field value.
func (ResponseMetaValidationError) Key ¶
func (e ResponseMetaValidationError) Key() bool
Key function returns key value.
func (ResponseMetaValidationError) Reason ¶
func (e ResponseMetaValidationError) Reason() string
Reason function returns reason value.
type UnimplementedDispatchServiceServer ¶
type UnimplementedDispatchServiceServer struct { }
UnimplementedDispatchServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedDispatchServiceServer) DispatchCheck ¶
func (UnimplementedDispatchServiceServer) DispatchCheck(context.Context, *DispatchCheckRequest) (*DispatchCheckResponse, error)
func (UnimplementedDispatchServiceServer) DispatchExpand ¶
func (UnimplementedDispatchServiceServer) DispatchExpand(context.Context, *DispatchExpandRequest) (*DispatchExpandResponse, error)
func (UnimplementedDispatchServiceServer) DispatchLookup ¶
func (UnimplementedDispatchServiceServer) DispatchLookup(context.Context, *DispatchLookupRequest) (*DispatchLookupResponse, error)
func (UnimplementedDispatchServiceServer) DispatchReachableResources ¶ added in v1.8.0
func (UnimplementedDispatchServiceServer) DispatchReachableResources(*DispatchReachableResourcesRequest, DispatchService_DispatchReachableResourcesServer) error
type UnsafeDispatchServiceServer ¶
type UnsafeDispatchServiceServer interface {
// contains filtered or unexported methods
}
UnsafeDispatchServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DispatchServiceServer will result in compilation errors.