Documentation
¶
Overview ¶
Package v1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterPermissionAPIHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterPermissionAPIHandlerClient(ctx context.Context, mux *runtime.ServeMux, client PermissionAPIClient) error
- func RegisterPermissionAPIHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterPermissionAPIHandlerServer(ctx context.Context, mux *runtime.ServeMux, server PermissionAPIServer) error
- func RegisterPermissionAPIServer(s grpc.ServiceRegistrar, srv PermissionAPIServer)
- func RegisterRelationshipAPIHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterRelationshipAPIHandlerClient(ctx context.Context, mux *runtime.ServeMux, client RelationshipAPIClient) error
- func RegisterRelationshipAPIHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterRelationshipAPIHandlerServer(ctx context.Context, mux *runtime.ServeMux, server RelationshipAPIServer) error
- func RegisterRelationshipAPIServer(s grpc.ServiceRegistrar, srv RelationshipAPIServer)
- func RegisterSchemaAPIHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterSchemaAPIHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SchemaAPIClient) error
- func RegisterSchemaAPIHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterSchemaAPIHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SchemaAPIServer) error
- func RegisterSchemaAPIServer(s grpc.ServiceRegistrar, srv SchemaAPIServer)
- type ActionDefinition
- func (*ActionDefinition) Descriptor() ([]byte, []int)deprecated
- func (x *ActionDefinition) GetChild() *Child
- func (x *ActionDefinition) GetName() string
- func (*ActionDefinition) ProtoMessage()
- func (x *ActionDefinition) ProtoReflect() protoreflect.Message
- func (x *ActionDefinition) Reset()
- func (x *ActionDefinition) String() string
- func (m *ActionDefinition) Validate() error
- func (m *ActionDefinition) ValidateAll() error
- type ActionDefinitionMultiError
- type ActionDefinitionValidationError
- func (e ActionDefinitionValidationError) Cause() error
- func (e ActionDefinitionValidationError) Error() string
- func (e ActionDefinitionValidationError) ErrorName() string
- func (e ActionDefinitionValidationError) Field() string
- func (e ActionDefinitionValidationError) Key() bool
- func (e ActionDefinitionValidationError) Reason() string
- type CheckRequest
- func (*CheckRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CheckRequest) GetAction() string
- func (x *CheckRequest) GetDepth() *wrapperspb.Int32Value
- func (x *CheckRequest) GetEntity() *Entity
- func (x *CheckRequest) GetSchemaVersion() string
- func (x *CheckRequest) GetSubject() *Subject
- func (*CheckRequest) ProtoMessage()
- func (x *CheckRequest) ProtoReflect() protoreflect.Message
- func (x *CheckRequest) Reset()
- func (x *CheckRequest) String() string
- func (m *CheckRequest) Validate() error
- func (m *CheckRequest) ValidateAll() error
- type CheckRequestMultiError
- type CheckRequestValidationError
- func (e CheckRequestValidationError) Cause() error
- func (e CheckRequestValidationError) Error() string
- func (e CheckRequestValidationError) ErrorName() string
- func (e CheckRequestValidationError) Field() string
- func (e CheckRequestValidationError) Key() bool
- func (e CheckRequestValidationError) Reason() string
- type CheckResponse
- func (*CheckResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CheckResponse) GetCan() bool
- func (x *CheckResponse) GetRemainingDepth() int32
- func (*CheckResponse) ProtoMessage()
- func (x *CheckResponse) ProtoReflect() protoreflect.Message
- func (x *CheckResponse) Reset()
- func (x *CheckResponse) String() string
- func (m *CheckResponse) Validate() error
- func (m *CheckResponse) ValidateAll() error
- type CheckResponseMultiError
- type CheckResponseValidationError
- func (e CheckResponseValidationError) Cause() error
- func (e CheckResponseValidationError) Error() string
- func (e CheckResponseValidationError) ErrorName() string
- func (e CheckResponseValidationError) Field() string
- func (e CheckResponseValidationError) Key() bool
- func (e CheckResponseValidationError) Reason() string
- type Child
- func (*Child) Descriptor() ([]byte, []int)deprecated
- func (x *Child) GetLeaf() *Leaf
- func (x *Child) GetRewrite() *Rewrite
- func (m *Child) GetType() isChild_Type
- func (*Child) ProtoMessage()
- func (x *Child) ProtoReflect() protoreflect.Message
- func (x *Child) Reset()
- func (x *Child) String() string
- func (m *Child) Validate() error
- func (m *Child) ValidateAll() error
- type ChildMultiError
- type ChildValidationError
- type Child_Leaf
- type Child_Rewrite
- type ComputedUserSet
- func (*ComputedUserSet) Descriptor() ([]byte, []int)deprecated
- func (x *ComputedUserSet) GetRelation() string
- func (*ComputedUserSet) ProtoMessage()
- func (x *ComputedUserSet) ProtoReflect() protoreflect.Message
- func (x *ComputedUserSet) Reset()
- func (x *ComputedUserSet) String() string
- func (m *ComputedUserSet) Validate() error
- func (m *ComputedUserSet) ValidateAll() error
- type ComputedUserSetMultiError
- type ComputedUserSetValidationError
- func (e ComputedUserSetValidationError) Cause() error
- func (e ComputedUserSetValidationError) Error() string
- func (e ComputedUserSetValidationError) ErrorName() string
- func (e ComputedUserSetValidationError) Field() string
- func (e ComputedUserSetValidationError) Key() bool
- func (e ComputedUserSetValidationError) Reason() string
- type Entity
- func (*Entity) Descriptor() ([]byte, []int)deprecated
- func (x *Entity) GetId() string
- func (x *Entity) GetType() string
- func (*Entity) ProtoMessage()
- func (x *Entity) ProtoReflect() protoreflect.Message
- func (x *Entity) Reset()
- func (x *Entity) String() string
- func (m *Entity) Validate() error
- func (m *Entity) ValidateAll() error
- type EntityAndRelation
- func (*EntityAndRelation) Descriptor() ([]byte, []int)deprecated
- func (x *EntityAndRelation) GetEntity() *Entity
- func (x *EntityAndRelation) GetRelation() string
- func (*EntityAndRelation) ProtoMessage()
- func (x *EntityAndRelation) ProtoReflect() protoreflect.Message
- func (x *EntityAndRelation) Reset()
- func (x *EntityAndRelation) String() string
- func (m *EntityAndRelation) Validate() error
- func (m *EntityAndRelation) ValidateAll() error
- type EntityAndRelationMultiError
- type EntityAndRelationValidationError
- func (e EntityAndRelationValidationError) Cause() error
- func (e EntityAndRelationValidationError) Error() string
- func (e EntityAndRelationValidationError) ErrorName() string
- func (e EntityAndRelationValidationError) Field() string
- func (e EntityAndRelationValidationError) Key() bool
- func (e EntityAndRelationValidationError) Reason() string
- type EntityDefinition
- func (*EntityDefinition) Descriptor() ([]byte, []int)deprecated
- func (x *EntityDefinition) GetActions() map[string]*ActionDefinition
- func (x *EntityDefinition) GetName() string
- func (x *EntityDefinition) GetOption() map[string]*anypb.Any
- func (x *EntityDefinition) GetRelations() map[string]*RelationDefinition
- func (*EntityDefinition) ProtoMessage()
- func (x *EntityDefinition) ProtoReflect() protoreflect.Message
- func (x *EntityDefinition) Reset()
- func (x *EntityDefinition) String() string
- func (m *EntityDefinition) Validate() error
- func (m *EntityDefinition) ValidateAll() error
- type EntityDefinitionMultiError
- type EntityDefinitionValidationError
- func (e EntityDefinitionValidationError) Cause() error
- func (e EntityDefinitionValidationError) Error() string
- func (e EntityDefinitionValidationError) ErrorName() string
- func (e EntityDefinitionValidationError) Field() string
- func (e EntityDefinitionValidationError) Key() bool
- func (e EntityDefinitionValidationError) Reason() string
- type EntityFilter
- func (*EntityFilter) Descriptor() ([]byte, []int)deprecated
- func (x *EntityFilter) GetId() string
- func (x *EntityFilter) GetType() string
- func (*EntityFilter) ProtoMessage()
- func (x *EntityFilter) ProtoReflect() protoreflect.Message
- func (x *EntityFilter) Reset()
- func (x *EntityFilter) String() string
- func (m *EntityFilter) Validate() error
- func (m *EntityFilter) ValidateAll() error
- type EntityFilterMultiError
- type EntityFilterValidationError
- func (e EntityFilterValidationError) Cause() error
- func (e EntityFilterValidationError) Error() string
- func (e EntityFilterValidationError) ErrorName() string
- func (e EntityFilterValidationError) Field() string
- func (e EntityFilterValidationError) Key() bool
- func (e EntityFilterValidationError) Reason() string
- type EntityMultiError
- type EntityValidationError
- type ErrorCode
- type ErrorResponse
- func (*ErrorResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ErrorResponse) GetCode() ErrorCode
- func (x *ErrorResponse) GetMessage() string
- func (*ErrorResponse) ProtoMessage()
- func (x *ErrorResponse) ProtoReflect() protoreflect.Message
- func (x *ErrorResponse) Reset()
- func (x *ErrorResponse) String() string
- func (m *ErrorResponse) Validate() error
- func (m *ErrorResponse) ValidateAll() error
- type ErrorResponseMultiError
- type ErrorResponseValidationError
- func (e ErrorResponseValidationError) Cause() error
- func (e ErrorResponseValidationError) Error() string
- func (e ErrorResponseValidationError) ErrorName() string
- func (e ErrorResponseValidationError) Field() string
- func (e ErrorResponseValidationError) Key() bool
- func (e ErrorResponseValidationError) Reason() string
- type Expand
- func (*Expand) Descriptor() ([]byte, []int)deprecated
- func (x *Expand) GetExpand() *ExpandTreeNode
- func (x *Expand) GetLeaf() *Subjects
- func (m *Expand) GetNode() isExpand_Node
- func (x *Expand) GetTarget() *EntityAndRelation
- func (*Expand) ProtoMessage()
- func (x *Expand) ProtoReflect() protoreflect.Message
- func (x *Expand) Reset()
- func (x *Expand) String() string
- func (m *Expand) Validate() error
- func (m *Expand) ValidateAll() error
- type ExpandMultiError
- type ExpandRequest
- func (*ExpandRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ExpandRequest) GetAction() string
- func (x *ExpandRequest) GetEntity() *Entity
- func (x *ExpandRequest) GetSchemaVersion() string
- func (*ExpandRequest) ProtoMessage()
- func (x *ExpandRequest) ProtoReflect() protoreflect.Message
- func (x *ExpandRequest) Reset()
- func (x *ExpandRequest) String() string
- func (m *ExpandRequest) Validate() error
- func (m *ExpandRequest) ValidateAll() error
- type ExpandRequestMultiError
- type ExpandRequestValidationError
- func (e ExpandRequestValidationError) Cause() error
- func (e ExpandRequestValidationError) Error() string
- func (e ExpandRequestValidationError) ErrorName() string
- func (e ExpandRequestValidationError) Field() string
- func (e ExpandRequestValidationError) Key() bool
- func (e ExpandRequestValidationError) Reason() string
- type ExpandResponse
- func (*ExpandResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ExpandResponse) GetTree() *Expand
- func (*ExpandResponse) ProtoMessage()
- func (x *ExpandResponse) ProtoReflect() protoreflect.Message
- func (x *ExpandResponse) Reset()
- func (x *ExpandResponse) String() string
- func (m *ExpandResponse) Validate() error
- func (m *ExpandResponse) ValidateAll() error
- type ExpandResponseMultiError
- type ExpandResponseValidationError
- func (e ExpandResponseValidationError) Cause() error
- func (e ExpandResponseValidationError) Error() string
- func (e ExpandResponseValidationError) ErrorName() string
- func (e ExpandResponseValidationError) Field() string
- func (e ExpandResponseValidationError) Key() bool
- func (e ExpandResponseValidationError) Reason() string
- type ExpandTreeNode
- func (*ExpandTreeNode) Descriptor() ([]byte, []int)deprecated
- func (x *ExpandTreeNode) GetChildren() []*Expand
- func (x *ExpandTreeNode) GetOperation() ExpandTreeNode_Operation
- func (*ExpandTreeNode) ProtoMessage()
- func (x *ExpandTreeNode) ProtoReflect() protoreflect.Message
- func (x *ExpandTreeNode) Reset()
- func (x *ExpandTreeNode) String() string
- func (m *ExpandTreeNode) Validate() error
- func (m *ExpandTreeNode) ValidateAll() error
- type ExpandTreeNodeMultiError
- type ExpandTreeNodeValidationError
- func (e ExpandTreeNodeValidationError) Cause() error
- func (e ExpandTreeNodeValidationError) Error() string
- func (e ExpandTreeNodeValidationError) ErrorName() string
- func (e ExpandTreeNodeValidationError) Field() string
- func (e ExpandTreeNodeValidationError) Key() bool
- func (e ExpandTreeNodeValidationError) Reason() string
- type ExpandTreeNode_Operation
- func (ExpandTreeNode_Operation) Descriptor() protoreflect.EnumDescriptor
- func (x ExpandTreeNode_Operation) Enum() *ExpandTreeNode_Operation
- func (ExpandTreeNode_Operation) EnumDescriptor() ([]byte, []int)deprecated
- func (x ExpandTreeNode_Operation) Number() protoreflect.EnumNumber
- func (x ExpandTreeNode_Operation) String() string
- func (ExpandTreeNode_Operation) Type() protoreflect.EnumType
- type ExpandValidationError
- type Expand_Expand
- type Expand_Leaf
- type Leaf
- func (*Leaf) Descriptor() ([]byte, []int)deprecated
- func (x *Leaf) GetComputedUserSet() *ComputedUserSet
- func (x *Leaf) GetExclusion() bool
- func (x *Leaf) GetTupleToUserSet() *TupleToUserSet
- func (m *Leaf) GetType() isLeaf_Type
- func (*Leaf) ProtoMessage()
- func (x *Leaf) ProtoReflect() protoreflect.Message
- func (x *Leaf) Reset()
- func (x *Leaf) String() string
- func (m *Leaf) Validate() error
- func (m *Leaf) ValidateAll() error
- type LeafMultiError
- type LeafValidationError
- type Leaf_ComputedUserSet
- type Leaf_TupleToUserSet
- type LookupQueryRequest
- func (*LookupQueryRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LookupQueryRequest) GetAction() string
- func (x *LookupQueryRequest) GetEntityType() string
- func (x *LookupQueryRequest) GetSchemaVersion() string
- func (x *LookupQueryRequest) GetSubject() *Subject
- func (*LookupQueryRequest) ProtoMessage()
- func (x *LookupQueryRequest) ProtoReflect() protoreflect.Message
- func (x *LookupQueryRequest) Reset()
- func (x *LookupQueryRequest) String() string
- func (m *LookupQueryRequest) Validate() error
- func (m *LookupQueryRequest) ValidateAll() error
- type LookupQueryRequestMultiError
- type LookupQueryRequestValidationError
- func (e LookupQueryRequestValidationError) Cause() error
- func (e LookupQueryRequestValidationError) Error() string
- func (e LookupQueryRequestValidationError) ErrorName() string
- func (e LookupQueryRequestValidationError) Field() string
- func (e LookupQueryRequestValidationError) Key() bool
- func (e LookupQueryRequestValidationError) Reason() string
- type LookupQueryResponse
- func (*LookupQueryResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LookupQueryResponse) GetArgs() []string
- func (x *LookupQueryResponse) GetQuery() string
- func (*LookupQueryResponse) ProtoMessage()
- func (x *LookupQueryResponse) ProtoReflect() protoreflect.Message
- func (x *LookupQueryResponse) Reset()
- func (x *LookupQueryResponse) String() string
- func (m *LookupQueryResponse) Validate() error
- func (m *LookupQueryResponse) ValidateAll() error
- type LookupQueryResponseMultiError
- type LookupQueryResponseValidationError
- func (e LookupQueryResponseValidationError) Cause() error
- func (e LookupQueryResponseValidationError) Error() string
- func (e LookupQueryResponseValidationError) ErrorName() string
- func (e LookupQueryResponseValidationError) Field() string
- func (e LookupQueryResponseValidationError) Key() bool
- func (e LookupQueryResponseValidationError) Reason() string
- type PermissionAPIClient
- type PermissionAPIServer
- type RelationDefinition
- func (*RelationDefinition) Descriptor() ([]byte, []int)deprecated
- func (x *RelationDefinition) GetEntityReference() *RelationReference
- func (x *RelationDefinition) GetName() string
- func (x *RelationDefinition) GetOption() map[string]*anypb.Any
- func (x *RelationDefinition) GetRelationReferences() []*RelationReference
- func (*RelationDefinition) ProtoMessage()
- func (x *RelationDefinition) ProtoReflect() protoreflect.Message
- func (x *RelationDefinition) Reset()
- func (x *RelationDefinition) String() string
- func (m *RelationDefinition) Validate() error
- func (m *RelationDefinition) ValidateAll() error
- type RelationDefinitionMultiError
- type RelationDefinitionValidationError
- func (e RelationDefinitionValidationError) Cause() error
- func (e RelationDefinitionValidationError) Error() string
- func (e RelationDefinitionValidationError) ErrorName() string
- func (e RelationDefinitionValidationError) Field() string
- func (e RelationDefinitionValidationError) Key() bool
- func (e RelationDefinitionValidationError) Reason() string
- type RelationReference
- func (*RelationReference) Descriptor() ([]byte, []int)deprecated
- func (x *RelationReference) GetName() string
- func (*RelationReference) ProtoMessage()
- func (x *RelationReference) ProtoReflect() protoreflect.Message
- func (x *RelationReference) Reset()
- func (x *RelationReference) String() string
- func (m *RelationReference) Validate() error
- func (m *RelationReference) ValidateAll() error
- type RelationReferenceMultiError
- type RelationReferenceValidationError
- func (e RelationReferenceValidationError) Cause() error
- func (e RelationReferenceValidationError) Error() string
- func (e RelationReferenceValidationError) ErrorName() string
- func (e RelationReferenceValidationError) Field() string
- func (e RelationReferenceValidationError) Key() bool
- func (e RelationReferenceValidationError) Reason() string
- type RelationshipAPIClient
- type RelationshipAPIServer
- type RelationshipDeleteRequest
- func (*RelationshipDeleteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RelationshipDeleteRequest) GetEntity() *Entity
- func (x *RelationshipDeleteRequest) GetRelation() string
- func (x *RelationshipDeleteRequest) GetSubject() *Subject
- func (*RelationshipDeleteRequest) ProtoMessage()
- func (x *RelationshipDeleteRequest) ProtoReflect() protoreflect.Message
- func (x *RelationshipDeleteRequest) Reset()
- func (x *RelationshipDeleteRequest) String() string
- func (m *RelationshipDeleteRequest) Validate() error
- func (m *RelationshipDeleteRequest) ValidateAll() error
- type RelationshipDeleteRequestMultiError
- type RelationshipDeleteRequestValidationError
- func (e RelationshipDeleteRequestValidationError) Cause() error
- func (e RelationshipDeleteRequestValidationError) Error() string
- func (e RelationshipDeleteRequestValidationError) ErrorName() string
- func (e RelationshipDeleteRequestValidationError) Field() string
- func (e RelationshipDeleteRequestValidationError) Key() bool
- func (e RelationshipDeleteRequestValidationError) Reason() string
- type RelationshipDeleteResponse
- func (*RelationshipDeleteResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RelationshipDeleteResponse) GetTuple() *Tuple
- func (*RelationshipDeleteResponse) ProtoMessage()
- func (x *RelationshipDeleteResponse) ProtoReflect() protoreflect.Message
- func (x *RelationshipDeleteResponse) Reset()
- func (x *RelationshipDeleteResponse) String() string
- func (m *RelationshipDeleteResponse) Validate() error
- func (m *RelationshipDeleteResponse) ValidateAll() error
- type RelationshipDeleteResponseMultiError
- type RelationshipDeleteResponseValidationError
- func (e RelationshipDeleteResponseValidationError) Cause() error
- func (e RelationshipDeleteResponseValidationError) Error() string
- func (e RelationshipDeleteResponseValidationError) ErrorName() string
- func (e RelationshipDeleteResponseValidationError) Field() string
- func (e RelationshipDeleteResponseValidationError) Key() bool
- func (e RelationshipDeleteResponseValidationError) Reason() string
- type RelationshipReadRequest
- func (*RelationshipReadRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RelationshipReadRequest) GetFilter() *TupleFilter
- func (*RelationshipReadRequest) ProtoMessage()
- func (x *RelationshipReadRequest) ProtoReflect() protoreflect.Message
- func (x *RelationshipReadRequest) Reset()
- func (x *RelationshipReadRequest) String() string
- func (m *RelationshipReadRequest) Validate() error
- func (m *RelationshipReadRequest) ValidateAll() error
- type RelationshipReadRequestMultiError
- type RelationshipReadRequestValidationError
- func (e RelationshipReadRequestValidationError) Cause() error
- func (e RelationshipReadRequestValidationError) Error() string
- func (e RelationshipReadRequestValidationError) ErrorName() string
- func (e RelationshipReadRequestValidationError) Field() string
- func (e RelationshipReadRequestValidationError) Key() bool
- func (e RelationshipReadRequestValidationError) Reason() string
- type RelationshipReadResponse
- func (*RelationshipReadResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RelationshipReadResponse) GetTuples() []*Tuple
- func (*RelationshipReadResponse) ProtoMessage()
- func (x *RelationshipReadResponse) ProtoReflect() protoreflect.Message
- func (x *RelationshipReadResponse) Reset()
- func (x *RelationshipReadResponse) String() string
- func (m *RelationshipReadResponse) Validate() error
- func (m *RelationshipReadResponse) ValidateAll() error
- type RelationshipReadResponseMultiError
- type RelationshipReadResponseValidationError
- func (e RelationshipReadResponseValidationError) Cause() error
- func (e RelationshipReadResponseValidationError) Error() string
- func (e RelationshipReadResponseValidationError) ErrorName() string
- func (e RelationshipReadResponseValidationError) Field() string
- func (e RelationshipReadResponseValidationError) Key() bool
- func (e RelationshipReadResponseValidationError) Reason() string
- type RelationshipWriteRequest
- func (*RelationshipWriteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RelationshipWriteRequest) GetEntity() *Entity
- func (x *RelationshipWriteRequest) GetRelation() string
- func (x *RelationshipWriteRequest) GetSchemaVersion() string
- func (x *RelationshipWriteRequest) GetSubject() *Subject
- func (*RelationshipWriteRequest) ProtoMessage()
- func (x *RelationshipWriteRequest) ProtoReflect() protoreflect.Message
- func (x *RelationshipWriteRequest) Reset()
- func (x *RelationshipWriteRequest) String() string
- func (m *RelationshipWriteRequest) Validate() error
- func (m *RelationshipWriteRequest) ValidateAll() error
- type RelationshipWriteRequestMultiError
- type RelationshipWriteRequestValidationError
- func (e RelationshipWriteRequestValidationError) Cause() error
- func (e RelationshipWriteRequestValidationError) Error() string
- func (e RelationshipWriteRequestValidationError) ErrorName() string
- func (e RelationshipWriteRequestValidationError) Field() string
- func (e RelationshipWriteRequestValidationError) Key() bool
- func (e RelationshipWriteRequestValidationError) Reason() string
- type RelationshipWriteResponse
- func (*RelationshipWriteResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RelationshipWriteResponse) GetTuple() *Tuple
- func (*RelationshipWriteResponse) ProtoMessage()
- func (x *RelationshipWriteResponse) ProtoReflect() protoreflect.Message
- func (x *RelationshipWriteResponse) Reset()
- func (x *RelationshipWriteResponse) String() string
- func (m *RelationshipWriteResponse) Validate() error
- func (m *RelationshipWriteResponse) ValidateAll() error
- type RelationshipWriteResponseMultiError
- type RelationshipWriteResponseValidationError
- func (e RelationshipWriteResponseValidationError) Cause() error
- func (e RelationshipWriteResponseValidationError) Error() string
- func (e RelationshipWriteResponseValidationError) ErrorName() string
- func (e RelationshipWriteResponseValidationError) Field() string
- func (e RelationshipWriteResponseValidationError) Key() bool
- func (e RelationshipWriteResponseValidationError) Reason() string
- type Rewrite
- func (*Rewrite) Descriptor() ([]byte, []int)deprecated
- func (x *Rewrite) GetChildren() []*Child
- func (x *Rewrite) GetRewriteOperation() Rewrite_Operation
- func (*Rewrite) ProtoMessage()
- func (x *Rewrite) ProtoReflect() protoreflect.Message
- func (x *Rewrite) Reset()
- func (x *Rewrite) String() string
- func (m *Rewrite) Validate() error
- func (m *Rewrite) ValidateAll() error
- type RewriteMultiError
- type RewriteValidationError
- type Rewrite_Operation
- func (Rewrite_Operation) Descriptor() protoreflect.EnumDescriptor
- func (x Rewrite_Operation) Enum() *Rewrite_Operation
- func (Rewrite_Operation) EnumDescriptor() ([]byte, []int)deprecated
- func (x Rewrite_Operation) Number() protoreflect.EnumNumber
- func (x Rewrite_Operation) String() string
- func (Rewrite_Operation) Type() protoreflect.EnumType
- type Schema
- func (*Schema) Descriptor() ([]byte, []int)deprecated
- func (x *Schema) GetActionDefinitions() map[string]*ActionDefinition
- func (x *Schema) GetEntityDefinitions() map[string]*EntityDefinition
- func (x *Schema) GetRelationDefinitions() map[string]*RelationDefinition
- func (*Schema) ProtoMessage()
- func (x *Schema) ProtoReflect() protoreflect.Message
- func (x *Schema) Reset()
- func (x *Schema) String() string
- func (m *Schema) Validate() error
- func (m *Schema) ValidateAll() error
- type SchemaAPIClient
- type SchemaAPIServer
- type SchemaLookupRequest
- func (*SchemaLookupRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SchemaLookupRequest) GetEntityType() string
- func (x *SchemaLookupRequest) GetRelationNames() []string
- func (x *SchemaLookupRequest) GetSchemaVersion() string
- func (*SchemaLookupRequest) ProtoMessage()
- func (x *SchemaLookupRequest) ProtoReflect() protoreflect.Message
- func (x *SchemaLookupRequest) Reset()
- func (x *SchemaLookupRequest) String() string
- func (m *SchemaLookupRequest) Validate() error
- func (m *SchemaLookupRequest) ValidateAll() error
- type SchemaLookupRequestMultiError
- type SchemaLookupRequestValidationError
- func (e SchemaLookupRequestValidationError) Cause() error
- func (e SchemaLookupRequestValidationError) Error() string
- func (e SchemaLookupRequestValidationError) ErrorName() string
- func (e SchemaLookupRequestValidationError) Field() string
- func (e SchemaLookupRequestValidationError) Key() bool
- func (e SchemaLookupRequestValidationError) Reason() string
- type SchemaLookupResponse
- func (*SchemaLookupResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SchemaLookupResponse) GetActionNames() []string
- func (*SchemaLookupResponse) ProtoMessage()
- func (x *SchemaLookupResponse) ProtoReflect() protoreflect.Message
- func (x *SchemaLookupResponse) Reset()
- func (x *SchemaLookupResponse) String() string
- func (m *SchemaLookupResponse) Validate() error
- func (m *SchemaLookupResponse) ValidateAll() error
- type SchemaLookupResponseMultiError
- type SchemaLookupResponseValidationError
- func (e SchemaLookupResponseValidationError) Cause() error
- func (e SchemaLookupResponseValidationError) Error() string
- func (e SchemaLookupResponseValidationError) ErrorName() string
- func (e SchemaLookupResponseValidationError) Field() string
- func (e SchemaLookupResponseValidationError) Key() bool
- func (e SchemaLookupResponseValidationError) Reason() string
- type SchemaMultiError
- type SchemaReadRequest
- func (*SchemaReadRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SchemaReadRequest) GetSchemaVersion() string
- func (*SchemaReadRequest) ProtoMessage()
- func (x *SchemaReadRequest) ProtoReflect() protoreflect.Message
- func (x *SchemaReadRequest) Reset()
- func (x *SchemaReadRequest) String() string
- func (m *SchemaReadRequest) Validate() error
- func (m *SchemaReadRequest) ValidateAll() error
- type SchemaReadRequestMultiError
- type SchemaReadRequestValidationError
- func (e SchemaReadRequestValidationError) Cause() error
- func (e SchemaReadRequestValidationError) Error() string
- func (e SchemaReadRequestValidationError) ErrorName() string
- func (e SchemaReadRequestValidationError) Field() string
- func (e SchemaReadRequestValidationError) Key() bool
- func (e SchemaReadRequestValidationError) Reason() string
- type SchemaReadResponse
- func (*SchemaReadResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SchemaReadResponse) GetSchema() *Schema
- func (*SchemaReadResponse) ProtoMessage()
- func (x *SchemaReadResponse) ProtoReflect() protoreflect.Message
- func (x *SchemaReadResponse) Reset()
- func (x *SchemaReadResponse) String() string
- func (m *SchemaReadResponse) Validate() error
- func (m *SchemaReadResponse) ValidateAll() error
- type SchemaReadResponseMultiError
- type SchemaReadResponseValidationError
- func (e SchemaReadResponseValidationError) Cause() error
- func (e SchemaReadResponseValidationError) Error() string
- func (e SchemaReadResponseValidationError) ErrorName() string
- func (e SchemaReadResponseValidationError) Field() string
- func (e SchemaReadResponseValidationError) Key() bool
- func (e SchemaReadResponseValidationError) Reason() string
- type SchemaValidationError
- type SchemaWriteRequest
- func (*SchemaWriteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SchemaWriteRequest) GetSchema() string
- func (*SchemaWriteRequest) ProtoMessage()
- func (x *SchemaWriteRequest) ProtoReflect() protoreflect.Message
- func (x *SchemaWriteRequest) Reset()
- func (x *SchemaWriteRequest) String() string
- func (m *SchemaWriteRequest) Validate() error
- func (m *SchemaWriteRequest) ValidateAll() error
- type SchemaWriteRequestMultiError
- type SchemaWriteRequestValidationError
- func (e SchemaWriteRequestValidationError) Cause() error
- func (e SchemaWriteRequestValidationError) Error() string
- func (e SchemaWriteRequestValidationError) ErrorName() string
- func (e SchemaWriteRequestValidationError) Field() string
- func (e SchemaWriteRequestValidationError) Key() bool
- func (e SchemaWriteRequestValidationError) Reason() string
- type SchemaWriteResponse
- func (*SchemaWriteResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SchemaWriteResponse) GetSchemaVersion() string
- func (*SchemaWriteResponse) ProtoMessage()
- func (x *SchemaWriteResponse) ProtoReflect() protoreflect.Message
- func (x *SchemaWriteResponse) Reset()
- func (x *SchemaWriteResponse) String() string
- func (m *SchemaWriteResponse) Validate() error
- func (m *SchemaWriteResponse) ValidateAll() error
- type SchemaWriteResponseMultiError
- type SchemaWriteResponseValidationError
- func (e SchemaWriteResponseValidationError) Cause() error
- func (e SchemaWriteResponseValidationError) Error() string
- func (e SchemaWriteResponseValidationError) ErrorName() string
- func (e SchemaWriteResponseValidationError) Field() string
- func (e SchemaWriteResponseValidationError) Key() bool
- func (e SchemaWriteResponseValidationError) Reason() string
- type Subject
- func (*Subject) Descriptor() ([]byte, []int)deprecated
- func (x *Subject) GetId() string
- func (x *Subject) GetRelation() string
- func (x *Subject) GetType() string
- func (*Subject) ProtoMessage()
- func (x *Subject) ProtoReflect() protoreflect.Message
- func (x *Subject) Reset()
- func (x *Subject) String() string
- func (m *Subject) Validate() error
- func (m *Subject) ValidateAll() error
- type SubjectFilter
- func (*SubjectFilter) Descriptor() ([]byte, []int)deprecated
- func (x *SubjectFilter) GetId() string
- func (x *SubjectFilter) GetRelation() string
- func (x *SubjectFilter) GetType() string
- func (*SubjectFilter) ProtoMessage()
- func (x *SubjectFilter) ProtoReflect() protoreflect.Message
- func (x *SubjectFilter) Reset()
- func (x *SubjectFilter) String() string
- func (m *SubjectFilter) Validate() error
- func (m *SubjectFilter) ValidateAll() error
- type SubjectFilterMultiError
- type SubjectFilterValidationError
- func (e SubjectFilterValidationError) Cause() error
- func (e SubjectFilterValidationError) Error() string
- func (e SubjectFilterValidationError) ErrorName() string
- func (e SubjectFilterValidationError) Field() string
- func (e SubjectFilterValidationError) Key() bool
- func (e SubjectFilterValidationError) Reason() string
- type SubjectMultiError
- type SubjectValidationError
- type Subjects
- func (*Subjects) Descriptor() ([]byte, []int)deprecated
- func (x *Subjects) GetExclusion() bool
- func (x *Subjects) GetSubjects() []*Subject
- func (*Subjects) ProtoMessage()
- func (x *Subjects) ProtoReflect() protoreflect.Message
- func (x *Subjects) Reset()
- func (x *Subjects) String() string
- func (m *Subjects) Validate() error
- func (m *Subjects) ValidateAll() error
- type SubjectsMultiError
- type SubjectsValidationError
- type Tuple
- func (*Tuple) Descriptor() ([]byte, []int)deprecated
- func (x *Tuple) GetEntity() *Entity
- func (x *Tuple) GetRelation() string
- func (x *Tuple) GetSubject() *Subject
- func (*Tuple) ProtoMessage()
- func (x *Tuple) ProtoReflect() protoreflect.Message
- func (x *Tuple) Reset()
- func (x *Tuple) String() string
- func (m *Tuple) Validate() error
- func (m *Tuple) ValidateAll() error
- type TupleFilter
- func (*TupleFilter) Descriptor() ([]byte, []int)deprecated
- func (x *TupleFilter) GetEntity() *EntityFilter
- func (x *TupleFilter) GetRelation() string
- func (x *TupleFilter) GetSubject() *SubjectFilter
- func (*TupleFilter) ProtoMessage()
- func (x *TupleFilter) ProtoReflect() protoreflect.Message
- func (x *TupleFilter) Reset()
- func (x *TupleFilter) String() string
- func (m *TupleFilter) Validate() error
- func (m *TupleFilter) ValidateAll() error
- type TupleFilterMultiError
- type TupleFilterValidationError
- func (e TupleFilterValidationError) Cause() error
- func (e TupleFilterValidationError) Error() string
- func (e TupleFilterValidationError) ErrorName() string
- func (e TupleFilterValidationError) Field() string
- func (e TupleFilterValidationError) Key() bool
- func (e TupleFilterValidationError) Reason() string
- type TupleMultiError
- type TupleToUserSet
- func (*TupleToUserSet) Descriptor() ([]byte, []int)deprecated
- func (x *TupleToUserSet) GetRelation() string
- func (*TupleToUserSet) ProtoMessage()
- func (x *TupleToUserSet) ProtoReflect() protoreflect.Message
- func (x *TupleToUserSet) Reset()
- func (x *TupleToUserSet) String() string
- func (m *TupleToUserSet) Validate() error
- func (m *TupleToUserSet) ValidateAll() error
- type TupleToUserSetMultiError
- type TupleToUserSetValidationError
- func (e TupleToUserSetValidationError) Cause() error
- func (e TupleToUserSetValidationError) Error() string
- func (e TupleToUserSetValidationError) ErrorName() string
- func (e TupleToUserSetValidationError) Field() string
- func (e TupleToUserSetValidationError) Key() bool
- func (e TupleToUserSetValidationError) Reason() string
- type TupleValidationError
- type Tuples
- func (*Tuples) Descriptor() ([]byte, []int)deprecated
- func (x *Tuples) GetTuples() []*Tuple
- func (*Tuples) ProtoMessage()
- func (x *Tuples) ProtoReflect() protoreflect.Message
- func (x *Tuples) Reset()
- func (x *Tuples) String() string
- func (m *Tuples) Validate() error
- func (m *Tuples) ValidateAll() error
- type TuplesMultiError
- type TuplesValidationError
- type UnimplementedPermissionAPIServer
- func (UnimplementedPermissionAPIServer) Check(context.Context, *CheckRequest) (*CheckResponse, error)
- func (UnimplementedPermissionAPIServer) Expand(context.Context, *ExpandRequest) (*ExpandResponse, error)
- func (UnimplementedPermissionAPIServer) LookupQuery(context.Context, *LookupQueryRequest) (*LookupQueryResponse, error)
- type UnimplementedRelationshipAPIServer
- func (UnimplementedRelationshipAPIServer) Delete(context.Context, *RelationshipDeleteRequest) (*RelationshipDeleteResponse, error)
- func (UnimplementedRelationshipAPIServer) Read(context.Context, *RelationshipReadRequest) (*RelationshipReadResponse, error)
- func (UnimplementedRelationshipAPIServer) Write(context.Context, *RelationshipWriteRequest) (*RelationshipWriteResponse, error)
- type UnimplementedSchemaAPIServer
- func (UnimplementedSchemaAPIServer) Lookup(context.Context, *SchemaLookupRequest) (*SchemaLookupResponse, error)
- func (UnimplementedSchemaAPIServer) Read(context.Context, *SchemaReadRequest) (*SchemaReadResponse, error)
- func (UnimplementedSchemaAPIServer) Write(context.Context, *SchemaWriteRequest) (*SchemaWriteResponse, error)
- type UnsafePermissionAPIServer
- type UnsafeRelationshipAPIServer
- type UnsafeSchemaAPIServer
Constants ¶
This section is empty.
Variables ¶
var ( ErrorCode_name = map[int32]string{ 0: "no_error", 1001: "missing_bearer_token", 1002: "unauthenticated", 2000: "validation_error", 2002: "undefined_child_type", 2003: "undefined_child_kind", 2006: "undefined_relation_reference", 2007: "not_supported_relation_walk", 2008: "entity_and_subject_cannot_be_equal", 2009: "depth_not_enough", 2010: "relation_reference_not_found_in_entity_references", 2011: "relation_reference_must_have_one_entity_reference", 2012: "duplicated_entity_reference", 2013: "duplicated_relation_reference", 2014: "duplicated_action_reference", 2015: "schema_parse", 2016: "schema_compile", 2017: "subject_relation_must_be_empty", 2018: "subject_relation_cannot_be_empty", 2019: "schema_must_have_user_entity_definition", 4000: "not_found_error", 4001: "entity_type_can_not_found", 4002: "action_can_not_found", 4003: "schema_not_found", 4004: "subject_type_not_found", 4005: "entity_definition_not_found", 4006: "action_definition_not_found", 4007: "relation_definition_not_found", 4008: "record_not_found", 5000: "internal_error", 5001: "cancelled", 5002: "sql_builder_error", 5003: "circuit_breaker_error", 5004: "unique_constraint", 5005: "execution", 5006: "scan", 5007: "migration", 5008: "type_conversation_error", } ErrorCode_value = map[string]int32{ "no_error": 0, "missing_bearer_token": 1001, "unauthenticated": 1002, "validation_error": 2000, "undefined_child_type": 2002, "undefined_child_kind": 2003, "undefined_relation_reference": 2006, "not_supported_relation_walk": 2007, "entity_and_subject_cannot_be_equal": 2008, "depth_not_enough": 2009, "relation_reference_not_found_in_entity_references": 2010, "relation_reference_must_have_one_entity_reference": 2011, "duplicated_entity_reference": 2012, "duplicated_relation_reference": 2013, "duplicated_action_reference": 2014, "schema_parse": 2015, "schema_compile": 2016, "subject_relation_must_be_empty": 2017, "subject_relation_cannot_be_empty": 2018, "schema_must_have_user_entity_definition": 2019, "not_found_error": 4000, "entity_type_can_not_found": 4001, "action_can_not_found": 4002, "schema_not_found": 4003, "subject_type_not_found": 4004, "entity_definition_not_found": 4005, "action_definition_not_found": 4006, "relation_definition_not_found": 4007, "record_not_found": 4008, "internal_error": 5000, "cancelled": 5001, "sql_builder_error": 5002, "circuit_breaker_error": 5003, "unique_constraint": 5004, "execution": 5005, "scan": 5006, "migration": 5007, "type_conversation_error": 5008, } )
Enum value maps for ErrorCode.
var ( Rewrite_Operation_name = map[int32]string{ 0: "INVALID", 1: "UNION", 2: "INTERSECTION", } Rewrite_Operation_value = map[string]int32{ "INVALID": 0, "UNION": 1, "INTERSECTION": 2, } )
Enum value maps for Rewrite_Operation.
var ( ExpandTreeNode_Operation_name = map[int32]string{ 0: "INVALID", 1: "UNION", 2: "INTERSECTION", 3: "ROOT", } ExpandTreeNode_Operation_value = map[string]int32{ "INVALID": 0, "UNION": 1, "INTERSECTION": 2, "ROOT": 3, } )
Enum value maps for ExpandTreeNode_Operation.
var File_errors_proto protoreflect.FileDescriptor
var File_openapi_proto protoreflect.FileDescriptor
var File_schema_proto protoreflect.FileDescriptor
var File_service_proto protoreflect.FileDescriptor
var File_tuple_proto protoreflect.FileDescriptor
var PermissionAPI_ServiceDesc = grpc.ServiceDesc{ ServiceName: "PermissionAPI", HandlerType: (*PermissionAPIServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Check", Handler: _PermissionAPI_Check_Handler, }, { MethodName: "Expand", Handler: _PermissionAPI_Expand_Handler, }, { MethodName: "LookupQuery", Handler: _PermissionAPI_LookupQuery_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "service.proto", }
PermissionAPI_ServiceDesc is the grpc.ServiceDesc for PermissionAPI service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var RelationshipAPI_ServiceDesc = grpc.ServiceDesc{ ServiceName: "RelationshipAPI", HandlerType: (*RelationshipAPIServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Write", Handler: _RelationshipAPI_Write_Handler, }, { MethodName: "Read", Handler: _RelationshipAPI_Read_Handler, }, { MethodName: "Delete", Handler: _RelationshipAPI_Delete_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "service.proto", }
RelationshipAPI_ServiceDesc is the grpc.ServiceDesc for RelationshipAPI service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var SchemaAPI_ServiceDesc = grpc.ServiceDesc{ ServiceName: "SchemaAPI", HandlerType: (*SchemaAPIServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Write", Handler: _SchemaAPI_Write_Handler, }, { MethodName: "Read", Handler: _SchemaAPI_Read_Handler, }, { MethodName: "Lookup", Handler: _SchemaAPI_Lookup_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "service.proto", }
SchemaAPI_ServiceDesc is the grpc.ServiceDesc for SchemaAPI service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterPermissionAPIHandler ¶
func RegisterPermissionAPIHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterPermissionAPIHandler registers the http handlers for service PermissionAPI to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterPermissionAPIHandlerClient ¶
func RegisterPermissionAPIHandlerClient(ctx context.Context, mux *runtime.ServeMux, client PermissionAPIClient) error
RegisterPermissionAPIHandlerClient registers the http handlers for service PermissionAPI to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "PermissionAPIClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "PermissionAPIClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "PermissionAPIClient" to call the correct interceptors.
func RegisterPermissionAPIHandlerFromEndpoint ¶
func RegisterPermissionAPIHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterPermissionAPIHandlerFromEndpoint is same as RegisterPermissionAPIHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterPermissionAPIHandlerServer ¶
func RegisterPermissionAPIHandlerServer(ctx context.Context, mux *runtime.ServeMux, server PermissionAPIServer) error
RegisterPermissionAPIHandlerServer registers the http handlers for service PermissionAPI to "mux". UnaryRPC :call PermissionAPIServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterPermissionAPIHandlerFromEndpoint instead.
func RegisterPermissionAPIServer ¶
func RegisterPermissionAPIServer(s grpc.ServiceRegistrar, srv PermissionAPIServer)
func RegisterRelationshipAPIHandler ¶
func RegisterRelationshipAPIHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterRelationshipAPIHandler registers the http handlers for service RelationshipAPI to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterRelationshipAPIHandlerClient ¶
func RegisterRelationshipAPIHandlerClient(ctx context.Context, mux *runtime.ServeMux, client RelationshipAPIClient) error
RegisterRelationshipAPIHandlerClient registers the http handlers for service RelationshipAPI to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "RelationshipAPIClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "RelationshipAPIClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "RelationshipAPIClient" to call the correct interceptors.
func RegisterRelationshipAPIHandlerFromEndpoint ¶
func RegisterRelationshipAPIHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterRelationshipAPIHandlerFromEndpoint is same as RegisterRelationshipAPIHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterRelationshipAPIHandlerServer ¶
func RegisterRelationshipAPIHandlerServer(ctx context.Context, mux *runtime.ServeMux, server RelationshipAPIServer) error
RegisterRelationshipAPIHandlerServer registers the http handlers for service RelationshipAPI to "mux". UnaryRPC :call RelationshipAPIServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterRelationshipAPIHandlerFromEndpoint instead.
func RegisterRelationshipAPIServer ¶
func RegisterRelationshipAPIServer(s grpc.ServiceRegistrar, srv RelationshipAPIServer)
func RegisterSchemaAPIHandler ¶
func RegisterSchemaAPIHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterSchemaAPIHandler registers the http handlers for service SchemaAPI to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterSchemaAPIHandlerClient ¶
func RegisterSchemaAPIHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SchemaAPIClient) error
RegisterSchemaAPIHandlerClient registers the http handlers for service SchemaAPI to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "SchemaAPIClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "SchemaAPIClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "SchemaAPIClient" to call the correct interceptors.
func RegisterSchemaAPIHandlerFromEndpoint ¶
func RegisterSchemaAPIHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterSchemaAPIHandlerFromEndpoint is same as RegisterSchemaAPIHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterSchemaAPIHandlerServer ¶
func RegisterSchemaAPIHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SchemaAPIServer) error
RegisterSchemaAPIHandlerServer registers the http handlers for service SchemaAPI to "mux". UnaryRPC :call SchemaAPIServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterSchemaAPIHandlerFromEndpoint instead.
func RegisterSchemaAPIServer ¶
func RegisterSchemaAPIServer(s grpc.ServiceRegistrar, srv SchemaAPIServer)
Types ¶
type ActionDefinition ¶
type ActionDefinition struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Child *Child `protobuf:"bytes,2,opt,name=child,proto3" json:"child,omitempty"` // contains filtered or unexported fields }
ActionDefinition
func (*ActionDefinition) Descriptor
deprecated
func (*ActionDefinition) Descriptor() ([]byte, []int)
Deprecated: Use ActionDefinition.ProtoReflect.Descriptor instead.
func (*ActionDefinition) GetChild ¶
func (x *ActionDefinition) GetChild() *Child
func (*ActionDefinition) GetName ¶
func (x *ActionDefinition) GetName() string
func (*ActionDefinition) ProtoMessage ¶
func (*ActionDefinition) ProtoMessage()
func (*ActionDefinition) ProtoReflect ¶
func (x *ActionDefinition) ProtoReflect() protoreflect.Message
func (*ActionDefinition) Reset ¶
func (x *ActionDefinition) Reset()
func (*ActionDefinition) String ¶
func (x *ActionDefinition) String() string
func (*ActionDefinition) Validate ¶
func (m *ActionDefinition) Validate() error
Validate checks the field values on ActionDefinition 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 (*ActionDefinition) ValidateAll ¶
func (m *ActionDefinition) ValidateAll() error
ValidateAll checks the field values on ActionDefinition 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 ActionDefinitionMultiError, or nil if none found.
type ActionDefinitionMultiError ¶
type ActionDefinitionMultiError []error
ActionDefinitionMultiError is an error wrapping multiple validation errors returned by ActionDefinition.ValidateAll() if the designated constraints aren't met.
func (ActionDefinitionMultiError) AllErrors ¶
func (m ActionDefinitionMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ActionDefinitionMultiError) Error ¶
func (m ActionDefinitionMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ActionDefinitionValidationError ¶
type ActionDefinitionValidationError struct {
// contains filtered or unexported fields
}
ActionDefinitionValidationError is the validation error returned by ActionDefinition.Validate if the designated constraints aren't met.
func (ActionDefinitionValidationError) Cause ¶
func (e ActionDefinitionValidationError) Cause() error
Cause function returns cause value.
func (ActionDefinitionValidationError) Error ¶
func (e ActionDefinitionValidationError) Error() string
Error satisfies the builtin error interface
func (ActionDefinitionValidationError) ErrorName ¶
func (e ActionDefinitionValidationError) ErrorName() string
ErrorName returns error name.
func (ActionDefinitionValidationError) Field ¶
func (e ActionDefinitionValidationError) Field() string
Field function returns field value.
func (ActionDefinitionValidationError) Key ¶
func (e ActionDefinitionValidationError) Key() bool
Key function returns key value.
func (ActionDefinitionValidationError) Reason ¶
func (e ActionDefinitionValidationError) Reason() string
Reason function returns reason value.
type CheckRequest ¶
type CheckRequest struct { SchemaVersion string `protobuf:"bytes,1,opt,name=schema_version,proto3" json:"schema_version,omitempty"` Entity *Entity `protobuf:"bytes,2,opt,name=entity,proto3" json:"entity,omitempty"` Action string `protobuf:"bytes,3,opt,name=action,proto3" json:"action,omitempty"` Subject *Subject `protobuf:"bytes,4,opt,name=subject,proto3" json:"subject,omitempty"` Depth *wrapperspb.Int32Value `protobuf:"bytes,5,opt,name=depth,proto3" json:"depth,omitempty"` // contains filtered or unexported fields }
CheckRequest
func (*CheckRequest) Descriptor
deprecated
func (*CheckRequest) Descriptor() ([]byte, []int)
Deprecated: Use CheckRequest.ProtoReflect.Descriptor instead.
func (*CheckRequest) GetAction ¶
func (x *CheckRequest) GetAction() string
func (*CheckRequest) GetDepth ¶
func (x *CheckRequest) GetDepth() *wrapperspb.Int32Value
func (*CheckRequest) GetEntity ¶
func (x *CheckRequest) GetEntity() *Entity
func (*CheckRequest) GetSchemaVersion ¶
func (x *CheckRequest) GetSchemaVersion() string
func (*CheckRequest) GetSubject ¶
func (x *CheckRequest) GetSubject() *Subject
func (*CheckRequest) ProtoMessage ¶
func (*CheckRequest) ProtoMessage()
func (*CheckRequest) ProtoReflect ¶
func (x *CheckRequest) ProtoReflect() protoreflect.Message
func (*CheckRequest) Reset ¶
func (x *CheckRequest) Reset()
func (*CheckRequest) String ¶
func (x *CheckRequest) String() string
func (*CheckRequest) Validate ¶
func (m *CheckRequest) Validate() error
Validate checks the field values on CheckRequest 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 (*CheckRequest) ValidateAll ¶
func (m *CheckRequest) ValidateAll() error
ValidateAll checks the field values on CheckRequest 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 CheckRequestMultiError, or nil if none found.
type CheckRequestMultiError ¶
type CheckRequestMultiError []error
CheckRequestMultiError is an error wrapping multiple validation errors returned by CheckRequest.ValidateAll() if the designated constraints aren't met.
func (CheckRequestMultiError) AllErrors ¶
func (m CheckRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CheckRequestMultiError) Error ¶
func (m CheckRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CheckRequestValidationError ¶
type CheckRequestValidationError struct {
// contains filtered or unexported fields
}
CheckRequestValidationError is the validation error returned by CheckRequest.Validate if the designated constraints aren't met.
func (CheckRequestValidationError) Cause ¶
func (e CheckRequestValidationError) Cause() error
Cause function returns cause value.
func (CheckRequestValidationError) Error ¶
func (e CheckRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CheckRequestValidationError) ErrorName ¶
func (e CheckRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CheckRequestValidationError) Field ¶
func (e CheckRequestValidationError) Field() string
Field function returns field value.
func (CheckRequestValidationError) Key ¶
func (e CheckRequestValidationError) Key() bool
Key function returns key value.
func (CheckRequestValidationError) Reason ¶
func (e CheckRequestValidationError) Reason() string
Reason function returns reason value.
type CheckResponse ¶
type CheckResponse struct { Can bool `protobuf:"varint,1,opt,name=can,proto3" json:"can,omitempty"` RemainingDepth int32 `protobuf:"varint,3,opt,name=remaining_depth,proto3" json:"remaining_depth,omitempty"` // contains filtered or unexported fields }
CheckResponse
func (*CheckResponse) Descriptor
deprecated
func (*CheckResponse) Descriptor() ([]byte, []int)
Deprecated: Use CheckResponse.ProtoReflect.Descriptor instead.
func (*CheckResponse) GetCan ¶
func (x *CheckResponse) GetCan() bool
func (*CheckResponse) GetRemainingDepth ¶
func (x *CheckResponse) GetRemainingDepth() int32
func (*CheckResponse) ProtoMessage ¶
func (*CheckResponse) ProtoMessage()
func (*CheckResponse) ProtoReflect ¶
func (x *CheckResponse) ProtoReflect() protoreflect.Message
func (*CheckResponse) Reset ¶
func (x *CheckResponse) Reset()
func (*CheckResponse) String ¶
func (x *CheckResponse) String() string
func (*CheckResponse) Validate ¶
func (m *CheckResponse) Validate() error
Validate checks the field values on CheckResponse 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 (*CheckResponse) ValidateAll ¶
func (m *CheckResponse) ValidateAll() error
ValidateAll checks the field values on CheckResponse 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 CheckResponseMultiError, or nil if none found.
type CheckResponseMultiError ¶
type CheckResponseMultiError []error
CheckResponseMultiError is an error wrapping multiple validation errors returned by CheckResponse.ValidateAll() if the designated constraints aren't met.
func (CheckResponseMultiError) AllErrors ¶
func (m CheckResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CheckResponseMultiError) Error ¶
func (m CheckResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CheckResponseValidationError ¶
type CheckResponseValidationError struct {
// contains filtered or unexported fields
}
CheckResponseValidationError is the validation error returned by CheckResponse.Validate if the designated constraints aren't met.
func (CheckResponseValidationError) Cause ¶
func (e CheckResponseValidationError) Cause() error
Cause function returns cause value.
func (CheckResponseValidationError) Error ¶
func (e CheckResponseValidationError) Error() string
Error satisfies the builtin error interface
func (CheckResponseValidationError) ErrorName ¶
func (e CheckResponseValidationError) ErrorName() string
ErrorName returns error name.
func (CheckResponseValidationError) Field ¶
func (e CheckResponseValidationError) Field() string
Field function returns field value.
func (CheckResponseValidationError) Key ¶
func (e CheckResponseValidationError) Key() bool
Key function returns key value.
func (CheckResponseValidationError) Reason ¶
func (e CheckResponseValidationError) Reason() string
Reason function returns reason value.
type Child ¶
type Child struct { // Types that are assignable to Type: // *Child_Leaf // *Child_Rewrite Type isChild_Type `protobuf_oneof:"type"` // contains filtered or unexported fields }
Child
func (*Child) Descriptor
deprecated
func (*Child) GetRewrite ¶
func (*Child) ProtoMessage ¶
func (*Child) ProtoMessage()
func (*Child) ProtoReflect ¶
func (x *Child) ProtoReflect() protoreflect.Message
func (*Child) Validate ¶
Validate checks the field values on Child 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 (*Child) ValidateAll ¶
ValidateAll checks the field values on Child 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 ChildMultiError, or nil if none found.
type ChildMultiError ¶
type ChildMultiError []error
ChildMultiError is an error wrapping multiple validation errors returned by Child.ValidateAll() if the designated constraints aren't met.
func (ChildMultiError) AllErrors ¶
func (m ChildMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ChildMultiError) Error ¶
func (m ChildMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ChildValidationError ¶
type ChildValidationError struct {
// contains filtered or unexported fields
}
ChildValidationError is the validation error returned by Child.Validate if the designated constraints aren't met.
func (ChildValidationError) Cause ¶
func (e ChildValidationError) Cause() error
Cause function returns cause value.
func (ChildValidationError) Error ¶
func (e ChildValidationError) Error() string
Error satisfies the builtin error interface
func (ChildValidationError) ErrorName ¶
func (e ChildValidationError) ErrorName() string
ErrorName returns error name.
func (ChildValidationError) Field ¶
func (e ChildValidationError) Field() string
Field function returns field value.
func (ChildValidationError) Key ¶
func (e ChildValidationError) Key() bool
Key function returns key value.
func (ChildValidationError) Reason ¶
func (e ChildValidationError) Reason() string
Reason function returns reason value.
type Child_Leaf ¶
type Child_Leaf struct {
Leaf *Leaf `protobuf:"bytes,1,opt,name=leaf,proto3,oneof"`
}
type Child_Rewrite ¶
type Child_Rewrite struct {
Rewrite *Rewrite `protobuf:"bytes,2,opt,name=rewrite,proto3,oneof"`
}
type ComputedUserSet ¶
type ComputedUserSet struct { Relation string `protobuf:"bytes,1,opt,name=relation,proto3" json:"relation,omitempty"` // contains filtered or unexported fields }
ComputedUserSet
func (*ComputedUserSet) Descriptor
deprecated
func (*ComputedUserSet) Descriptor() ([]byte, []int)
Deprecated: Use ComputedUserSet.ProtoReflect.Descriptor instead.
func (*ComputedUserSet) GetRelation ¶
func (x *ComputedUserSet) GetRelation() string
func (*ComputedUserSet) ProtoMessage ¶
func (*ComputedUserSet) ProtoMessage()
func (*ComputedUserSet) ProtoReflect ¶
func (x *ComputedUserSet) ProtoReflect() protoreflect.Message
func (*ComputedUserSet) Reset ¶
func (x *ComputedUserSet) Reset()
func (*ComputedUserSet) String ¶
func (x *ComputedUserSet) String() string
func (*ComputedUserSet) Validate ¶
func (m *ComputedUserSet) Validate() error
Validate checks the field values on ComputedUserSet 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 (*ComputedUserSet) ValidateAll ¶
func (m *ComputedUserSet) ValidateAll() error
ValidateAll checks the field values on ComputedUserSet 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 ComputedUserSetMultiError, or nil if none found.
type ComputedUserSetMultiError ¶
type ComputedUserSetMultiError []error
ComputedUserSetMultiError is an error wrapping multiple validation errors returned by ComputedUserSet.ValidateAll() if the designated constraints aren't met.
func (ComputedUserSetMultiError) AllErrors ¶
func (m ComputedUserSetMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ComputedUserSetMultiError) Error ¶
func (m ComputedUserSetMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ComputedUserSetValidationError ¶
type ComputedUserSetValidationError struct {
// contains filtered or unexported fields
}
ComputedUserSetValidationError is the validation error returned by ComputedUserSet.Validate if the designated constraints aren't met.
func (ComputedUserSetValidationError) Cause ¶
func (e ComputedUserSetValidationError) Cause() error
Cause function returns cause value.
func (ComputedUserSetValidationError) Error ¶
func (e ComputedUserSetValidationError) Error() string
Error satisfies the builtin error interface
func (ComputedUserSetValidationError) ErrorName ¶
func (e ComputedUserSetValidationError) ErrorName() string
ErrorName returns error name.
func (ComputedUserSetValidationError) Field ¶
func (e ComputedUserSetValidationError) Field() string
Field function returns field value.
func (ComputedUserSetValidationError) Key ¶
func (e ComputedUserSetValidationError) Key() bool
Key function returns key value.
func (ComputedUserSetValidationError) Reason ¶
func (e ComputedUserSetValidationError) Reason() string
Reason function returns reason value.
type Entity ¶
type Entity struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
Entity
func (*Entity) Descriptor
deprecated
func (*Entity) ProtoMessage ¶
func (*Entity) ProtoMessage()
func (*Entity) ProtoReflect ¶
func (x *Entity) ProtoReflect() protoreflect.Message
func (*Entity) Validate ¶
Validate checks the field values on Entity 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 (*Entity) ValidateAll ¶
ValidateAll checks the field values on Entity 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 EntityMultiError, or nil if none found.
type EntityAndRelation ¶
type EntityAndRelation struct { Entity *Entity `protobuf:"bytes,1,opt,name=entity,proto3" json:"entity,omitempty"` Relation string `protobuf:"bytes,2,opt,name=relation,proto3" json:"relation,omitempty"` // contains filtered or unexported fields }
func (*EntityAndRelation) Descriptor
deprecated
func (*EntityAndRelation) Descriptor() ([]byte, []int)
Deprecated: Use EntityAndRelation.ProtoReflect.Descriptor instead.
func (*EntityAndRelation) GetEntity ¶
func (x *EntityAndRelation) GetEntity() *Entity
func (*EntityAndRelation) GetRelation ¶
func (x *EntityAndRelation) GetRelation() string
func (*EntityAndRelation) ProtoMessage ¶
func (*EntityAndRelation) ProtoMessage()
func (*EntityAndRelation) ProtoReflect ¶
func (x *EntityAndRelation) ProtoReflect() protoreflect.Message
func (*EntityAndRelation) Reset ¶
func (x *EntityAndRelation) Reset()
func (*EntityAndRelation) String ¶
func (x *EntityAndRelation) String() string
func (*EntityAndRelation) Validate ¶
func (m *EntityAndRelation) Validate() error
Validate checks the field values on EntityAndRelation 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 (*EntityAndRelation) ValidateAll ¶
func (m *EntityAndRelation) ValidateAll() error
ValidateAll checks the field values on EntityAndRelation 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 EntityAndRelationMultiError, or nil if none found.
type EntityAndRelationMultiError ¶
type EntityAndRelationMultiError []error
EntityAndRelationMultiError is an error wrapping multiple validation errors returned by EntityAndRelation.ValidateAll() if the designated constraints aren't met.
func (EntityAndRelationMultiError) AllErrors ¶
func (m EntityAndRelationMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (EntityAndRelationMultiError) Error ¶
func (m EntityAndRelationMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type EntityAndRelationValidationError ¶
type EntityAndRelationValidationError struct {
// contains filtered or unexported fields
}
EntityAndRelationValidationError is the validation error returned by EntityAndRelation.Validate if the designated constraints aren't met.
func (EntityAndRelationValidationError) Cause ¶
func (e EntityAndRelationValidationError) Cause() error
Cause function returns cause value.
func (EntityAndRelationValidationError) Error ¶
func (e EntityAndRelationValidationError) Error() string
Error satisfies the builtin error interface
func (EntityAndRelationValidationError) ErrorName ¶
func (e EntityAndRelationValidationError) ErrorName() string
ErrorName returns error name.
func (EntityAndRelationValidationError) Field ¶
func (e EntityAndRelationValidationError) Field() string
Field function returns field value.
func (EntityAndRelationValidationError) Key ¶
func (e EntityAndRelationValidationError) Key() bool
Key function returns key value.
func (EntityAndRelationValidationError) Reason ¶
func (e EntityAndRelationValidationError) Reason() string
Reason function returns reason value.
type EntityDefinition ¶
type EntityDefinition struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // ["relation_name"] => RelationDefinition Relations map[string]*RelationDefinition `` /* 159-byte string literal not displayed */ // ["action_name"] => ActionDefinition Actions map[string]*ActionDefinition `` /* 155-byte string literal not displayed */ Option map[string]*anypb.Any `` /* 153-byte string literal not displayed */ // contains filtered or unexported fields }
EntityDefinition
func (*EntityDefinition) Descriptor
deprecated
func (*EntityDefinition) Descriptor() ([]byte, []int)
Deprecated: Use EntityDefinition.ProtoReflect.Descriptor instead.
func (*EntityDefinition) GetActions ¶
func (x *EntityDefinition) GetActions() map[string]*ActionDefinition
func (*EntityDefinition) GetName ¶
func (x *EntityDefinition) GetName() string
func (*EntityDefinition) GetRelations ¶
func (x *EntityDefinition) GetRelations() map[string]*RelationDefinition
func (*EntityDefinition) ProtoMessage ¶
func (*EntityDefinition) ProtoMessage()
func (*EntityDefinition) ProtoReflect ¶
func (x *EntityDefinition) ProtoReflect() protoreflect.Message
func (*EntityDefinition) Reset ¶
func (x *EntityDefinition) Reset()
func (*EntityDefinition) String ¶
func (x *EntityDefinition) String() string
func (*EntityDefinition) Validate ¶
func (m *EntityDefinition) Validate() error
Validate checks the field values on EntityDefinition 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 (*EntityDefinition) ValidateAll ¶
func (m *EntityDefinition) ValidateAll() error
ValidateAll checks the field values on EntityDefinition 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 EntityDefinitionMultiError, or nil if none found.
type EntityDefinitionMultiError ¶
type EntityDefinitionMultiError []error
EntityDefinitionMultiError is an error wrapping multiple validation errors returned by EntityDefinition.ValidateAll() if the designated constraints aren't met.
func (EntityDefinitionMultiError) AllErrors ¶
func (m EntityDefinitionMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (EntityDefinitionMultiError) Error ¶
func (m EntityDefinitionMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type EntityDefinitionValidationError ¶
type EntityDefinitionValidationError struct {
// contains filtered or unexported fields
}
EntityDefinitionValidationError is the validation error returned by EntityDefinition.Validate if the designated constraints aren't met.
func (EntityDefinitionValidationError) Cause ¶
func (e EntityDefinitionValidationError) Cause() error
Cause function returns cause value.
func (EntityDefinitionValidationError) Error ¶
func (e EntityDefinitionValidationError) Error() string
Error satisfies the builtin error interface
func (EntityDefinitionValidationError) ErrorName ¶
func (e EntityDefinitionValidationError) ErrorName() string
ErrorName returns error name.
func (EntityDefinitionValidationError) Field ¶
func (e EntityDefinitionValidationError) Field() string
Field function returns field value.
func (EntityDefinitionValidationError) Key ¶
func (e EntityDefinitionValidationError) Key() bool
Key function returns key value.
func (EntityDefinitionValidationError) Reason ¶
func (e EntityDefinitionValidationError) Reason() string
Reason function returns reason value.
type EntityFilter ¶
type EntityFilter struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*EntityFilter) Descriptor
deprecated
func (*EntityFilter) Descriptor() ([]byte, []int)
Deprecated: Use EntityFilter.ProtoReflect.Descriptor instead.
func (*EntityFilter) GetId ¶
func (x *EntityFilter) GetId() string
func (*EntityFilter) GetType ¶
func (x *EntityFilter) GetType() string
func (*EntityFilter) ProtoMessage ¶
func (*EntityFilter) ProtoMessage()
func (*EntityFilter) ProtoReflect ¶
func (x *EntityFilter) ProtoReflect() protoreflect.Message
func (*EntityFilter) Reset ¶
func (x *EntityFilter) Reset()
func (*EntityFilter) String ¶
func (x *EntityFilter) String() string
func (*EntityFilter) Validate ¶
func (m *EntityFilter) Validate() error
Validate checks the field values on EntityFilter 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 (*EntityFilter) ValidateAll ¶
func (m *EntityFilter) ValidateAll() error
ValidateAll checks the field values on EntityFilter 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 EntityFilterMultiError, or nil if none found.
type EntityFilterMultiError ¶
type EntityFilterMultiError []error
EntityFilterMultiError is an error wrapping multiple validation errors returned by EntityFilter.ValidateAll() if the designated constraints aren't met.
func (EntityFilterMultiError) AllErrors ¶
func (m EntityFilterMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (EntityFilterMultiError) Error ¶
func (m EntityFilterMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type EntityFilterValidationError ¶
type EntityFilterValidationError struct {
// contains filtered or unexported fields
}
EntityFilterValidationError is the validation error returned by EntityFilter.Validate if the designated constraints aren't met.
func (EntityFilterValidationError) Cause ¶
func (e EntityFilterValidationError) Cause() error
Cause function returns cause value.
func (EntityFilterValidationError) Error ¶
func (e EntityFilterValidationError) Error() string
Error satisfies the builtin error interface
func (EntityFilterValidationError) ErrorName ¶
func (e EntityFilterValidationError) ErrorName() string
ErrorName returns error name.
func (EntityFilterValidationError) Field ¶
func (e EntityFilterValidationError) Field() string
Field function returns field value.
func (EntityFilterValidationError) Key ¶
func (e EntityFilterValidationError) Key() bool
Key function returns key value.
func (EntityFilterValidationError) Reason ¶
func (e EntityFilterValidationError) Reason() string
Reason function returns reason value.
type EntityMultiError ¶
type EntityMultiError []error
EntityMultiError is an error wrapping multiple validation errors returned by Entity.ValidateAll() if the designated constraints aren't met.
func (EntityMultiError) AllErrors ¶
func (m EntityMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (EntityMultiError) Error ¶
func (m EntityMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type EntityValidationError ¶
type EntityValidationError struct {
// contains filtered or unexported fields
}
EntityValidationError is the validation error returned by Entity.Validate if the designated constraints aren't met.
func (EntityValidationError) Cause ¶
func (e EntityValidationError) Cause() error
Cause function returns cause value.
func (EntityValidationError) Error ¶
func (e EntityValidationError) Error() string
Error satisfies the builtin error interface
func (EntityValidationError) ErrorName ¶
func (e EntityValidationError) ErrorName() string
ErrorName returns error name.
func (EntityValidationError) Field ¶
func (e EntityValidationError) Field() string
Field function returns field value.
func (EntityValidationError) Key ¶
func (e EntityValidationError) Key() bool
Key function returns key value.
func (EntityValidationError) Reason ¶
func (e EntityValidationError) Reason() string
Reason function returns reason value.
type ErrorCode ¶
type ErrorCode int32
const ( ErrorCode_no_error ErrorCode = 0 // authn ErrorCode_missing_bearer_token ErrorCode = 1001 ErrorCode_unauthenticated ErrorCode = 1002 // validation ErrorCode_validation_error ErrorCode = 2000 ErrorCode_undefined_child_type ErrorCode = 2002 ErrorCode_undefined_child_kind ErrorCode = 2003 ErrorCode_undefined_relation_reference ErrorCode = 2006 ErrorCode_not_supported_relation_walk ErrorCode = 2007 ErrorCode_entity_and_subject_cannot_be_equal ErrorCode = 2008 ErrorCode_depth_not_enough ErrorCode = 2009 ErrorCode_relation_reference_not_found_in_entity_references ErrorCode = 2010 ErrorCode_relation_reference_must_have_one_entity_reference ErrorCode = 2011 ErrorCode_duplicated_entity_reference ErrorCode = 2012 ErrorCode_duplicated_relation_reference ErrorCode = 2013 ErrorCode_duplicated_action_reference ErrorCode = 2014 ErrorCode_schema_parse ErrorCode = 2015 ErrorCode_schema_compile ErrorCode = 2016 ErrorCode_subject_relation_must_be_empty ErrorCode = 2017 ErrorCode_subject_relation_cannot_be_empty ErrorCode = 2018 ErrorCode_schema_must_have_user_entity_definition ErrorCode = 2019 // not found ErrorCode_not_found_error ErrorCode = 4000 ErrorCode_entity_type_can_not_found ErrorCode = 4001 ErrorCode_action_can_not_found ErrorCode = 4002 ErrorCode_schema_not_found ErrorCode = 4003 ErrorCode_subject_type_not_found ErrorCode = 4004 ErrorCode_entity_definition_not_found ErrorCode = 4005 ErrorCode_action_definition_not_found ErrorCode = 4006 ErrorCode_relation_definition_not_found ErrorCode = 4007 ErrorCode_record_not_found ErrorCode = 4008 // internal ErrorCode_internal_error ErrorCode = 5000 ErrorCode_cancelled ErrorCode = 5001 ErrorCode_sql_builder_error ErrorCode = 5002 ErrorCode_circuit_breaker_error ErrorCode = 5003 ErrorCode_unique_constraint ErrorCode = 5004 ErrorCode_execution ErrorCode = 5005 ErrorCode_scan ErrorCode = 5006 ErrorCode_migration ErrorCode = 5007 ErrorCode_type_conversation_error ErrorCode = 5008 )
func (ErrorCode) Descriptor ¶
func (ErrorCode) Descriptor() protoreflect.EnumDescriptor
func (ErrorCode) EnumDescriptor
deprecated
func (ErrorCode) Number ¶
func (x ErrorCode) Number() protoreflect.EnumNumber
func (ErrorCode) Type ¶
func (ErrorCode) Type() protoreflect.EnumType
type ErrorResponse ¶
type ErrorResponse struct { Code ErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=ErrorCode" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
ErrorResponse
func (*ErrorResponse) Descriptor
deprecated
func (*ErrorResponse) Descriptor() ([]byte, []int)
Deprecated: Use ErrorResponse.ProtoReflect.Descriptor instead.
func (*ErrorResponse) GetCode ¶
func (x *ErrorResponse) GetCode() ErrorCode
func (*ErrorResponse) GetMessage ¶
func (x *ErrorResponse) GetMessage() string
func (*ErrorResponse) ProtoMessage ¶
func (*ErrorResponse) ProtoMessage()
func (*ErrorResponse) ProtoReflect ¶
func (x *ErrorResponse) ProtoReflect() protoreflect.Message
func (*ErrorResponse) Reset ¶
func (x *ErrorResponse) Reset()
func (*ErrorResponse) String ¶
func (x *ErrorResponse) String() string
func (*ErrorResponse) Validate ¶
func (m *ErrorResponse) Validate() error
Validate checks the field values on ErrorResponse 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 (*ErrorResponse) ValidateAll ¶
func (m *ErrorResponse) ValidateAll() error
ValidateAll checks the field values on ErrorResponse 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 ErrorResponseMultiError, or nil if none found.
type ErrorResponseMultiError ¶
type ErrorResponseMultiError []error
ErrorResponseMultiError is an error wrapping multiple validation errors returned by ErrorResponse.ValidateAll() if the designated constraints aren't met.
func (ErrorResponseMultiError) AllErrors ¶
func (m ErrorResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ErrorResponseMultiError) Error ¶
func (m ErrorResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ErrorResponseValidationError ¶
type ErrorResponseValidationError struct {
// contains filtered or unexported fields
}
ErrorResponseValidationError is the validation error returned by ErrorResponse.Validate if the designated constraints aren't met.
func (ErrorResponseValidationError) Cause ¶
func (e ErrorResponseValidationError) Cause() error
Cause function returns cause value.
func (ErrorResponseValidationError) Error ¶
func (e ErrorResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ErrorResponseValidationError) ErrorName ¶
func (e ErrorResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ErrorResponseValidationError) Field ¶
func (e ErrorResponseValidationError) Field() string
Field function returns field value.
func (ErrorResponseValidationError) Key ¶
func (e ErrorResponseValidationError) Key() bool
Key function returns key value.
func (ErrorResponseValidationError) Reason ¶
func (e ErrorResponseValidationError) Reason() string
Reason function returns reason value.
type Expand ¶
type Expand struct { Target *EntityAndRelation `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"` // Types that are assignable to Node: // *Expand_Expand // *Expand_Leaf Node isExpand_Node `protobuf_oneof:"node"` // contains filtered or unexported fields }
Expand
func (*Expand) Descriptor
deprecated
func (*Expand) GetExpand ¶
func (x *Expand) GetExpand() *ExpandTreeNode
func (*Expand) GetTarget ¶ added in v0.4.1
func (x *Expand) GetTarget() *EntityAndRelation
func (*Expand) ProtoMessage ¶
func (*Expand) ProtoMessage()
func (*Expand) ProtoReflect ¶
func (x *Expand) ProtoReflect() protoreflect.Message
func (*Expand) Validate ¶
Validate checks the field values on Expand 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 (*Expand) ValidateAll ¶
ValidateAll checks the field values on Expand 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 ExpandMultiError, or nil if none found.
type ExpandMultiError ¶
type ExpandMultiError []error
ExpandMultiError is an error wrapping multiple validation errors returned by Expand.ValidateAll() if the designated constraints aren't met.
func (ExpandMultiError) AllErrors ¶
func (m ExpandMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ExpandMultiError) Error ¶
func (m ExpandMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ExpandRequest ¶
type ExpandRequest struct { SchemaVersion string `protobuf:"bytes,1,opt,name=schema_version,proto3" json:"schema_version,omitempty"` Entity *Entity `protobuf:"bytes,2,opt,name=entity,proto3" json:"entity,omitempty"` Action string `protobuf:"bytes,3,opt,name=action,proto3" json:"action,omitempty"` // contains filtered or unexported fields }
ExpandRequest
func (*ExpandRequest) Descriptor
deprecated
func (*ExpandRequest) Descriptor() ([]byte, []int)
Deprecated: Use ExpandRequest.ProtoReflect.Descriptor instead.
func (*ExpandRequest) GetAction ¶
func (x *ExpandRequest) GetAction() string
func (*ExpandRequest) GetEntity ¶
func (x *ExpandRequest) GetEntity() *Entity
func (*ExpandRequest) GetSchemaVersion ¶
func (x *ExpandRequest) GetSchemaVersion() string
func (*ExpandRequest) ProtoMessage ¶
func (*ExpandRequest) ProtoMessage()
func (*ExpandRequest) ProtoReflect ¶
func (x *ExpandRequest) ProtoReflect() protoreflect.Message
func (*ExpandRequest) Reset ¶
func (x *ExpandRequest) Reset()
func (*ExpandRequest) String ¶
func (x *ExpandRequest) String() string
func (*ExpandRequest) Validate ¶
func (m *ExpandRequest) Validate() error
Validate checks the field values on ExpandRequest 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 (*ExpandRequest) ValidateAll ¶
func (m *ExpandRequest) ValidateAll() error
ValidateAll checks the field values on ExpandRequest 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 ExpandRequestMultiError, or nil if none found.
type ExpandRequestMultiError ¶
type ExpandRequestMultiError []error
ExpandRequestMultiError is an error wrapping multiple validation errors returned by ExpandRequest.ValidateAll() if the designated constraints aren't met.
func (ExpandRequestMultiError) AllErrors ¶
func (m ExpandRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ExpandRequestMultiError) Error ¶
func (m ExpandRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ExpandRequestValidationError ¶
type ExpandRequestValidationError struct {
// contains filtered or unexported fields
}
ExpandRequestValidationError is the validation error returned by ExpandRequest.Validate if the designated constraints aren't met.
func (ExpandRequestValidationError) Cause ¶
func (e ExpandRequestValidationError) Cause() error
Cause function returns cause value.
func (ExpandRequestValidationError) Error ¶
func (e ExpandRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ExpandRequestValidationError) ErrorName ¶
func (e ExpandRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ExpandRequestValidationError) Field ¶
func (e ExpandRequestValidationError) Field() string
Field function returns field value.
func (ExpandRequestValidationError) Key ¶
func (e ExpandRequestValidationError) Key() bool
Key function returns key value.
func (ExpandRequestValidationError) Reason ¶
func (e ExpandRequestValidationError) Reason() string
Reason function returns reason value.
type ExpandResponse ¶
type ExpandResponse struct { Tree *Expand `protobuf:"bytes,1,opt,name=tree,proto3" json:"tree,omitempty"` // contains filtered or unexported fields }
ExpandResponse
func (*ExpandResponse) Descriptor
deprecated
func (*ExpandResponse) Descriptor() ([]byte, []int)
Deprecated: Use ExpandResponse.ProtoReflect.Descriptor instead.
func (*ExpandResponse) GetTree ¶
func (x *ExpandResponse) GetTree() *Expand
func (*ExpandResponse) ProtoMessage ¶
func (*ExpandResponse) ProtoMessage()
func (*ExpandResponse) ProtoReflect ¶
func (x *ExpandResponse) ProtoReflect() protoreflect.Message
func (*ExpandResponse) Reset ¶
func (x *ExpandResponse) Reset()
func (*ExpandResponse) String ¶
func (x *ExpandResponse) String() string
func (*ExpandResponse) Validate ¶
func (m *ExpandResponse) Validate() error
Validate checks the field values on ExpandResponse 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 (*ExpandResponse) ValidateAll ¶
func (m *ExpandResponse) ValidateAll() error
ValidateAll checks the field values on ExpandResponse 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 ExpandResponseMultiError, or nil if none found.
type ExpandResponseMultiError ¶
type ExpandResponseMultiError []error
ExpandResponseMultiError is an error wrapping multiple validation errors returned by ExpandResponse.ValidateAll() if the designated constraints aren't met.
func (ExpandResponseMultiError) AllErrors ¶
func (m ExpandResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ExpandResponseMultiError) Error ¶
func (m ExpandResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ExpandResponseValidationError ¶
type ExpandResponseValidationError struct {
// contains filtered or unexported fields
}
ExpandResponseValidationError is the validation error returned by ExpandResponse.Validate if the designated constraints aren't met.
func (ExpandResponseValidationError) Cause ¶
func (e ExpandResponseValidationError) Cause() error
Cause function returns cause value.
func (ExpandResponseValidationError) Error ¶
func (e ExpandResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ExpandResponseValidationError) ErrorName ¶
func (e ExpandResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ExpandResponseValidationError) Field ¶
func (e ExpandResponseValidationError) Field() string
Field function returns field value.
func (ExpandResponseValidationError) Key ¶
func (e ExpandResponseValidationError) Key() bool
Key function returns key value.
func (ExpandResponseValidationError) Reason ¶
func (e ExpandResponseValidationError) Reason() string
Reason function returns reason value.
type ExpandTreeNode ¶
type ExpandTreeNode struct { Operation ExpandTreeNode_Operation `protobuf:"varint,1,opt,name=operation,proto3,enum=ExpandTreeNode_Operation" json:"operation,omitempty"` Children []*Expand `protobuf:"bytes,2,rep,name=children,proto3" json:"children,omitempty"` // contains filtered or unexported fields }
ExpandTreeNode
func (*ExpandTreeNode) Descriptor
deprecated
func (*ExpandTreeNode) Descriptor() ([]byte, []int)
Deprecated: Use ExpandTreeNode.ProtoReflect.Descriptor instead.
func (*ExpandTreeNode) GetChildren ¶
func (x *ExpandTreeNode) GetChildren() []*Expand
func (*ExpandTreeNode) GetOperation ¶
func (x *ExpandTreeNode) GetOperation() ExpandTreeNode_Operation
func (*ExpandTreeNode) ProtoMessage ¶
func (*ExpandTreeNode) ProtoMessage()
func (*ExpandTreeNode) ProtoReflect ¶
func (x *ExpandTreeNode) ProtoReflect() protoreflect.Message
func (*ExpandTreeNode) Reset ¶
func (x *ExpandTreeNode) Reset()
func (*ExpandTreeNode) String ¶
func (x *ExpandTreeNode) String() string
func (*ExpandTreeNode) Validate ¶
func (m *ExpandTreeNode) Validate() error
Validate checks the field values on ExpandTreeNode 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 (*ExpandTreeNode) ValidateAll ¶
func (m *ExpandTreeNode) ValidateAll() error
ValidateAll checks the field values on ExpandTreeNode 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 ExpandTreeNodeMultiError, or nil if none found.
type ExpandTreeNodeMultiError ¶
type ExpandTreeNodeMultiError []error
ExpandTreeNodeMultiError is an error wrapping multiple validation errors returned by ExpandTreeNode.ValidateAll() if the designated constraints aren't met.
func (ExpandTreeNodeMultiError) AllErrors ¶
func (m ExpandTreeNodeMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ExpandTreeNodeMultiError) Error ¶
func (m ExpandTreeNodeMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ExpandTreeNodeValidationError ¶
type ExpandTreeNodeValidationError struct {
// contains filtered or unexported fields
}
ExpandTreeNodeValidationError is the validation error returned by ExpandTreeNode.Validate if the designated constraints aren't met.
func (ExpandTreeNodeValidationError) Cause ¶
func (e ExpandTreeNodeValidationError) Cause() error
Cause function returns cause value.
func (ExpandTreeNodeValidationError) Error ¶
func (e ExpandTreeNodeValidationError) Error() string
Error satisfies the builtin error interface
func (ExpandTreeNodeValidationError) ErrorName ¶
func (e ExpandTreeNodeValidationError) ErrorName() string
ErrorName returns error name.
func (ExpandTreeNodeValidationError) Field ¶
func (e ExpandTreeNodeValidationError) Field() string
Field function returns field value.
func (ExpandTreeNodeValidationError) Key ¶
func (e ExpandTreeNodeValidationError) Key() bool
Key function returns key value.
func (ExpandTreeNodeValidationError) Reason ¶
func (e ExpandTreeNodeValidationError) Reason() string
Reason function returns reason value.
type ExpandTreeNode_Operation ¶
type ExpandTreeNode_Operation int32
Operation
const ( ExpandTreeNode_INVALID ExpandTreeNode_Operation = 0 ExpandTreeNode_UNION ExpandTreeNode_Operation = 1 ExpandTreeNode_INTERSECTION ExpandTreeNode_Operation = 2 ExpandTreeNode_ROOT ExpandTreeNode_Operation = 3 )
func (ExpandTreeNode_Operation) Descriptor ¶
func (ExpandTreeNode_Operation) Descriptor() protoreflect.EnumDescriptor
func (ExpandTreeNode_Operation) Enum ¶
func (x ExpandTreeNode_Operation) Enum() *ExpandTreeNode_Operation
func (ExpandTreeNode_Operation) EnumDescriptor
deprecated
func (ExpandTreeNode_Operation) EnumDescriptor() ([]byte, []int)
Deprecated: Use ExpandTreeNode_Operation.Descriptor instead.
func (ExpandTreeNode_Operation) Number ¶
func (x ExpandTreeNode_Operation) Number() protoreflect.EnumNumber
func (ExpandTreeNode_Operation) String ¶
func (x ExpandTreeNode_Operation) String() string
func (ExpandTreeNode_Operation) Type ¶
func (ExpandTreeNode_Operation) Type() protoreflect.EnumType
type ExpandValidationError ¶
type ExpandValidationError struct {
// contains filtered or unexported fields
}
ExpandValidationError is the validation error returned by Expand.Validate if the designated constraints aren't met.
func (ExpandValidationError) Cause ¶
func (e ExpandValidationError) Cause() error
Cause function returns cause value.
func (ExpandValidationError) Error ¶
func (e ExpandValidationError) Error() string
Error satisfies the builtin error interface
func (ExpandValidationError) ErrorName ¶
func (e ExpandValidationError) ErrorName() string
ErrorName returns error name.
func (ExpandValidationError) Field ¶
func (e ExpandValidationError) Field() string
Field function returns field value.
func (ExpandValidationError) Key ¶
func (e ExpandValidationError) Key() bool
Key function returns key value.
func (ExpandValidationError) Reason ¶
func (e ExpandValidationError) Reason() string
Reason function returns reason value.
type Expand_Expand ¶
type Expand_Expand struct {
Expand *ExpandTreeNode `protobuf:"bytes,2,opt,name=expand,proto3,oneof"`
}
type Expand_Leaf ¶
type Expand_Leaf struct {
Leaf *Subjects `protobuf:"bytes,3,opt,name=leaf,proto3,oneof"`
}
type Leaf ¶
type Leaf struct { Exclusion bool `protobuf:"varint,1,opt,name=exclusion,proto3" json:"exclusion,omitempty"` // Types that are assignable to Type: // *Leaf_ComputedUserSet // *Leaf_TupleToUserSet Type isLeaf_Type `protobuf_oneof:"type"` // contains filtered or unexported fields }
Leaf
func (*Leaf) Descriptor
deprecated
func (*Leaf) GetComputedUserSet ¶
func (x *Leaf) GetComputedUserSet() *ComputedUserSet
func (*Leaf) GetExclusion ¶
func (*Leaf) GetTupleToUserSet ¶
func (x *Leaf) GetTupleToUserSet() *TupleToUserSet
func (*Leaf) ProtoMessage ¶
func (*Leaf) ProtoMessage()
func (*Leaf) ProtoReflect ¶
func (x *Leaf) ProtoReflect() protoreflect.Message
func (*Leaf) Validate ¶
Validate checks the field values on Leaf 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 (*Leaf) ValidateAll ¶
ValidateAll checks the field values on Leaf 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 LeafMultiError, or nil if none found.
type LeafMultiError ¶
type LeafMultiError []error
LeafMultiError is an error wrapping multiple validation errors returned by Leaf.ValidateAll() if the designated constraints aren't met.
func (LeafMultiError) AllErrors ¶
func (m LeafMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LeafMultiError) Error ¶
func (m LeafMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LeafValidationError ¶
type LeafValidationError struct {
// contains filtered or unexported fields
}
LeafValidationError is the validation error returned by Leaf.Validate if the designated constraints aren't met.
func (LeafValidationError) Cause ¶
func (e LeafValidationError) Cause() error
Cause function returns cause value.
func (LeafValidationError) Error ¶
func (e LeafValidationError) Error() string
Error satisfies the builtin error interface
func (LeafValidationError) ErrorName ¶
func (e LeafValidationError) ErrorName() string
ErrorName returns error name.
func (LeafValidationError) Field ¶
func (e LeafValidationError) Field() string
Field function returns field value.
func (LeafValidationError) Key ¶
func (e LeafValidationError) Key() bool
Key function returns key value.
func (LeafValidationError) Reason ¶
func (e LeafValidationError) Reason() string
Reason function returns reason value.
type Leaf_ComputedUserSet ¶
type Leaf_ComputedUserSet struct {
ComputedUserSet *ComputedUserSet `protobuf:"bytes,2,opt,name=computed_user_set,json=computedUserSet,proto3,oneof"`
}
type Leaf_TupleToUserSet ¶
type Leaf_TupleToUserSet struct {
TupleToUserSet *TupleToUserSet `protobuf:"bytes,3,opt,name=tuple_to_user_set,json=tupleToUserSet,proto3,oneof"`
}
type LookupQueryRequest ¶
type LookupQueryRequest struct { SchemaVersion string `protobuf:"bytes,1,opt,name=schema_version,proto3" json:"schema_version,omitempty"` EntityType string `protobuf:"bytes,2,opt,name=entity_type,proto3" json:"entity_type,omitempty"` Action string `protobuf:"bytes,3,opt,name=action,proto3" json:"action,omitempty"` Subject *Subject `protobuf:"bytes,4,opt,name=subject,proto3" json:"subject,omitempty"` // contains filtered or unexported fields }
LookupQueryRequest
func (*LookupQueryRequest) Descriptor
deprecated
func (*LookupQueryRequest) Descriptor() ([]byte, []int)
Deprecated: Use LookupQueryRequest.ProtoReflect.Descriptor instead.
func (*LookupQueryRequest) GetAction ¶
func (x *LookupQueryRequest) GetAction() string
func (*LookupQueryRequest) GetEntityType ¶
func (x *LookupQueryRequest) GetEntityType() string
func (*LookupQueryRequest) GetSchemaVersion ¶
func (x *LookupQueryRequest) GetSchemaVersion() string
func (*LookupQueryRequest) GetSubject ¶
func (x *LookupQueryRequest) GetSubject() *Subject
func (*LookupQueryRequest) ProtoMessage ¶
func (*LookupQueryRequest) ProtoMessage()
func (*LookupQueryRequest) ProtoReflect ¶
func (x *LookupQueryRequest) ProtoReflect() protoreflect.Message
func (*LookupQueryRequest) Reset ¶
func (x *LookupQueryRequest) Reset()
func (*LookupQueryRequest) String ¶
func (x *LookupQueryRequest) String() string
func (*LookupQueryRequest) Validate ¶
func (m *LookupQueryRequest) Validate() error
Validate checks the field values on LookupQueryRequest 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 (*LookupQueryRequest) ValidateAll ¶
func (m *LookupQueryRequest) ValidateAll() error
ValidateAll checks the field values on LookupQueryRequest 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 LookupQueryRequestMultiError, or nil if none found.
type LookupQueryRequestMultiError ¶
type LookupQueryRequestMultiError []error
LookupQueryRequestMultiError is an error wrapping multiple validation errors returned by LookupQueryRequest.ValidateAll() if the designated constraints aren't met.
func (LookupQueryRequestMultiError) AllErrors ¶
func (m LookupQueryRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LookupQueryRequestMultiError) Error ¶
func (m LookupQueryRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LookupQueryRequestValidationError ¶
type LookupQueryRequestValidationError struct {
// contains filtered or unexported fields
}
LookupQueryRequestValidationError is the validation error returned by LookupQueryRequest.Validate if the designated constraints aren't met.
func (LookupQueryRequestValidationError) Cause ¶
func (e LookupQueryRequestValidationError) Cause() error
Cause function returns cause value.
func (LookupQueryRequestValidationError) Error ¶
func (e LookupQueryRequestValidationError) Error() string
Error satisfies the builtin error interface
func (LookupQueryRequestValidationError) ErrorName ¶
func (e LookupQueryRequestValidationError) ErrorName() string
ErrorName returns error name.
func (LookupQueryRequestValidationError) Field ¶
func (e LookupQueryRequestValidationError) Field() string
Field function returns field value.
func (LookupQueryRequestValidationError) Key ¶
func (e LookupQueryRequestValidationError) Key() bool
Key function returns key value.
func (LookupQueryRequestValidationError) Reason ¶
func (e LookupQueryRequestValidationError) Reason() string
Reason function returns reason value.
type LookupQueryResponse ¶
type LookupQueryResponse struct { Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` Args []string `protobuf:"bytes,2,rep,name=args,proto3" json:"args,omitempty"` // contains filtered or unexported fields }
LookupQueryResponse
func (*LookupQueryResponse) Descriptor
deprecated
func (*LookupQueryResponse) Descriptor() ([]byte, []int)
Deprecated: Use LookupQueryResponse.ProtoReflect.Descriptor instead.
func (*LookupQueryResponse) GetArgs ¶
func (x *LookupQueryResponse) GetArgs() []string
func (*LookupQueryResponse) GetQuery ¶
func (x *LookupQueryResponse) GetQuery() string
func (*LookupQueryResponse) ProtoMessage ¶
func (*LookupQueryResponse) ProtoMessage()
func (*LookupQueryResponse) ProtoReflect ¶
func (x *LookupQueryResponse) ProtoReflect() protoreflect.Message
func (*LookupQueryResponse) Reset ¶
func (x *LookupQueryResponse) Reset()
func (*LookupQueryResponse) String ¶
func (x *LookupQueryResponse) String() string
func (*LookupQueryResponse) Validate ¶
func (m *LookupQueryResponse) Validate() error
Validate checks the field values on LookupQueryResponse 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 (*LookupQueryResponse) ValidateAll ¶
func (m *LookupQueryResponse) ValidateAll() error
ValidateAll checks the field values on LookupQueryResponse 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 LookupQueryResponseMultiError, or nil if none found.
type LookupQueryResponseMultiError ¶
type LookupQueryResponseMultiError []error
LookupQueryResponseMultiError is an error wrapping multiple validation errors returned by LookupQueryResponse.ValidateAll() if the designated constraints aren't met.
func (LookupQueryResponseMultiError) AllErrors ¶
func (m LookupQueryResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LookupQueryResponseMultiError) Error ¶
func (m LookupQueryResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LookupQueryResponseValidationError ¶
type LookupQueryResponseValidationError struct {
// contains filtered or unexported fields
}
LookupQueryResponseValidationError is the validation error returned by LookupQueryResponse.Validate if the designated constraints aren't met.
func (LookupQueryResponseValidationError) Cause ¶
func (e LookupQueryResponseValidationError) Cause() error
Cause function returns cause value.
func (LookupQueryResponseValidationError) Error ¶
func (e LookupQueryResponseValidationError) Error() string
Error satisfies the builtin error interface
func (LookupQueryResponseValidationError) ErrorName ¶
func (e LookupQueryResponseValidationError) ErrorName() string
ErrorName returns error name.
func (LookupQueryResponseValidationError) Field ¶
func (e LookupQueryResponseValidationError) Field() string
Field function returns field value.
func (LookupQueryResponseValidationError) Key ¶
func (e LookupQueryResponseValidationError) Key() bool
Key function returns key value.
func (LookupQueryResponseValidationError) Reason ¶
func (e LookupQueryResponseValidationError) Reason() string
Reason function returns reason value.
type PermissionAPIClient ¶
type PermissionAPIClient interface { Check(ctx context.Context, in *CheckRequest, opts ...grpc.CallOption) (*CheckResponse, error) Expand(ctx context.Context, in *ExpandRequest, opts ...grpc.CallOption) (*ExpandResponse, error) LookupQuery(ctx context.Context, in *LookupQueryRequest, opts ...grpc.CallOption) (*LookupQueryResponse, error) }
PermissionAPIClient is the client API for PermissionAPI 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 NewPermissionAPIClient ¶
func NewPermissionAPIClient(cc grpc.ClientConnInterface) PermissionAPIClient
type PermissionAPIServer ¶
type PermissionAPIServer interface { Check(context.Context, *CheckRequest) (*CheckResponse, error) Expand(context.Context, *ExpandRequest) (*ExpandResponse, error) LookupQuery(context.Context, *LookupQueryRequest) (*LookupQueryResponse, error) // contains filtered or unexported methods }
PermissionAPIServer is the server API for PermissionAPI service. All implementations must embed UnimplementedPermissionAPIServer for forward compatibility
type RelationDefinition ¶
type RelationDefinition struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` EntityReference *RelationReference `protobuf:"bytes,2,opt,name=entity_reference,json=entityReference,proto3" json:"entity_reference,omitempty"` // relation reference includes entity reference RelationReferences []*RelationReference `protobuf:"bytes,3,rep,name=relation_references,json=relationReferences,proto3" json:"relation_references,omitempty"` Option map[string]*anypb.Any `` /* 153-byte string literal not displayed */ // contains filtered or unexported fields }
RelationDefinition
func (*RelationDefinition) Descriptor
deprecated
func (*RelationDefinition) Descriptor() ([]byte, []int)
Deprecated: Use RelationDefinition.ProtoReflect.Descriptor instead.
func (*RelationDefinition) GetEntityReference ¶
func (x *RelationDefinition) GetEntityReference() *RelationReference
func (*RelationDefinition) GetName ¶
func (x *RelationDefinition) GetName() string
func (*RelationDefinition) GetOption ¶
func (x *RelationDefinition) GetOption() map[string]*anypb.Any
func (*RelationDefinition) GetRelationReferences ¶
func (x *RelationDefinition) GetRelationReferences() []*RelationReference
func (*RelationDefinition) ProtoMessage ¶
func (*RelationDefinition) ProtoMessage()
func (*RelationDefinition) ProtoReflect ¶
func (x *RelationDefinition) ProtoReflect() protoreflect.Message
func (*RelationDefinition) Reset ¶
func (x *RelationDefinition) Reset()
func (*RelationDefinition) String ¶
func (x *RelationDefinition) String() string
func (*RelationDefinition) Validate ¶
func (m *RelationDefinition) Validate() error
Validate checks the field values on RelationDefinition 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 (*RelationDefinition) ValidateAll ¶
func (m *RelationDefinition) ValidateAll() error
ValidateAll checks the field values on RelationDefinition 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 RelationDefinitionMultiError, or nil if none found.
type RelationDefinitionMultiError ¶
type RelationDefinitionMultiError []error
RelationDefinitionMultiError is an error wrapping multiple validation errors returned by RelationDefinition.ValidateAll() if the designated constraints aren't met.
func (RelationDefinitionMultiError) AllErrors ¶
func (m RelationDefinitionMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RelationDefinitionMultiError) Error ¶
func (m RelationDefinitionMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RelationDefinitionValidationError ¶
type RelationDefinitionValidationError struct {
// contains filtered or unexported fields
}
RelationDefinitionValidationError is the validation error returned by RelationDefinition.Validate if the designated constraints aren't met.
func (RelationDefinitionValidationError) Cause ¶
func (e RelationDefinitionValidationError) Cause() error
Cause function returns cause value.
func (RelationDefinitionValidationError) Error ¶
func (e RelationDefinitionValidationError) Error() string
Error satisfies the builtin error interface
func (RelationDefinitionValidationError) ErrorName ¶
func (e RelationDefinitionValidationError) ErrorName() string
ErrorName returns error name.
func (RelationDefinitionValidationError) Field ¶
func (e RelationDefinitionValidationError) Field() string
Field function returns field value.
func (RelationDefinitionValidationError) Key ¶
func (e RelationDefinitionValidationError) Key() bool
Key function returns key value.
func (RelationDefinitionValidationError) Reason ¶
func (e RelationDefinitionValidationError) Reason() string
Reason function returns reason value.
type RelationReference ¶
type RelationReference struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
RelationReference
func (*RelationReference) Descriptor
deprecated
func (*RelationReference) Descriptor() ([]byte, []int)
Deprecated: Use RelationReference.ProtoReflect.Descriptor instead.
func (*RelationReference) GetName ¶
func (x *RelationReference) GetName() string
func (*RelationReference) ProtoMessage ¶
func (*RelationReference) ProtoMessage()
func (*RelationReference) ProtoReflect ¶
func (x *RelationReference) ProtoReflect() protoreflect.Message
func (*RelationReference) Reset ¶
func (x *RelationReference) Reset()
func (*RelationReference) String ¶
func (x *RelationReference) String() string
func (*RelationReference) Validate ¶
func (m *RelationReference) Validate() error
Validate checks the field values on RelationReference 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 (*RelationReference) ValidateAll ¶
func (m *RelationReference) ValidateAll() error
ValidateAll checks the field values on RelationReference 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 RelationReferenceMultiError, or nil if none found.
type RelationReferenceMultiError ¶
type RelationReferenceMultiError []error
RelationReferenceMultiError is an error wrapping multiple validation errors returned by RelationReference.ValidateAll() if the designated constraints aren't met.
func (RelationReferenceMultiError) AllErrors ¶
func (m RelationReferenceMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RelationReferenceMultiError) Error ¶
func (m RelationReferenceMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RelationReferenceValidationError ¶
type RelationReferenceValidationError struct {
// contains filtered or unexported fields
}
RelationReferenceValidationError is the validation error returned by RelationReference.Validate if the designated constraints aren't met.
func (RelationReferenceValidationError) Cause ¶
func (e RelationReferenceValidationError) Cause() error
Cause function returns cause value.
func (RelationReferenceValidationError) Error ¶
func (e RelationReferenceValidationError) Error() string
Error satisfies the builtin error interface
func (RelationReferenceValidationError) ErrorName ¶
func (e RelationReferenceValidationError) ErrorName() string
ErrorName returns error name.
func (RelationReferenceValidationError) Field ¶
func (e RelationReferenceValidationError) Field() string
Field function returns field value.
func (RelationReferenceValidationError) Key ¶
func (e RelationReferenceValidationError) Key() bool
Key function returns key value.
func (RelationReferenceValidationError) Reason ¶
func (e RelationReferenceValidationError) Reason() string
Reason function returns reason value.
type RelationshipAPIClient ¶
type RelationshipAPIClient interface { Write(ctx context.Context, in *RelationshipWriteRequest, opts ...grpc.CallOption) (*RelationshipWriteResponse, error) Read(ctx context.Context, in *RelationshipReadRequest, opts ...grpc.CallOption) (*RelationshipReadResponse, error) Delete(ctx context.Context, in *RelationshipDeleteRequest, opts ...grpc.CallOption) (*RelationshipDeleteResponse, error) }
RelationshipAPIClient is the client API for RelationshipAPI 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 NewRelationshipAPIClient ¶
func NewRelationshipAPIClient(cc grpc.ClientConnInterface) RelationshipAPIClient
type RelationshipAPIServer ¶
type RelationshipAPIServer interface { Write(context.Context, *RelationshipWriteRequest) (*RelationshipWriteResponse, error) Read(context.Context, *RelationshipReadRequest) (*RelationshipReadResponse, error) Delete(context.Context, *RelationshipDeleteRequest) (*RelationshipDeleteResponse, error) // contains filtered or unexported methods }
RelationshipAPIServer is the server API for RelationshipAPI service. All implementations must embed UnimplementedRelationshipAPIServer for forward compatibility
type RelationshipDeleteRequest ¶
type RelationshipDeleteRequest struct { Entity *Entity `protobuf:"bytes,1,opt,name=entity,proto3" json:"entity,omitempty"` Relation string `protobuf:"bytes,2,opt,name=relation,proto3" json:"relation,omitempty"` Subject *Subject `protobuf:"bytes,3,opt,name=subject,proto3" json:"subject,omitempty"` // contains filtered or unexported fields }
RelationshipDeleteRequest
func (*RelationshipDeleteRequest) Descriptor
deprecated
func (*RelationshipDeleteRequest) Descriptor() ([]byte, []int)
Deprecated: Use RelationshipDeleteRequest.ProtoReflect.Descriptor instead.
func (*RelationshipDeleteRequest) GetEntity ¶
func (x *RelationshipDeleteRequest) GetEntity() *Entity
func (*RelationshipDeleteRequest) GetRelation ¶
func (x *RelationshipDeleteRequest) GetRelation() string
func (*RelationshipDeleteRequest) GetSubject ¶
func (x *RelationshipDeleteRequest) GetSubject() *Subject
func (*RelationshipDeleteRequest) ProtoMessage ¶
func (*RelationshipDeleteRequest) ProtoMessage()
func (*RelationshipDeleteRequest) ProtoReflect ¶
func (x *RelationshipDeleteRequest) ProtoReflect() protoreflect.Message
func (*RelationshipDeleteRequest) Reset ¶
func (x *RelationshipDeleteRequest) Reset()
func (*RelationshipDeleteRequest) String ¶
func (x *RelationshipDeleteRequest) String() string
func (*RelationshipDeleteRequest) Validate ¶
func (m *RelationshipDeleteRequest) Validate() error
Validate checks the field values on RelationshipDeleteRequest 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 (*RelationshipDeleteRequest) ValidateAll ¶
func (m *RelationshipDeleteRequest) ValidateAll() error
ValidateAll checks the field values on RelationshipDeleteRequest 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 RelationshipDeleteRequestMultiError, or nil if none found.
type RelationshipDeleteRequestMultiError ¶
type RelationshipDeleteRequestMultiError []error
RelationshipDeleteRequestMultiError is an error wrapping multiple validation errors returned by RelationshipDeleteRequest.ValidateAll() if the designated constraints aren't met.
func (RelationshipDeleteRequestMultiError) AllErrors ¶
func (m RelationshipDeleteRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RelationshipDeleteRequestMultiError) Error ¶
func (m RelationshipDeleteRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RelationshipDeleteRequestValidationError ¶
type RelationshipDeleteRequestValidationError struct {
// contains filtered or unexported fields
}
RelationshipDeleteRequestValidationError is the validation error returned by RelationshipDeleteRequest.Validate if the designated constraints aren't met.
func (RelationshipDeleteRequestValidationError) Cause ¶
func (e RelationshipDeleteRequestValidationError) Cause() error
Cause function returns cause value.
func (RelationshipDeleteRequestValidationError) Error ¶
func (e RelationshipDeleteRequestValidationError) Error() string
Error satisfies the builtin error interface
func (RelationshipDeleteRequestValidationError) ErrorName ¶
func (e RelationshipDeleteRequestValidationError) ErrorName() string
ErrorName returns error name.
func (RelationshipDeleteRequestValidationError) Field ¶
func (e RelationshipDeleteRequestValidationError) Field() string
Field function returns field value.
func (RelationshipDeleteRequestValidationError) Key ¶
func (e RelationshipDeleteRequestValidationError) Key() bool
Key function returns key value.
func (RelationshipDeleteRequestValidationError) Reason ¶
func (e RelationshipDeleteRequestValidationError) Reason() string
Reason function returns reason value.
type RelationshipDeleteResponse ¶
type RelationshipDeleteResponse struct { Tuple *Tuple `protobuf:"bytes,1,opt,name=tuple,proto3" json:"tuple,omitempty"` // contains filtered or unexported fields }
RelationshipDeleteResponse
func (*RelationshipDeleteResponse) Descriptor
deprecated
func (*RelationshipDeleteResponse) Descriptor() ([]byte, []int)
Deprecated: Use RelationshipDeleteResponse.ProtoReflect.Descriptor instead.
func (*RelationshipDeleteResponse) GetTuple ¶
func (x *RelationshipDeleteResponse) GetTuple() *Tuple
func (*RelationshipDeleteResponse) ProtoMessage ¶
func (*RelationshipDeleteResponse) ProtoMessage()
func (*RelationshipDeleteResponse) ProtoReflect ¶
func (x *RelationshipDeleteResponse) ProtoReflect() protoreflect.Message
func (*RelationshipDeleteResponse) Reset ¶
func (x *RelationshipDeleteResponse) Reset()
func (*RelationshipDeleteResponse) String ¶
func (x *RelationshipDeleteResponse) String() string
func (*RelationshipDeleteResponse) Validate ¶
func (m *RelationshipDeleteResponse) Validate() error
Validate checks the field values on RelationshipDeleteResponse 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 (*RelationshipDeleteResponse) ValidateAll ¶
func (m *RelationshipDeleteResponse) ValidateAll() error
ValidateAll checks the field values on RelationshipDeleteResponse 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 RelationshipDeleteResponseMultiError, or nil if none found.
type RelationshipDeleteResponseMultiError ¶
type RelationshipDeleteResponseMultiError []error
RelationshipDeleteResponseMultiError is an error wrapping multiple validation errors returned by RelationshipDeleteResponse.ValidateAll() if the designated constraints aren't met.
func (RelationshipDeleteResponseMultiError) AllErrors ¶
func (m RelationshipDeleteResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RelationshipDeleteResponseMultiError) Error ¶
func (m RelationshipDeleteResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RelationshipDeleteResponseValidationError ¶
type RelationshipDeleteResponseValidationError struct {
// contains filtered or unexported fields
}
RelationshipDeleteResponseValidationError is the validation error returned by RelationshipDeleteResponse.Validate if the designated constraints aren't met.
func (RelationshipDeleteResponseValidationError) Cause ¶
func (e RelationshipDeleteResponseValidationError) Cause() error
Cause function returns cause value.
func (RelationshipDeleteResponseValidationError) Error ¶
func (e RelationshipDeleteResponseValidationError) Error() string
Error satisfies the builtin error interface
func (RelationshipDeleteResponseValidationError) ErrorName ¶
func (e RelationshipDeleteResponseValidationError) ErrorName() string
ErrorName returns error name.
func (RelationshipDeleteResponseValidationError) Field ¶
func (e RelationshipDeleteResponseValidationError) Field() string
Field function returns field value.
func (RelationshipDeleteResponseValidationError) Key ¶
func (e RelationshipDeleteResponseValidationError) Key() bool
Key function returns key value.
func (RelationshipDeleteResponseValidationError) Reason ¶
func (e RelationshipDeleteResponseValidationError) Reason() string
Reason function returns reason value.
type RelationshipReadRequest ¶
type RelationshipReadRequest struct { Filter *TupleFilter `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"` // contains filtered or unexported fields }
RelationshipReadRequest
func (*RelationshipReadRequest) Descriptor
deprecated
func (*RelationshipReadRequest) Descriptor() ([]byte, []int)
Deprecated: Use RelationshipReadRequest.ProtoReflect.Descriptor instead.
func (*RelationshipReadRequest) GetFilter ¶
func (x *RelationshipReadRequest) GetFilter() *TupleFilter
func (*RelationshipReadRequest) ProtoMessage ¶
func (*RelationshipReadRequest) ProtoMessage()
func (*RelationshipReadRequest) ProtoReflect ¶
func (x *RelationshipReadRequest) ProtoReflect() protoreflect.Message
func (*RelationshipReadRequest) Reset ¶
func (x *RelationshipReadRequest) Reset()
func (*RelationshipReadRequest) String ¶
func (x *RelationshipReadRequest) String() string
func (*RelationshipReadRequest) Validate ¶
func (m *RelationshipReadRequest) Validate() error
Validate checks the field values on RelationshipReadRequest 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 (*RelationshipReadRequest) ValidateAll ¶
func (m *RelationshipReadRequest) ValidateAll() error
ValidateAll checks the field values on RelationshipReadRequest 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 RelationshipReadRequestMultiError, or nil if none found.
type RelationshipReadRequestMultiError ¶
type RelationshipReadRequestMultiError []error
RelationshipReadRequestMultiError is an error wrapping multiple validation errors returned by RelationshipReadRequest.ValidateAll() if the designated constraints aren't met.
func (RelationshipReadRequestMultiError) AllErrors ¶
func (m RelationshipReadRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RelationshipReadRequestMultiError) Error ¶
func (m RelationshipReadRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RelationshipReadRequestValidationError ¶
type RelationshipReadRequestValidationError struct {
// contains filtered or unexported fields
}
RelationshipReadRequestValidationError is the validation error returned by RelationshipReadRequest.Validate if the designated constraints aren't met.
func (RelationshipReadRequestValidationError) Cause ¶
func (e RelationshipReadRequestValidationError) Cause() error
Cause function returns cause value.
func (RelationshipReadRequestValidationError) Error ¶
func (e RelationshipReadRequestValidationError) Error() string
Error satisfies the builtin error interface
func (RelationshipReadRequestValidationError) ErrorName ¶
func (e RelationshipReadRequestValidationError) ErrorName() string
ErrorName returns error name.
func (RelationshipReadRequestValidationError) Field ¶
func (e RelationshipReadRequestValidationError) Field() string
Field function returns field value.
func (RelationshipReadRequestValidationError) Key ¶
func (e RelationshipReadRequestValidationError) Key() bool
Key function returns key value.
func (RelationshipReadRequestValidationError) Reason ¶
func (e RelationshipReadRequestValidationError) Reason() string
Reason function returns reason value.
type RelationshipReadResponse ¶
type RelationshipReadResponse struct { Tuples []*Tuple `protobuf:"bytes,1,rep,name=tuples,proto3" json:"tuples,omitempty"` // contains filtered or unexported fields }
RelationshipReadResponse
func (*RelationshipReadResponse) Descriptor
deprecated
func (*RelationshipReadResponse) Descriptor() ([]byte, []int)
Deprecated: Use RelationshipReadResponse.ProtoReflect.Descriptor instead.
func (*RelationshipReadResponse) GetTuples ¶
func (x *RelationshipReadResponse) GetTuples() []*Tuple
func (*RelationshipReadResponse) ProtoMessage ¶
func (*RelationshipReadResponse) ProtoMessage()
func (*RelationshipReadResponse) ProtoReflect ¶
func (x *RelationshipReadResponse) ProtoReflect() protoreflect.Message
func (*RelationshipReadResponse) Reset ¶
func (x *RelationshipReadResponse) Reset()
func (*RelationshipReadResponse) String ¶
func (x *RelationshipReadResponse) String() string
func (*RelationshipReadResponse) Validate ¶
func (m *RelationshipReadResponse) Validate() error
Validate checks the field values on RelationshipReadResponse 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 (*RelationshipReadResponse) ValidateAll ¶
func (m *RelationshipReadResponse) ValidateAll() error
ValidateAll checks the field values on RelationshipReadResponse 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 RelationshipReadResponseMultiError, or nil if none found.
type RelationshipReadResponseMultiError ¶
type RelationshipReadResponseMultiError []error
RelationshipReadResponseMultiError is an error wrapping multiple validation errors returned by RelationshipReadResponse.ValidateAll() if the designated constraints aren't met.
func (RelationshipReadResponseMultiError) AllErrors ¶
func (m RelationshipReadResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RelationshipReadResponseMultiError) Error ¶
func (m RelationshipReadResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RelationshipReadResponseValidationError ¶
type RelationshipReadResponseValidationError struct {
// contains filtered or unexported fields
}
RelationshipReadResponseValidationError is the validation error returned by RelationshipReadResponse.Validate if the designated constraints aren't met.
func (RelationshipReadResponseValidationError) Cause ¶
func (e RelationshipReadResponseValidationError) Cause() error
Cause function returns cause value.
func (RelationshipReadResponseValidationError) Error ¶
func (e RelationshipReadResponseValidationError) Error() string
Error satisfies the builtin error interface
func (RelationshipReadResponseValidationError) ErrorName ¶
func (e RelationshipReadResponseValidationError) ErrorName() string
ErrorName returns error name.
func (RelationshipReadResponseValidationError) Field ¶
func (e RelationshipReadResponseValidationError) Field() string
Field function returns field value.
func (RelationshipReadResponseValidationError) Key ¶
func (e RelationshipReadResponseValidationError) Key() bool
Key function returns key value.
func (RelationshipReadResponseValidationError) Reason ¶
func (e RelationshipReadResponseValidationError) Reason() string
Reason function returns reason value.
type RelationshipWriteRequest ¶
type RelationshipWriteRequest struct { SchemaVersion string `protobuf:"bytes,1,opt,name=schema_version,proto3" json:"schema_version,omitempty"` Entity *Entity `protobuf:"bytes,2,opt,name=entity,proto3" json:"entity,omitempty"` Relation string `protobuf:"bytes,3,opt,name=relation,proto3" json:"relation,omitempty"` Subject *Subject `protobuf:"bytes,4,opt,name=subject,proto3" json:"subject,omitempty"` // contains filtered or unexported fields }
RelationshipWriteRequest
func (*RelationshipWriteRequest) Descriptor
deprecated
func (*RelationshipWriteRequest) Descriptor() ([]byte, []int)
Deprecated: Use RelationshipWriteRequest.ProtoReflect.Descriptor instead.
func (*RelationshipWriteRequest) GetEntity ¶
func (x *RelationshipWriteRequest) GetEntity() *Entity
func (*RelationshipWriteRequest) GetRelation ¶
func (x *RelationshipWriteRequest) GetRelation() string
func (*RelationshipWriteRequest) GetSchemaVersion ¶
func (x *RelationshipWriteRequest) GetSchemaVersion() string
func (*RelationshipWriteRequest) GetSubject ¶
func (x *RelationshipWriteRequest) GetSubject() *Subject
func (*RelationshipWriteRequest) ProtoMessage ¶
func (*RelationshipWriteRequest) ProtoMessage()
func (*RelationshipWriteRequest) ProtoReflect ¶
func (x *RelationshipWriteRequest) ProtoReflect() protoreflect.Message
func (*RelationshipWriteRequest) Reset ¶
func (x *RelationshipWriteRequest) Reset()
func (*RelationshipWriteRequest) String ¶
func (x *RelationshipWriteRequest) String() string
func (*RelationshipWriteRequest) Validate ¶
func (m *RelationshipWriteRequest) Validate() error
Validate checks the field values on RelationshipWriteRequest 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 (*RelationshipWriteRequest) ValidateAll ¶
func (m *RelationshipWriteRequest) ValidateAll() error
ValidateAll checks the field values on RelationshipWriteRequest 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 RelationshipWriteRequestMultiError, or nil if none found.
type RelationshipWriteRequestMultiError ¶
type RelationshipWriteRequestMultiError []error
RelationshipWriteRequestMultiError is an error wrapping multiple validation errors returned by RelationshipWriteRequest.ValidateAll() if the designated constraints aren't met.
func (RelationshipWriteRequestMultiError) AllErrors ¶
func (m RelationshipWriteRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RelationshipWriteRequestMultiError) Error ¶
func (m RelationshipWriteRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RelationshipWriteRequestValidationError ¶
type RelationshipWriteRequestValidationError struct {
// contains filtered or unexported fields
}
RelationshipWriteRequestValidationError is the validation error returned by RelationshipWriteRequest.Validate if the designated constraints aren't met.
func (RelationshipWriteRequestValidationError) Cause ¶
func (e RelationshipWriteRequestValidationError) Cause() error
Cause function returns cause value.
func (RelationshipWriteRequestValidationError) Error ¶
func (e RelationshipWriteRequestValidationError) Error() string
Error satisfies the builtin error interface
func (RelationshipWriteRequestValidationError) ErrorName ¶
func (e RelationshipWriteRequestValidationError) ErrorName() string
ErrorName returns error name.
func (RelationshipWriteRequestValidationError) Field ¶
func (e RelationshipWriteRequestValidationError) Field() string
Field function returns field value.
func (RelationshipWriteRequestValidationError) Key ¶
func (e RelationshipWriteRequestValidationError) Key() bool
Key function returns key value.
func (RelationshipWriteRequestValidationError) Reason ¶
func (e RelationshipWriteRequestValidationError) Reason() string
Reason function returns reason value.
type RelationshipWriteResponse ¶
type RelationshipWriteResponse struct { Tuple *Tuple `protobuf:"bytes,1,opt,name=tuple,proto3" json:"tuple,omitempty"` // contains filtered or unexported fields }
RelationshipWriteResponse
func (*RelationshipWriteResponse) Descriptor
deprecated
func (*RelationshipWriteResponse) Descriptor() ([]byte, []int)
Deprecated: Use RelationshipWriteResponse.ProtoReflect.Descriptor instead.
func (*RelationshipWriteResponse) GetTuple ¶
func (x *RelationshipWriteResponse) GetTuple() *Tuple
func (*RelationshipWriteResponse) ProtoMessage ¶
func (*RelationshipWriteResponse) ProtoMessage()
func (*RelationshipWriteResponse) ProtoReflect ¶
func (x *RelationshipWriteResponse) ProtoReflect() protoreflect.Message
func (*RelationshipWriteResponse) Reset ¶
func (x *RelationshipWriteResponse) Reset()
func (*RelationshipWriteResponse) String ¶
func (x *RelationshipWriteResponse) String() string
func (*RelationshipWriteResponse) Validate ¶
func (m *RelationshipWriteResponse) Validate() error
Validate checks the field values on RelationshipWriteResponse 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 (*RelationshipWriteResponse) ValidateAll ¶
func (m *RelationshipWriteResponse) ValidateAll() error
ValidateAll checks the field values on RelationshipWriteResponse 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 RelationshipWriteResponseMultiError, or nil if none found.
type RelationshipWriteResponseMultiError ¶
type RelationshipWriteResponseMultiError []error
RelationshipWriteResponseMultiError is an error wrapping multiple validation errors returned by RelationshipWriteResponse.ValidateAll() if the designated constraints aren't met.
func (RelationshipWriteResponseMultiError) AllErrors ¶
func (m RelationshipWriteResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RelationshipWriteResponseMultiError) Error ¶
func (m RelationshipWriteResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RelationshipWriteResponseValidationError ¶
type RelationshipWriteResponseValidationError struct {
// contains filtered or unexported fields
}
RelationshipWriteResponseValidationError is the validation error returned by RelationshipWriteResponse.Validate if the designated constraints aren't met.
func (RelationshipWriteResponseValidationError) Cause ¶
func (e RelationshipWriteResponseValidationError) Cause() error
Cause function returns cause value.
func (RelationshipWriteResponseValidationError) Error ¶
func (e RelationshipWriteResponseValidationError) Error() string
Error satisfies the builtin error interface
func (RelationshipWriteResponseValidationError) ErrorName ¶
func (e RelationshipWriteResponseValidationError) ErrorName() string
ErrorName returns error name.
func (RelationshipWriteResponseValidationError) Field ¶
func (e RelationshipWriteResponseValidationError) Field() string
Field function returns field value.
func (RelationshipWriteResponseValidationError) Key ¶
func (e RelationshipWriteResponseValidationError) Key() bool
Key function returns key value.
func (RelationshipWriteResponseValidationError) Reason ¶
func (e RelationshipWriteResponseValidationError) Reason() string
Reason function returns reason value.
type Rewrite ¶
type Rewrite struct { RewriteOperation Rewrite_Operation `` /* 133-byte string literal not displayed */ Children []*Child `protobuf:"bytes,2,rep,name=children,proto3" json:"children,omitempty"` // contains filtered or unexported fields }
Rewrite
func (*Rewrite) Descriptor
deprecated
func (*Rewrite) GetChildren ¶
func (*Rewrite) GetRewriteOperation ¶
func (x *Rewrite) GetRewriteOperation() Rewrite_Operation
func (*Rewrite) ProtoMessage ¶
func (*Rewrite) ProtoMessage()
func (*Rewrite) ProtoReflect ¶
func (x *Rewrite) ProtoReflect() protoreflect.Message
func (*Rewrite) Validate ¶
Validate checks the field values on Rewrite 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 (*Rewrite) ValidateAll ¶
ValidateAll checks the field values on Rewrite 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 RewriteMultiError, or nil if none found.
type RewriteMultiError ¶
type RewriteMultiError []error
RewriteMultiError is an error wrapping multiple validation errors returned by Rewrite.ValidateAll() if the designated constraints aren't met.
func (RewriteMultiError) AllErrors ¶
func (m RewriteMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RewriteMultiError) Error ¶
func (m RewriteMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RewriteValidationError ¶
type RewriteValidationError struct {
// contains filtered or unexported fields
}
RewriteValidationError is the validation error returned by Rewrite.Validate if the designated constraints aren't met.
func (RewriteValidationError) Cause ¶
func (e RewriteValidationError) Cause() error
Cause function returns cause value.
func (RewriteValidationError) Error ¶
func (e RewriteValidationError) Error() string
Error satisfies the builtin error interface
func (RewriteValidationError) ErrorName ¶
func (e RewriteValidationError) ErrorName() string
ErrorName returns error name.
func (RewriteValidationError) Field ¶
func (e RewriteValidationError) Field() string
Field function returns field value.
func (RewriteValidationError) Key ¶
func (e RewriteValidationError) Key() bool
Key function returns key value.
func (RewriteValidationError) Reason ¶
func (e RewriteValidationError) Reason() string
Reason function returns reason value.
type Rewrite_Operation ¶
type Rewrite_Operation int32
Operation
const ( Rewrite_INVALID Rewrite_Operation = 0 Rewrite_UNION Rewrite_Operation = 1 Rewrite_INTERSECTION Rewrite_Operation = 2 )
func (Rewrite_Operation) Descriptor ¶
func (Rewrite_Operation) Descriptor() protoreflect.EnumDescriptor
func (Rewrite_Operation) Enum ¶
func (x Rewrite_Operation) Enum() *Rewrite_Operation
func (Rewrite_Operation) EnumDescriptor
deprecated
func (Rewrite_Operation) EnumDescriptor() ([]byte, []int)
Deprecated: Use Rewrite_Operation.Descriptor instead.
func (Rewrite_Operation) Number ¶
func (x Rewrite_Operation) Number() protoreflect.EnumNumber
func (Rewrite_Operation) String ¶
func (x Rewrite_Operation) String() string
func (Rewrite_Operation) Type ¶
func (Rewrite_Operation) Type() protoreflect.EnumType
type Schema ¶
type Schema struct { EntityDefinitions map[string]*EntityDefinition `` /* 200-byte string literal not displayed */ // ["entity_name#relation_name"] => RelationDefinition RelationDefinitions map[string]*RelationDefinition `` /* 206-byte string literal not displayed */ // ["entity_name#action_name"] => ActionDefinition ActionDefinitions map[string]*ActionDefinition `` /* 200-byte string literal not displayed */ // contains filtered or unexported fields }
Schema
func (*Schema) Descriptor
deprecated
func (*Schema) GetActionDefinitions ¶
func (x *Schema) GetActionDefinitions() map[string]*ActionDefinition
func (*Schema) GetEntityDefinitions ¶
func (x *Schema) GetEntityDefinitions() map[string]*EntityDefinition
func (*Schema) GetRelationDefinitions ¶
func (x *Schema) GetRelationDefinitions() map[string]*RelationDefinition
func (*Schema) ProtoMessage ¶
func (*Schema) ProtoMessage()
func (*Schema) ProtoReflect ¶
func (x *Schema) ProtoReflect() protoreflect.Message
func (*Schema) Validate ¶
Validate checks the field values on Schema 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 (*Schema) ValidateAll ¶
ValidateAll checks the field values on Schema 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 SchemaMultiError, or nil if none found.
type SchemaAPIClient ¶
type SchemaAPIClient interface { Write(ctx context.Context, in *SchemaWriteRequest, opts ...grpc.CallOption) (*SchemaWriteResponse, error) Read(ctx context.Context, in *SchemaReadRequest, opts ...grpc.CallOption) (*SchemaReadResponse, error) Lookup(ctx context.Context, in *SchemaLookupRequest, opts ...grpc.CallOption) (*SchemaLookupResponse, error) }
SchemaAPIClient is the client API for SchemaAPI 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 NewSchemaAPIClient ¶
func NewSchemaAPIClient(cc grpc.ClientConnInterface) SchemaAPIClient
type SchemaAPIServer ¶
type SchemaAPIServer interface { Write(context.Context, *SchemaWriteRequest) (*SchemaWriteResponse, error) Read(context.Context, *SchemaReadRequest) (*SchemaReadResponse, error) Lookup(context.Context, *SchemaLookupRequest) (*SchemaLookupResponse, error) // contains filtered or unexported methods }
SchemaAPIServer is the server API for SchemaAPI service. All implementations must embed UnimplementedSchemaAPIServer for forward compatibility
type SchemaLookupRequest ¶
type SchemaLookupRequest struct { SchemaVersion string `protobuf:"bytes,1,opt,name=schema_version,proto3" json:"schema_version,omitempty"` EntityType string `protobuf:"bytes,2,opt,name=entity_type,proto3" json:"entity_type,omitempty"` RelationNames []string `protobuf:"bytes,3,rep,name=relation_names,proto3" json:"relation_names,omitempty"` // contains filtered or unexported fields }
SchemaLookupRequest
func (*SchemaLookupRequest) Descriptor
deprecated
func (*SchemaLookupRequest) Descriptor() ([]byte, []int)
Deprecated: Use SchemaLookupRequest.ProtoReflect.Descriptor instead.
func (*SchemaLookupRequest) GetEntityType ¶
func (x *SchemaLookupRequest) GetEntityType() string
func (*SchemaLookupRequest) GetRelationNames ¶
func (x *SchemaLookupRequest) GetRelationNames() []string
func (*SchemaLookupRequest) GetSchemaVersion ¶
func (x *SchemaLookupRequest) GetSchemaVersion() string
func (*SchemaLookupRequest) ProtoMessage ¶
func (*SchemaLookupRequest) ProtoMessage()
func (*SchemaLookupRequest) ProtoReflect ¶
func (x *SchemaLookupRequest) ProtoReflect() protoreflect.Message
func (*SchemaLookupRequest) Reset ¶
func (x *SchemaLookupRequest) Reset()
func (*SchemaLookupRequest) String ¶
func (x *SchemaLookupRequest) String() string
func (*SchemaLookupRequest) Validate ¶
func (m *SchemaLookupRequest) Validate() error
Validate checks the field values on SchemaLookupRequest 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 (*SchemaLookupRequest) ValidateAll ¶
func (m *SchemaLookupRequest) ValidateAll() error
ValidateAll checks the field values on SchemaLookupRequest 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 SchemaLookupRequestMultiError, or nil if none found.
type SchemaLookupRequestMultiError ¶
type SchemaLookupRequestMultiError []error
SchemaLookupRequestMultiError is an error wrapping multiple validation errors returned by SchemaLookupRequest.ValidateAll() if the designated constraints aren't met.
func (SchemaLookupRequestMultiError) AllErrors ¶
func (m SchemaLookupRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SchemaLookupRequestMultiError) Error ¶
func (m SchemaLookupRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SchemaLookupRequestValidationError ¶
type SchemaLookupRequestValidationError struct {
// contains filtered or unexported fields
}
SchemaLookupRequestValidationError is the validation error returned by SchemaLookupRequest.Validate if the designated constraints aren't met.
func (SchemaLookupRequestValidationError) Cause ¶
func (e SchemaLookupRequestValidationError) Cause() error
Cause function returns cause value.
func (SchemaLookupRequestValidationError) Error ¶
func (e SchemaLookupRequestValidationError) Error() string
Error satisfies the builtin error interface
func (SchemaLookupRequestValidationError) ErrorName ¶
func (e SchemaLookupRequestValidationError) ErrorName() string
ErrorName returns error name.
func (SchemaLookupRequestValidationError) Field ¶
func (e SchemaLookupRequestValidationError) Field() string
Field function returns field value.
func (SchemaLookupRequestValidationError) Key ¶
func (e SchemaLookupRequestValidationError) Key() bool
Key function returns key value.
func (SchemaLookupRequestValidationError) Reason ¶
func (e SchemaLookupRequestValidationError) Reason() string
Reason function returns reason value.
type SchemaLookupResponse ¶
type SchemaLookupResponse struct { ActionNames []string `protobuf:"bytes,1,rep,name=action_names,proto3" json:"action_names,omitempty"` // contains filtered or unexported fields }
SchemaLookupResponse
func (*SchemaLookupResponse) Descriptor
deprecated
func (*SchemaLookupResponse) Descriptor() ([]byte, []int)
Deprecated: Use SchemaLookupResponse.ProtoReflect.Descriptor instead.
func (*SchemaLookupResponse) GetActionNames ¶
func (x *SchemaLookupResponse) GetActionNames() []string
func (*SchemaLookupResponse) ProtoMessage ¶
func (*SchemaLookupResponse) ProtoMessage()
func (*SchemaLookupResponse) ProtoReflect ¶
func (x *SchemaLookupResponse) ProtoReflect() protoreflect.Message
func (*SchemaLookupResponse) Reset ¶
func (x *SchemaLookupResponse) Reset()
func (*SchemaLookupResponse) String ¶
func (x *SchemaLookupResponse) String() string
func (*SchemaLookupResponse) Validate ¶
func (m *SchemaLookupResponse) Validate() error
Validate checks the field values on SchemaLookupResponse 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 (*SchemaLookupResponse) ValidateAll ¶
func (m *SchemaLookupResponse) ValidateAll() error
ValidateAll checks the field values on SchemaLookupResponse 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 SchemaLookupResponseMultiError, or nil if none found.
type SchemaLookupResponseMultiError ¶
type SchemaLookupResponseMultiError []error
SchemaLookupResponseMultiError is an error wrapping multiple validation errors returned by SchemaLookupResponse.ValidateAll() if the designated constraints aren't met.
func (SchemaLookupResponseMultiError) AllErrors ¶
func (m SchemaLookupResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SchemaLookupResponseMultiError) Error ¶
func (m SchemaLookupResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SchemaLookupResponseValidationError ¶
type SchemaLookupResponseValidationError struct {
// contains filtered or unexported fields
}
SchemaLookupResponseValidationError is the validation error returned by SchemaLookupResponse.Validate if the designated constraints aren't met.
func (SchemaLookupResponseValidationError) Cause ¶
func (e SchemaLookupResponseValidationError) Cause() error
Cause function returns cause value.
func (SchemaLookupResponseValidationError) Error ¶
func (e SchemaLookupResponseValidationError) Error() string
Error satisfies the builtin error interface
func (SchemaLookupResponseValidationError) ErrorName ¶
func (e SchemaLookupResponseValidationError) ErrorName() string
ErrorName returns error name.
func (SchemaLookupResponseValidationError) Field ¶
func (e SchemaLookupResponseValidationError) Field() string
Field function returns field value.
func (SchemaLookupResponseValidationError) Key ¶
func (e SchemaLookupResponseValidationError) Key() bool
Key function returns key value.
func (SchemaLookupResponseValidationError) Reason ¶
func (e SchemaLookupResponseValidationError) Reason() string
Reason function returns reason value.
type SchemaMultiError ¶
type SchemaMultiError []error
SchemaMultiError is an error wrapping multiple validation errors returned by Schema.ValidateAll() if the designated constraints aren't met.
func (SchemaMultiError) AllErrors ¶
func (m SchemaMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SchemaMultiError) Error ¶
func (m SchemaMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SchemaReadRequest ¶
type SchemaReadRequest struct { SchemaVersion string `protobuf:"bytes,1,opt,name=schema_version,proto3" json:"schema_version,omitempty"` // contains filtered or unexported fields }
SchemaReadRequest
func (*SchemaReadRequest) Descriptor
deprecated
func (*SchemaReadRequest) Descriptor() ([]byte, []int)
Deprecated: Use SchemaReadRequest.ProtoReflect.Descriptor instead.
func (*SchemaReadRequest) GetSchemaVersion ¶
func (x *SchemaReadRequest) GetSchemaVersion() string
func (*SchemaReadRequest) ProtoMessage ¶
func (*SchemaReadRequest) ProtoMessage()
func (*SchemaReadRequest) ProtoReflect ¶
func (x *SchemaReadRequest) ProtoReflect() protoreflect.Message
func (*SchemaReadRequest) Reset ¶
func (x *SchemaReadRequest) Reset()
func (*SchemaReadRequest) String ¶
func (x *SchemaReadRequest) String() string
func (*SchemaReadRequest) Validate ¶
func (m *SchemaReadRequest) Validate() error
Validate checks the field values on SchemaReadRequest 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 (*SchemaReadRequest) ValidateAll ¶
func (m *SchemaReadRequest) ValidateAll() error
ValidateAll checks the field values on SchemaReadRequest 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 SchemaReadRequestMultiError, or nil if none found.
type SchemaReadRequestMultiError ¶
type SchemaReadRequestMultiError []error
SchemaReadRequestMultiError is an error wrapping multiple validation errors returned by SchemaReadRequest.ValidateAll() if the designated constraints aren't met.
func (SchemaReadRequestMultiError) AllErrors ¶
func (m SchemaReadRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SchemaReadRequestMultiError) Error ¶
func (m SchemaReadRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SchemaReadRequestValidationError ¶
type SchemaReadRequestValidationError struct {
// contains filtered or unexported fields
}
SchemaReadRequestValidationError is the validation error returned by SchemaReadRequest.Validate if the designated constraints aren't met.
func (SchemaReadRequestValidationError) Cause ¶
func (e SchemaReadRequestValidationError) Cause() error
Cause function returns cause value.
func (SchemaReadRequestValidationError) Error ¶
func (e SchemaReadRequestValidationError) Error() string
Error satisfies the builtin error interface
func (SchemaReadRequestValidationError) ErrorName ¶
func (e SchemaReadRequestValidationError) ErrorName() string
ErrorName returns error name.
func (SchemaReadRequestValidationError) Field ¶
func (e SchemaReadRequestValidationError) Field() string
Field function returns field value.
func (SchemaReadRequestValidationError) Key ¶
func (e SchemaReadRequestValidationError) Key() bool
Key function returns key value.
func (SchemaReadRequestValidationError) Reason ¶
func (e SchemaReadRequestValidationError) Reason() string
Reason function returns reason value.
type SchemaReadResponse ¶
type SchemaReadResponse struct { Schema *Schema `protobuf:"bytes,1,opt,name=schema,proto3" json:"schema,omitempty"` // contains filtered or unexported fields }
SchemaReadRequest
func (*SchemaReadResponse) Descriptor
deprecated
func (*SchemaReadResponse) Descriptor() ([]byte, []int)
Deprecated: Use SchemaReadResponse.ProtoReflect.Descriptor instead.
func (*SchemaReadResponse) GetSchema ¶
func (x *SchemaReadResponse) GetSchema() *Schema
func (*SchemaReadResponse) ProtoMessage ¶
func (*SchemaReadResponse) ProtoMessage()
func (*SchemaReadResponse) ProtoReflect ¶
func (x *SchemaReadResponse) ProtoReflect() protoreflect.Message
func (*SchemaReadResponse) Reset ¶
func (x *SchemaReadResponse) Reset()
func (*SchemaReadResponse) String ¶
func (x *SchemaReadResponse) String() string
func (*SchemaReadResponse) Validate ¶
func (m *SchemaReadResponse) Validate() error
Validate checks the field values on SchemaReadResponse 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 (*SchemaReadResponse) ValidateAll ¶
func (m *SchemaReadResponse) ValidateAll() error
ValidateAll checks the field values on SchemaReadResponse 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 SchemaReadResponseMultiError, or nil if none found.
type SchemaReadResponseMultiError ¶
type SchemaReadResponseMultiError []error
SchemaReadResponseMultiError is an error wrapping multiple validation errors returned by SchemaReadResponse.ValidateAll() if the designated constraints aren't met.
func (SchemaReadResponseMultiError) AllErrors ¶
func (m SchemaReadResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SchemaReadResponseMultiError) Error ¶
func (m SchemaReadResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SchemaReadResponseValidationError ¶
type SchemaReadResponseValidationError struct {
// contains filtered or unexported fields
}
SchemaReadResponseValidationError is the validation error returned by SchemaReadResponse.Validate if the designated constraints aren't met.
func (SchemaReadResponseValidationError) Cause ¶
func (e SchemaReadResponseValidationError) Cause() error
Cause function returns cause value.
func (SchemaReadResponseValidationError) Error ¶
func (e SchemaReadResponseValidationError) Error() string
Error satisfies the builtin error interface
func (SchemaReadResponseValidationError) ErrorName ¶
func (e SchemaReadResponseValidationError) ErrorName() string
ErrorName returns error name.
func (SchemaReadResponseValidationError) Field ¶
func (e SchemaReadResponseValidationError) Field() string
Field function returns field value.
func (SchemaReadResponseValidationError) Key ¶
func (e SchemaReadResponseValidationError) Key() bool
Key function returns key value.
func (SchemaReadResponseValidationError) Reason ¶
func (e SchemaReadResponseValidationError) Reason() string
Reason function returns reason value.
type SchemaValidationError ¶
type SchemaValidationError struct {
// contains filtered or unexported fields
}
SchemaValidationError is the validation error returned by Schema.Validate if the designated constraints aren't met.
func (SchemaValidationError) Cause ¶
func (e SchemaValidationError) Cause() error
Cause function returns cause value.
func (SchemaValidationError) Error ¶
func (e SchemaValidationError) Error() string
Error satisfies the builtin error interface
func (SchemaValidationError) ErrorName ¶
func (e SchemaValidationError) ErrorName() string
ErrorName returns error name.
func (SchemaValidationError) Field ¶
func (e SchemaValidationError) Field() string
Field function returns field value.
func (SchemaValidationError) Key ¶
func (e SchemaValidationError) Key() bool
Key function returns key value.
func (SchemaValidationError) Reason ¶
func (e SchemaValidationError) Reason() string
Reason function returns reason value.
type SchemaWriteRequest ¶
type SchemaWriteRequest struct { Schema string `protobuf:"bytes,1,opt,name=schema,proto3" json:"schema,omitempty"` // contains filtered or unexported fields }
SchemaWriteRequest
func (*SchemaWriteRequest) Descriptor
deprecated
func (*SchemaWriteRequest) Descriptor() ([]byte, []int)
Deprecated: Use SchemaWriteRequest.ProtoReflect.Descriptor instead.
func (*SchemaWriteRequest) GetSchema ¶
func (x *SchemaWriteRequest) GetSchema() string
func (*SchemaWriteRequest) ProtoMessage ¶
func (*SchemaWriteRequest) ProtoMessage()
func (*SchemaWriteRequest) ProtoReflect ¶
func (x *SchemaWriteRequest) ProtoReflect() protoreflect.Message
func (*SchemaWriteRequest) Reset ¶
func (x *SchemaWriteRequest) Reset()
func (*SchemaWriteRequest) String ¶
func (x *SchemaWriteRequest) String() string
func (*SchemaWriteRequest) Validate ¶
func (m *SchemaWriteRequest) Validate() error
Validate checks the field values on SchemaWriteRequest 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 (*SchemaWriteRequest) ValidateAll ¶
func (m *SchemaWriteRequest) ValidateAll() error
ValidateAll checks the field values on SchemaWriteRequest 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 SchemaWriteRequestMultiError, or nil if none found.
type SchemaWriteRequestMultiError ¶
type SchemaWriteRequestMultiError []error
SchemaWriteRequestMultiError is an error wrapping multiple validation errors returned by SchemaWriteRequest.ValidateAll() if the designated constraints aren't met.
func (SchemaWriteRequestMultiError) AllErrors ¶
func (m SchemaWriteRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SchemaWriteRequestMultiError) Error ¶
func (m SchemaWriteRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SchemaWriteRequestValidationError ¶
type SchemaWriteRequestValidationError struct {
// contains filtered or unexported fields
}
SchemaWriteRequestValidationError is the validation error returned by SchemaWriteRequest.Validate if the designated constraints aren't met.
func (SchemaWriteRequestValidationError) Cause ¶
func (e SchemaWriteRequestValidationError) Cause() error
Cause function returns cause value.
func (SchemaWriteRequestValidationError) Error ¶
func (e SchemaWriteRequestValidationError) Error() string
Error satisfies the builtin error interface
func (SchemaWriteRequestValidationError) ErrorName ¶
func (e SchemaWriteRequestValidationError) ErrorName() string
ErrorName returns error name.
func (SchemaWriteRequestValidationError) Field ¶
func (e SchemaWriteRequestValidationError) Field() string
Field function returns field value.
func (SchemaWriteRequestValidationError) Key ¶
func (e SchemaWriteRequestValidationError) Key() bool
Key function returns key value.
func (SchemaWriteRequestValidationError) Reason ¶
func (e SchemaWriteRequestValidationError) Reason() string
Reason function returns reason value.
type SchemaWriteResponse ¶
type SchemaWriteResponse struct { SchemaVersion string `protobuf:"bytes,1,opt,name=schema_version,proto3" json:"schema_version,omitempty"` // contains filtered or unexported fields }
SchemaWriteResponse
func (*SchemaWriteResponse) Descriptor
deprecated
func (*SchemaWriteResponse) Descriptor() ([]byte, []int)
Deprecated: Use SchemaWriteResponse.ProtoReflect.Descriptor instead.
func (*SchemaWriteResponse) GetSchemaVersion ¶
func (x *SchemaWriteResponse) GetSchemaVersion() string
func (*SchemaWriteResponse) ProtoMessage ¶
func (*SchemaWriteResponse) ProtoMessage()
func (*SchemaWriteResponse) ProtoReflect ¶
func (x *SchemaWriteResponse) ProtoReflect() protoreflect.Message
func (*SchemaWriteResponse) Reset ¶
func (x *SchemaWriteResponse) Reset()
func (*SchemaWriteResponse) String ¶
func (x *SchemaWriteResponse) String() string
func (*SchemaWriteResponse) Validate ¶
func (m *SchemaWriteResponse) Validate() error
Validate checks the field values on SchemaWriteResponse 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 (*SchemaWriteResponse) ValidateAll ¶
func (m *SchemaWriteResponse) ValidateAll() error
ValidateAll checks the field values on SchemaWriteResponse 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 SchemaWriteResponseMultiError, or nil if none found.
type SchemaWriteResponseMultiError ¶
type SchemaWriteResponseMultiError []error
SchemaWriteResponseMultiError is an error wrapping multiple validation errors returned by SchemaWriteResponse.ValidateAll() if the designated constraints aren't met.
func (SchemaWriteResponseMultiError) AllErrors ¶
func (m SchemaWriteResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SchemaWriteResponseMultiError) Error ¶
func (m SchemaWriteResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SchemaWriteResponseValidationError ¶
type SchemaWriteResponseValidationError struct {
// contains filtered or unexported fields
}
SchemaWriteResponseValidationError is the validation error returned by SchemaWriteResponse.Validate if the designated constraints aren't met.
func (SchemaWriteResponseValidationError) Cause ¶
func (e SchemaWriteResponseValidationError) Cause() error
Cause function returns cause value.
func (SchemaWriteResponseValidationError) Error ¶
func (e SchemaWriteResponseValidationError) Error() string
Error satisfies the builtin error interface
func (SchemaWriteResponseValidationError) ErrorName ¶
func (e SchemaWriteResponseValidationError) ErrorName() string
ErrorName returns error name.
func (SchemaWriteResponseValidationError) Field ¶
func (e SchemaWriteResponseValidationError) Field() string
Field function returns field value.
func (SchemaWriteResponseValidationError) Key ¶
func (e SchemaWriteResponseValidationError) Key() bool
Key function returns key value.
func (SchemaWriteResponseValidationError) Reason ¶
func (e SchemaWriteResponseValidationError) Reason() string
Reason function returns reason value.
type Subject ¶
type Subject struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` Relation string `protobuf:"bytes,3,opt,name=relation,proto3" json:"relation,omitempty"` // contains filtered or unexported fields }
Subject
func (*Subject) Descriptor
deprecated
func (*Subject) GetRelation ¶
func (*Subject) ProtoMessage ¶
func (*Subject) ProtoMessage()
func (*Subject) ProtoReflect ¶
func (x *Subject) ProtoReflect() protoreflect.Message
func (*Subject) Validate ¶
Validate checks the field values on Subject 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 (*Subject) ValidateAll ¶
ValidateAll checks the field values on Subject 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 SubjectMultiError, or nil if none found.
type SubjectFilter ¶
type SubjectFilter struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` Relation string `protobuf:"bytes,3,opt,name=relation,proto3" json:"relation,omitempty"` // contains filtered or unexported fields }
Subject
func (*SubjectFilter) Descriptor
deprecated
func (*SubjectFilter) Descriptor() ([]byte, []int)
Deprecated: Use SubjectFilter.ProtoReflect.Descriptor instead.
func (*SubjectFilter) GetId ¶
func (x *SubjectFilter) GetId() string
func (*SubjectFilter) GetRelation ¶
func (x *SubjectFilter) GetRelation() string
func (*SubjectFilter) GetType ¶
func (x *SubjectFilter) GetType() string
func (*SubjectFilter) ProtoMessage ¶
func (*SubjectFilter) ProtoMessage()
func (*SubjectFilter) ProtoReflect ¶
func (x *SubjectFilter) ProtoReflect() protoreflect.Message
func (*SubjectFilter) Reset ¶
func (x *SubjectFilter) Reset()
func (*SubjectFilter) String ¶
func (x *SubjectFilter) String() string
func (*SubjectFilter) Validate ¶
func (m *SubjectFilter) Validate() error
Validate checks the field values on SubjectFilter 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 (*SubjectFilter) ValidateAll ¶
func (m *SubjectFilter) ValidateAll() error
ValidateAll checks the field values on SubjectFilter 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 SubjectFilterMultiError, or nil if none found.
type SubjectFilterMultiError ¶
type SubjectFilterMultiError []error
SubjectFilterMultiError is an error wrapping multiple validation errors returned by SubjectFilter.ValidateAll() if the designated constraints aren't met.
func (SubjectFilterMultiError) AllErrors ¶
func (m SubjectFilterMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SubjectFilterMultiError) Error ¶
func (m SubjectFilterMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SubjectFilterValidationError ¶
type SubjectFilterValidationError struct {
// contains filtered or unexported fields
}
SubjectFilterValidationError is the validation error returned by SubjectFilter.Validate if the designated constraints aren't met.
func (SubjectFilterValidationError) Cause ¶
func (e SubjectFilterValidationError) Cause() error
Cause function returns cause value.
func (SubjectFilterValidationError) Error ¶
func (e SubjectFilterValidationError) Error() string
Error satisfies the builtin error interface
func (SubjectFilterValidationError) ErrorName ¶
func (e SubjectFilterValidationError) ErrorName() string
ErrorName returns error name.
func (SubjectFilterValidationError) Field ¶
func (e SubjectFilterValidationError) Field() string
Field function returns field value.
func (SubjectFilterValidationError) Key ¶
func (e SubjectFilterValidationError) Key() bool
Key function returns key value.
func (SubjectFilterValidationError) Reason ¶
func (e SubjectFilterValidationError) Reason() string
Reason function returns reason value.
type SubjectMultiError ¶
type SubjectMultiError []error
SubjectMultiError is an error wrapping multiple validation errors returned by Subject.ValidateAll() if the designated constraints aren't met.
func (SubjectMultiError) AllErrors ¶
func (m SubjectMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SubjectMultiError) Error ¶
func (m SubjectMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SubjectValidationError ¶
type SubjectValidationError struct {
// contains filtered or unexported fields
}
SubjectValidationError is the validation error returned by Subject.Validate if the designated constraints aren't met.
func (SubjectValidationError) Cause ¶
func (e SubjectValidationError) Cause() error
Cause function returns cause value.
func (SubjectValidationError) Error ¶
func (e SubjectValidationError) Error() string
Error satisfies the builtin error interface
func (SubjectValidationError) ErrorName ¶
func (e SubjectValidationError) ErrorName() string
ErrorName returns error name.
func (SubjectValidationError) Field ¶
func (e SubjectValidationError) Field() string
Field function returns field value.
func (SubjectValidationError) Key ¶
func (e SubjectValidationError) Key() bool
Key function returns key value.
func (SubjectValidationError) Reason ¶
func (e SubjectValidationError) Reason() string
Reason function returns reason value.
type Subjects ¶ added in v0.4.1
type Subjects struct { Exclusion bool `protobuf:"varint,1,opt,name=exclusion,proto3" json:"exclusion,omitempty"` Subjects []*Subject `protobuf:"bytes,2,rep,name=subjects,proto3" json:"subjects,omitempty"` // contains filtered or unexported fields }
Subjects
func (*Subjects) Descriptor
deprecated
added in
v0.4.1
func (*Subjects) GetExclusion ¶
func (*Subjects) GetSubjects ¶ added in v0.4.1
func (*Subjects) ProtoMessage ¶ added in v0.4.1
func (*Subjects) ProtoMessage()
func (*Subjects) ProtoReflect ¶ added in v0.4.1
func (x *Subjects) ProtoReflect() protoreflect.Message
func (*Subjects) Validate ¶ added in v0.4.1
Validate checks the field values on Subjects 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 (*Subjects) ValidateAll ¶ added in v0.4.1
ValidateAll checks the field values on Subjects 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 SubjectsMultiError, or nil if none found.
type SubjectsMultiError ¶ added in v0.4.1
type SubjectsMultiError []error
SubjectsMultiError is an error wrapping multiple validation errors returned by Subjects.ValidateAll() if the designated constraints aren't met.
func (SubjectsMultiError) AllErrors ¶ added in v0.4.1
func (m SubjectsMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SubjectsMultiError) Error ¶ added in v0.4.1
func (m SubjectsMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SubjectsValidationError ¶ added in v0.4.1
type SubjectsValidationError struct {
// contains filtered or unexported fields
}
SubjectsValidationError is the validation error returned by Subjects.Validate if the designated constraints aren't met.
func (SubjectsValidationError) Cause ¶ added in v0.4.1
func (e SubjectsValidationError) Cause() error
Cause function returns cause value.
func (SubjectsValidationError) Error ¶ added in v0.4.1
func (e SubjectsValidationError) Error() string
Error satisfies the builtin error interface
func (SubjectsValidationError) ErrorName ¶ added in v0.4.1
func (e SubjectsValidationError) ErrorName() string
ErrorName returns error name.
func (SubjectsValidationError) Field ¶ added in v0.4.1
func (e SubjectsValidationError) Field() string
Field function returns field value.
func (SubjectsValidationError) Key ¶ added in v0.4.1
func (e SubjectsValidationError) Key() bool
Key function returns key value.
func (SubjectsValidationError) Reason ¶ added in v0.4.1
func (e SubjectsValidationError) Reason() string
Reason function returns reason value.
type Tuple ¶
type Tuple struct { Entity *Entity `protobuf:"bytes,1,opt,name=entity,proto3" json:"entity,omitempty"` Relation string `protobuf:"bytes,2,opt,name=relation,proto3" json:"relation,omitempty"` Subject *Subject `protobuf:"bytes,3,opt,name=subject,proto3" json:"subject,omitempty"` // contains filtered or unexported fields }
Tuple
func (*Tuple) Descriptor
deprecated
func (*Tuple) GetRelation ¶
func (*Tuple) GetSubject ¶
func (*Tuple) ProtoMessage ¶
func (*Tuple) ProtoMessage()
func (*Tuple) ProtoReflect ¶
func (x *Tuple) ProtoReflect() protoreflect.Message
func (*Tuple) Validate ¶
Validate checks the field values on Tuple 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 (*Tuple) ValidateAll ¶
ValidateAll checks the field values on Tuple 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 TupleMultiError, or nil if none found.
type TupleFilter ¶
type TupleFilter struct { Entity *EntityFilter `protobuf:"bytes,1,opt,name=entity,proto3" json:"entity,omitempty"` Relation string `protobuf:"bytes,2,opt,name=relation,proto3" json:"relation,omitempty"` Subject *SubjectFilter `protobuf:"bytes,3,opt,name=subject,proto3" json:"subject,omitempty"` // contains filtered or unexported fields }
func (*TupleFilter) Descriptor
deprecated
func (*TupleFilter) Descriptor() ([]byte, []int)
Deprecated: Use TupleFilter.ProtoReflect.Descriptor instead.
func (*TupleFilter) GetEntity ¶
func (x *TupleFilter) GetEntity() *EntityFilter
func (*TupleFilter) GetRelation ¶
func (x *TupleFilter) GetRelation() string
func (*TupleFilter) GetSubject ¶
func (x *TupleFilter) GetSubject() *SubjectFilter
func (*TupleFilter) ProtoMessage ¶
func (*TupleFilter) ProtoMessage()
func (*TupleFilter) ProtoReflect ¶
func (x *TupleFilter) ProtoReflect() protoreflect.Message
func (*TupleFilter) Reset ¶
func (x *TupleFilter) Reset()
func (*TupleFilter) String ¶
func (x *TupleFilter) String() string
func (*TupleFilter) Validate ¶
func (m *TupleFilter) Validate() error
Validate checks the field values on TupleFilter 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 (*TupleFilter) ValidateAll ¶
func (m *TupleFilter) ValidateAll() error
ValidateAll checks the field values on TupleFilter 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 TupleFilterMultiError, or nil if none found.
type TupleFilterMultiError ¶
type TupleFilterMultiError []error
TupleFilterMultiError is an error wrapping multiple validation errors returned by TupleFilter.ValidateAll() if the designated constraints aren't met.
func (TupleFilterMultiError) AllErrors ¶
func (m TupleFilterMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (TupleFilterMultiError) Error ¶
func (m TupleFilterMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type TupleFilterValidationError ¶
type TupleFilterValidationError struct {
// contains filtered or unexported fields
}
TupleFilterValidationError is the validation error returned by TupleFilter.Validate if the designated constraints aren't met.
func (TupleFilterValidationError) Cause ¶
func (e TupleFilterValidationError) Cause() error
Cause function returns cause value.
func (TupleFilterValidationError) Error ¶
func (e TupleFilterValidationError) Error() string
Error satisfies the builtin error interface
func (TupleFilterValidationError) ErrorName ¶
func (e TupleFilterValidationError) ErrorName() string
ErrorName returns error name.
func (TupleFilterValidationError) Field ¶
func (e TupleFilterValidationError) Field() string
Field function returns field value.
func (TupleFilterValidationError) Key ¶
func (e TupleFilterValidationError) Key() bool
Key function returns key value.
func (TupleFilterValidationError) Reason ¶
func (e TupleFilterValidationError) Reason() string
Reason function returns reason value.
type TupleMultiError ¶
type TupleMultiError []error
TupleMultiError is an error wrapping multiple validation errors returned by Tuple.ValidateAll() if the designated constraints aren't met.
func (TupleMultiError) AllErrors ¶
func (m TupleMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (TupleMultiError) Error ¶
func (m TupleMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type TupleToUserSet ¶
type TupleToUserSet struct { Relation string `protobuf:"bytes,1,opt,name=relation,proto3" json:"relation,omitempty"` // contains filtered or unexported fields }
TupleToUserSet
func (*TupleToUserSet) Descriptor
deprecated
func (*TupleToUserSet) Descriptor() ([]byte, []int)
Deprecated: Use TupleToUserSet.ProtoReflect.Descriptor instead.
func (*TupleToUserSet) GetRelation ¶
func (x *TupleToUserSet) GetRelation() string
func (*TupleToUserSet) ProtoMessage ¶
func (*TupleToUserSet) ProtoMessage()
func (*TupleToUserSet) ProtoReflect ¶
func (x *TupleToUserSet) ProtoReflect() protoreflect.Message
func (*TupleToUserSet) Reset ¶
func (x *TupleToUserSet) Reset()
func (*TupleToUserSet) String ¶
func (x *TupleToUserSet) String() string
func (*TupleToUserSet) Validate ¶
func (m *TupleToUserSet) Validate() error
Validate checks the field values on TupleToUserSet 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 (*TupleToUserSet) ValidateAll ¶
func (m *TupleToUserSet) ValidateAll() error
ValidateAll checks the field values on TupleToUserSet 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 TupleToUserSetMultiError, or nil if none found.
type TupleToUserSetMultiError ¶
type TupleToUserSetMultiError []error
TupleToUserSetMultiError is an error wrapping multiple validation errors returned by TupleToUserSet.ValidateAll() if the designated constraints aren't met.
func (TupleToUserSetMultiError) AllErrors ¶
func (m TupleToUserSetMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (TupleToUserSetMultiError) Error ¶
func (m TupleToUserSetMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type TupleToUserSetValidationError ¶
type TupleToUserSetValidationError struct {
// contains filtered or unexported fields
}
TupleToUserSetValidationError is the validation error returned by TupleToUserSet.Validate if the designated constraints aren't met.
func (TupleToUserSetValidationError) Cause ¶
func (e TupleToUserSetValidationError) Cause() error
Cause function returns cause value.
func (TupleToUserSetValidationError) Error ¶
func (e TupleToUserSetValidationError) Error() string
Error satisfies the builtin error interface
func (TupleToUserSetValidationError) ErrorName ¶
func (e TupleToUserSetValidationError) ErrorName() string
ErrorName returns error name.
func (TupleToUserSetValidationError) Field ¶
func (e TupleToUserSetValidationError) Field() string
Field function returns field value.
func (TupleToUserSetValidationError) Key ¶
func (e TupleToUserSetValidationError) Key() bool
Key function returns key value.
func (TupleToUserSetValidationError) Reason ¶
func (e TupleToUserSetValidationError) Reason() string
Reason function returns reason value.
type TupleValidationError ¶
type TupleValidationError struct {
// contains filtered or unexported fields
}
TupleValidationError is the validation error returned by Tuple.Validate if the designated constraints aren't met.
func (TupleValidationError) Cause ¶
func (e TupleValidationError) Cause() error
Cause function returns cause value.
func (TupleValidationError) Error ¶
func (e TupleValidationError) Error() string
Error satisfies the builtin error interface
func (TupleValidationError) ErrorName ¶
func (e TupleValidationError) ErrorName() string
ErrorName returns error name.
func (TupleValidationError) Field ¶
func (e TupleValidationError) Field() string
Field function returns field value.
func (TupleValidationError) Key ¶
func (e TupleValidationError) Key() bool
Key function returns key value.
func (TupleValidationError) Reason ¶
func (e TupleValidationError) Reason() string
Reason function returns reason value.
type Tuples ¶
type Tuples struct { Tuples []*Tuple `protobuf:"bytes,1,rep,name=tuples,proto3" json:"tuples,omitempty"` // contains filtered or unexported fields }
Tuples
func (*Tuples) Descriptor
deprecated
func (*Tuples) ProtoMessage ¶
func (*Tuples) ProtoMessage()
func (*Tuples) ProtoReflect ¶
func (x *Tuples) ProtoReflect() protoreflect.Message
func (*Tuples) Validate ¶
Validate checks the field values on Tuples 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 (*Tuples) ValidateAll ¶
ValidateAll checks the field values on Tuples 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 TuplesMultiError, or nil if none found.
type TuplesMultiError ¶
type TuplesMultiError []error
TuplesMultiError is an error wrapping multiple validation errors returned by Tuples.ValidateAll() if the designated constraints aren't met.
func (TuplesMultiError) AllErrors ¶
func (m TuplesMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (TuplesMultiError) Error ¶
func (m TuplesMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type TuplesValidationError ¶
type TuplesValidationError struct {
// contains filtered or unexported fields
}
TuplesValidationError is the validation error returned by Tuples.Validate if the designated constraints aren't met.
func (TuplesValidationError) Cause ¶
func (e TuplesValidationError) Cause() error
Cause function returns cause value.
func (TuplesValidationError) Error ¶
func (e TuplesValidationError) Error() string
Error satisfies the builtin error interface
func (TuplesValidationError) ErrorName ¶
func (e TuplesValidationError) ErrorName() string
ErrorName returns error name.
func (TuplesValidationError) Field ¶
func (e TuplesValidationError) Field() string
Field function returns field value.
func (TuplesValidationError) Key ¶
func (e TuplesValidationError) Key() bool
Key function returns key value.
func (TuplesValidationError) Reason ¶
func (e TuplesValidationError) Reason() string
Reason function returns reason value.
type UnimplementedPermissionAPIServer ¶
type UnimplementedPermissionAPIServer struct { }
UnimplementedPermissionAPIServer must be embedded to have forward compatible implementations.
func (UnimplementedPermissionAPIServer) Check ¶
func (UnimplementedPermissionAPIServer) Check(context.Context, *CheckRequest) (*CheckResponse, error)
func (UnimplementedPermissionAPIServer) Expand ¶
func (UnimplementedPermissionAPIServer) Expand(context.Context, *ExpandRequest) (*ExpandResponse, error)
func (UnimplementedPermissionAPIServer) LookupQuery ¶
func (UnimplementedPermissionAPIServer) LookupQuery(context.Context, *LookupQueryRequest) (*LookupQueryResponse, error)
type UnimplementedRelationshipAPIServer ¶
type UnimplementedRelationshipAPIServer struct { }
UnimplementedRelationshipAPIServer must be embedded to have forward compatible implementations.
func (UnimplementedRelationshipAPIServer) Delete ¶
func (UnimplementedRelationshipAPIServer) Delete(context.Context, *RelationshipDeleteRequest) (*RelationshipDeleteResponse, error)
type UnimplementedSchemaAPIServer ¶
type UnimplementedSchemaAPIServer struct { }
UnimplementedSchemaAPIServer must be embedded to have forward compatible implementations.
func (UnimplementedSchemaAPIServer) Lookup ¶
func (UnimplementedSchemaAPIServer) Lookup(context.Context, *SchemaLookupRequest) (*SchemaLookupResponse, error)
func (UnimplementedSchemaAPIServer) Read ¶
func (UnimplementedSchemaAPIServer) Read(context.Context, *SchemaReadRequest) (*SchemaReadResponse, error)
func (UnimplementedSchemaAPIServer) Write ¶
func (UnimplementedSchemaAPIServer) Write(context.Context, *SchemaWriteRequest) (*SchemaWriteResponse, error)
type UnsafePermissionAPIServer ¶
type UnsafePermissionAPIServer interface {
// contains filtered or unexported methods
}
UnsafePermissionAPIServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PermissionAPIServer will result in compilation errors.
type UnsafeRelationshipAPIServer ¶
type UnsafeRelationshipAPIServer interface {
// contains filtered or unexported methods
}
UnsafeRelationshipAPIServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RelationshipAPIServer will result in compilation errors.
type UnsafeSchemaAPIServer ¶
type UnsafeSchemaAPIServer interface {
// contains filtered or unexported methods
}
UnsafeSchemaAPIServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SchemaAPIServer will result in compilation errors.