Documentation ¶
Index ¶
- Variables
- func RegisterACLServiceServer(s grpc.ServiceRegistrar, srv ACLServiceServer)
- func RegisterDeveloperServiceServer(s grpc.ServiceRegistrar, srv DeveloperServiceServer)
- func RegisterNamespaceServiceServer(s grpc.ServiceRegistrar, srv NamespaceServiceServer)
- func RegisterWatchServiceServer(s grpc.ServiceRegistrar, srv WatchServiceServer)
- type ACLServiceClient
- type ACLServiceServer
- type CheckRequest
- func (*CheckRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CheckRequest) GetAtRevision() *Zookie
- func (x *CheckRequest) GetTestUserset() *ObjectAndRelation
- func (x *CheckRequest) GetUser() *User
- func (*CheckRequest) ProtoMessage()
- func (x *CheckRequest) ProtoReflect() protoreflect.Message
- func (x *CheckRequest) Reset()
- func (x *CheckRequest) String() string
- type CheckResponse
- func (*CheckResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CheckResponse) GetIsMember() bool
- func (x *CheckResponse) GetMembership() CheckResponse_Membership
- func (x *CheckResponse) GetRevision() *Zookie
- func (*CheckResponse) ProtoMessage()
- func (x *CheckResponse) ProtoReflect() protoreflect.Message
- func (x *CheckResponse) Reset()
- func (x *CheckResponse) String() string
- type CheckResponse_Membership
- func (CheckResponse_Membership) Descriptor() protoreflect.EnumDescriptor
- func (x CheckResponse_Membership) Enum() *CheckResponse_Membership
- func (CheckResponse_Membership) EnumDescriptor() ([]byte, []int)deprecated
- func (x CheckResponse_Membership) Number() protoreflect.EnumNumber
- func (x CheckResponse_Membership) String() string
- func (CheckResponse_Membership) Type() protoreflect.EnumType
- type ComputedUserset
- func (*ComputedUserset) Descriptor() ([]byte, []int)deprecated
- func (x *ComputedUserset) GetObject() ComputedUserset_Object
- func (x *ComputedUserset) GetRelation() string
- func (*ComputedUserset) ProtoMessage()
- func (x *ComputedUserset) ProtoReflect() protoreflect.Message
- func (x *ComputedUserset) Reset()
- func (x *ComputedUserset) String() string
- type ComputedUserset_Object
- func (ComputedUserset_Object) Descriptor() protoreflect.EnumDescriptor
- func (x ComputedUserset_Object) Enum() *ComputedUserset_Object
- func (ComputedUserset_Object) EnumDescriptor() ([]byte, []int)deprecated
- func (x ComputedUserset_Object) Number() protoreflect.EnumNumber
- func (x ComputedUserset_Object) String() string
- func (ComputedUserset_Object) Type() protoreflect.EnumType
- type ContentChangeCheckRequest
- func (*ContentChangeCheckRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ContentChangeCheckRequest) GetTestUserset() *ObjectAndRelation
- func (x *ContentChangeCheckRequest) GetUser() *User
- func (*ContentChangeCheckRequest) ProtoMessage()
- func (x *ContentChangeCheckRequest) ProtoReflect() protoreflect.Message
- func (x *ContentChangeCheckRequest) Reset()
- func (x *ContentChangeCheckRequest) String() string
- type DeveloperServiceClient
- type DeveloperServiceServer
- type DirectUserset
- type EditCheckRequest
- func (*EditCheckRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EditCheckRequest) GetCheckTuples() []*RelationTuple
- func (x *EditCheckRequest) GetContext() *RequestContext
- func (*EditCheckRequest) ProtoMessage()
- func (x *EditCheckRequest) ProtoReflect() protoreflect.Message
- func (x *EditCheckRequest) Reset()
- func (x *EditCheckRequest) String() string
- type EditCheckResponse
- func (*EditCheckResponse) Descriptor() ([]byte, []int)deprecated
- func (x *EditCheckResponse) GetAdditionalErrors() []*ValidationError
- func (x *EditCheckResponse) GetCheckResults() []*EditCheckResult
- func (x *EditCheckResponse) GetContextNamespaces() []*NamespaceInformation
- func (*EditCheckResponse) ProtoMessage()
- func (x *EditCheckResponse) ProtoReflect() protoreflect.Message
- func (x *EditCheckResponse) Reset()
- func (x *EditCheckResponse) String() string
- type EditCheckResult
- func (*EditCheckResult) Descriptor() ([]byte, []int)deprecated
- func (x *EditCheckResult) GetError() *ValidationError
- func (x *EditCheckResult) GetIsMember() bool
- func (x *EditCheckResult) GetTuple() *RelationTuple
- func (*EditCheckResult) ProtoMessage()
- func (x *EditCheckResult) ProtoReflect() protoreflect.Message
- func (x *EditCheckResult) Reset()
- func (x *EditCheckResult) String() string
- type ExpandRequest
- func (*ExpandRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ExpandRequest) GetAtRevision() *Zookie
- func (x *ExpandRequest) GetUserset() *ObjectAndRelation
- func (*ExpandRequest) ProtoMessage()
- func (x *ExpandRequest) ProtoReflect() protoreflect.Message
- func (x *ExpandRequest) Reset()
- func (x *ExpandRequest) String() string
- type ExpandResponse
- func (*ExpandResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ExpandResponse) GetRevision() *Zookie
- func (x *ExpandResponse) GetTreeNode() *RelationTupleTreeNode
- func (*ExpandResponse) ProtoMessage()
- func (x *ExpandResponse) ProtoReflect() protoreflect.Message
- func (x *ExpandResponse) Reset()
- func (x *ExpandResponse) String() string
- type LookupShareRequest
- func (*LookupShareRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LookupShareRequest) GetShareReference() string
- func (*LookupShareRequest) ProtoMessage()
- func (x *LookupShareRequest) ProtoReflect() protoreflect.Message
- func (x *LookupShareRequest) Reset()
- func (x *LookupShareRequest) String() string
- type LookupShareResponse
- func (*LookupShareResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LookupShareResponse) GetAssertionsYaml() string
- func (x *LookupShareResponse) GetNamespaceConfigs() []string
- func (x *LookupShareResponse) GetRelationTuples() string
- func (x *LookupShareResponse) GetStatus() LookupShareResponse_LookupStatus
- func (x *LookupShareResponse) GetValidationYaml() string
- func (*LookupShareResponse) ProtoMessage()
- func (x *LookupShareResponse) ProtoReflect() protoreflect.Message
- func (x *LookupShareResponse) Reset()
- func (x *LookupShareResponse) String() string
- type LookupShareResponse_LookupStatus
- func (LookupShareResponse_LookupStatus) Descriptor() protoreflect.EnumDescriptor
- func (x LookupShareResponse_LookupStatus) Enum() *LookupShareResponse_LookupStatus
- func (LookupShareResponse_LookupStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x LookupShareResponse_LookupStatus) Number() protoreflect.EnumNumber
- func (x LookupShareResponse_LookupStatus) String() string
- func (LookupShareResponse_LookupStatus) Type() protoreflect.EnumType
- type NamespaceContext
- func (*NamespaceContext) Descriptor() ([]byte, []int)deprecated
- func (x *NamespaceContext) GetConfig() string
- func (x *NamespaceContext) GetHandle() string
- func (*NamespaceContext) ProtoMessage()
- func (x *NamespaceContext) ProtoReflect() protoreflect.Message
- func (x *NamespaceContext) Reset()
- func (x *NamespaceContext) String() string
- type NamespaceDefinition
- func (*NamespaceDefinition) Descriptor() ([]byte, []int)deprecated
- func (x *NamespaceDefinition) GetName() string
- func (x *NamespaceDefinition) GetRelation() []*Relation
- func (*NamespaceDefinition) ProtoMessage()
- func (x *NamespaceDefinition) ProtoReflect() protoreflect.Message
- func (x *NamespaceDefinition) Reset()
- func (x *NamespaceDefinition) String() string
- type NamespaceInformation
- func (*NamespaceInformation) Descriptor() ([]byte, []int)deprecated
- func (x *NamespaceInformation) GetErrors() []*ValidationError
- func (x *NamespaceInformation) GetHandle() string
- func (x *NamespaceInformation) GetParsed() *NamespaceDefinition
- func (*NamespaceInformation) ProtoMessage()
- func (x *NamespaceInformation) ProtoReflect() protoreflect.Message
- func (x *NamespaceInformation) Reset()
- func (x *NamespaceInformation) String() string
- type NamespaceServiceClient
- type NamespaceServiceServer
- type ObjectAndRelation
- func (*ObjectAndRelation) Descriptor() ([]byte, []int)deprecated
- func (x *ObjectAndRelation) GetNamespace() string
- func (x *ObjectAndRelation) GetObjectId() string
- func (x *ObjectAndRelation) GetRelation() string
- func (*ObjectAndRelation) ProtoMessage()
- func (x *ObjectAndRelation) ProtoReflect() protoreflect.Message
- func (x *ObjectAndRelation) Reset()
- func (x *ObjectAndRelation) String() string
- type ReadConfigRequest
- func (*ReadConfigRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ReadConfigRequest) GetAtRevision() *Zookie
- func (x *ReadConfigRequest) GetNamespace() string
- func (*ReadConfigRequest) ProtoMessage()
- func (x *ReadConfigRequest) ProtoReflect() protoreflect.Message
- func (x *ReadConfigRequest) Reset()
- func (x *ReadConfigRequest) String() string
- type ReadConfigResponse
- func (*ReadConfigResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ReadConfigResponse) GetConfig() *NamespaceDefinition
- func (x *ReadConfigResponse) GetNamespace() string
- func (x *ReadConfigResponse) GetRevision() *Zookie
- func (*ReadConfigResponse) ProtoMessage()
- func (x *ReadConfigResponse) ProtoReflect() protoreflect.Message
- func (x *ReadConfigResponse) Reset()
- func (x *ReadConfigResponse) String() string
- type ReadRequest
- func (*ReadRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ReadRequest) GetAtRevision() *Zookie
- func (x *ReadRequest) GetTuplesets() []*RelationTupleFilter
- func (*ReadRequest) ProtoMessage()
- func (x *ReadRequest) ProtoReflect() protoreflect.Message
- func (x *ReadRequest) Reset()
- func (x *ReadRequest) String() string
- type ReadResponse
- func (*ReadResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ReadResponse) GetRevision() *Zookie
- func (x *ReadResponse) GetTuplesets() []*ReadResponse_Tupleset
- func (*ReadResponse) ProtoMessage()
- func (x *ReadResponse) ProtoReflect() protoreflect.Message
- func (x *ReadResponse) Reset()
- func (x *ReadResponse) String() string
- type ReadResponse_Tupleset
- func (*ReadResponse_Tupleset) Descriptor() ([]byte, []int)deprecated
- func (x *ReadResponse_Tupleset) GetTuples() []*RelationTuple
- func (*ReadResponse_Tupleset) ProtoMessage()
- func (x *ReadResponse_Tupleset) ProtoReflect() protoreflect.Message
- func (x *ReadResponse_Tupleset) Reset()
- func (x *ReadResponse_Tupleset) String() string
- type Relation
- type RelationTuple
- func (*RelationTuple) Descriptor() ([]byte, []int)deprecated
- func (x *RelationTuple) GetObjectAndRelation() *ObjectAndRelation
- func (x *RelationTuple) GetUser() *User
- func (*RelationTuple) ProtoMessage()
- func (x *RelationTuple) ProtoReflect() protoreflect.Message
- func (x *RelationTuple) Reset()
- func (x *RelationTuple) String() string
- type RelationTupleFilter
- func (*RelationTupleFilter) Descriptor() ([]byte, []int)deprecated
- func (x *RelationTupleFilter) GetFilters() []RelationTupleFilter_Filter
- func (x *RelationTupleFilter) GetNamespace() string
- func (x *RelationTupleFilter) GetObjectId() string
- func (x *RelationTupleFilter) GetRelation() string
- func (x *RelationTupleFilter) GetUserset() *ObjectAndRelation
- func (*RelationTupleFilter) ProtoMessage()
- func (x *RelationTupleFilter) ProtoReflect() protoreflect.Message
- func (x *RelationTupleFilter) Reset()
- func (x *RelationTupleFilter) String() string
- type RelationTupleFilter_Filter
- func (RelationTupleFilter_Filter) Descriptor() protoreflect.EnumDescriptor
- func (x RelationTupleFilter_Filter) Enum() *RelationTupleFilter_Filter
- func (RelationTupleFilter_Filter) EnumDescriptor() ([]byte, []int)deprecated
- func (x RelationTupleFilter_Filter) Number() protoreflect.EnumNumber
- func (x RelationTupleFilter_Filter) String() string
- func (RelationTupleFilter_Filter) Type() protoreflect.EnumType
- type RelationTupleTreeNode
- func (*RelationTupleTreeNode) Descriptor() ([]byte, []int)deprecated
- func (x *RelationTupleTreeNode) GetExpanded() *ObjectAndRelation
- func (x *RelationTupleTreeNode) GetIntermediateNode() *SetOperationUserset
- func (x *RelationTupleTreeNode) GetLeafNode() *DirectUserset
- func (m *RelationTupleTreeNode) GetNodeType() isRelationTupleTreeNode_NodeType
- func (*RelationTupleTreeNode) ProtoMessage()
- func (x *RelationTupleTreeNode) ProtoReflect() protoreflect.Message
- func (x *RelationTupleTreeNode) Reset()
- func (x *RelationTupleTreeNode) String() string
- type RelationTupleTreeNode_IntermediateNode
- type RelationTupleTreeNode_LeafNode
- type RelationTupleUpdate
- func (*RelationTupleUpdate) Descriptor() ([]byte, []int)deprecated
- func (x *RelationTupleUpdate) GetOperation() RelationTupleUpdate_Operation
- func (x *RelationTupleUpdate) GetTuple() *RelationTuple
- func (*RelationTupleUpdate) ProtoMessage()
- func (x *RelationTupleUpdate) ProtoReflect() protoreflect.Message
- func (x *RelationTupleUpdate) Reset()
- func (x *RelationTupleUpdate) String() string
- type RelationTupleUpdate_Operation
- func (RelationTupleUpdate_Operation) Descriptor() protoreflect.EnumDescriptor
- func (x RelationTupleUpdate_Operation) Enum() *RelationTupleUpdate_Operation
- func (RelationTupleUpdate_Operation) EnumDescriptor() ([]byte, []int)deprecated
- func (x RelationTupleUpdate_Operation) Number() protoreflect.EnumNumber
- func (x RelationTupleUpdate_Operation) String() string
- func (RelationTupleUpdate_Operation) Type() protoreflect.EnumType
- type RequestContext
- func (*RequestContext) Descriptor() ([]byte, []int)deprecated
- func (x *RequestContext) GetNamespaces() []*NamespaceContext
- func (x *RequestContext) GetTuples() []*RelationTuple
- func (*RequestContext) ProtoMessage()
- func (x *RequestContext) ProtoReflect() protoreflect.Message
- func (x *RequestContext) Reset()
- func (x *RequestContext) String() string
- type SetOperation
- type SetOperationUserset
- func (*SetOperationUserset) Descriptor() ([]byte, []int)deprecated
- func (x *SetOperationUserset) GetChildNodes() []*RelationTupleTreeNode
- func (x *SetOperationUserset) GetOperation() SetOperationUserset_Operation
- func (*SetOperationUserset) ProtoMessage()
- func (x *SetOperationUserset) ProtoReflect() protoreflect.Message
- func (x *SetOperationUserset) Reset()
- func (x *SetOperationUserset) String() string
- type SetOperationUserset_Operation
- func (SetOperationUserset_Operation) Descriptor() protoreflect.EnumDescriptor
- func (x SetOperationUserset_Operation) Enum() *SetOperationUserset_Operation
- func (SetOperationUserset_Operation) EnumDescriptor() ([]byte, []int)deprecated
- func (x SetOperationUserset_Operation) Number() protoreflect.EnumNumber
- func (x SetOperationUserset_Operation) String() string
- func (SetOperationUserset_Operation) Type() protoreflect.EnumType
- type SetOperation_Child
- func (*SetOperation_Child) Descriptor() ([]byte, []int)deprecated
- func (m *SetOperation_Child) GetChildType() isSetOperation_Child_ChildType
- func (x *SetOperation_Child) GetComputedUserset() *ComputedUserset
- func (x *SetOperation_Child) GetTupleToUserset() *TupleToUserset
- func (x *SetOperation_Child) GetUsersetRewrite() *UsersetRewrite
- func (x *SetOperation_Child) GetXThis() *SetOperation_Child_This
- func (*SetOperation_Child) ProtoMessage()
- func (x *SetOperation_Child) ProtoReflect() protoreflect.Message
- func (x *SetOperation_Child) Reset()
- func (x *SetOperation_Child) String() string
- type SetOperation_Child_ComputedUserset
- type SetOperation_Child_This
- type SetOperation_Child_TupleToUserset
- type SetOperation_Child_UsersetRewrite
- type SetOperation_Child_XThis
- type ShareRequest
- func (*ShareRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ShareRequest) GetAssertionsYaml() string
- func (x *ShareRequest) GetNamespaceConfigs() []string
- func (x *ShareRequest) GetRelationTuples() string
- func (x *ShareRequest) GetValidationYaml() string
- func (*ShareRequest) ProtoMessage()
- func (x *ShareRequest) ProtoReflect() protoreflect.Message
- func (x *ShareRequest) Reset()
- func (x *ShareRequest) String() string
- type ShareResponse
- type TupleToUserset
- func (*TupleToUserset) Descriptor() ([]byte, []int)deprecated
- func (x *TupleToUserset) GetComputedUserset() *ComputedUserset
- func (x *TupleToUserset) GetTupleset() *TupleToUserset_Tupleset
- func (*TupleToUserset) ProtoMessage()
- func (x *TupleToUserset) ProtoReflect() protoreflect.Message
- func (x *TupleToUserset) Reset()
- func (x *TupleToUserset) String() string
- type TupleToUserset_Tupleset
- func (*TupleToUserset_Tupleset) Descriptor() ([]byte, []int)deprecated
- func (x *TupleToUserset_Tupleset) GetRelation() string
- func (*TupleToUserset_Tupleset) ProtoMessage()
- func (x *TupleToUserset_Tupleset) ProtoReflect() protoreflect.Message
- func (x *TupleToUserset_Tupleset) Reset()
- func (x *TupleToUserset_Tupleset) String() string
- type UnimplementedACLServiceServer
- func (UnimplementedACLServiceServer) Check(context.Context, *CheckRequest) (*CheckResponse, error)
- func (UnimplementedACLServiceServer) ContentChangeCheck(context.Context, *ContentChangeCheckRequest) (*CheckResponse, error)
- func (UnimplementedACLServiceServer) Expand(context.Context, *ExpandRequest) (*ExpandResponse, error)
- func (UnimplementedACLServiceServer) Read(context.Context, *ReadRequest) (*ReadResponse, error)
- func (UnimplementedACLServiceServer) Write(context.Context, *WriteRequest) (*WriteResponse, error)
- type UnimplementedDeveloperServiceServer
- func (UnimplementedDeveloperServiceServer) EditCheck(context.Context, *EditCheckRequest) (*EditCheckResponse, error)
- func (UnimplementedDeveloperServiceServer) LookupShared(context.Context, *LookupShareRequest) (*LookupShareResponse, error)
- func (UnimplementedDeveloperServiceServer) Share(context.Context, *ShareRequest) (*ShareResponse, error)
- func (UnimplementedDeveloperServiceServer) Validate(context.Context, *ValidateRequest) (*ValidateResponse, error)
- type UnimplementedNamespaceServiceServer
- type UnimplementedWatchServiceServer
- type UnsafeACLServiceServer
- type UnsafeDeveloperServiceServer
- type UnsafeNamespaceServiceServer
- type UnsafeWatchServiceServer
- type User
- type User_Userset
- type UsersetRewrite
- func (*UsersetRewrite) Descriptor() ([]byte, []int)deprecated
- func (x *UsersetRewrite) GetExclusion() *SetOperation
- func (x *UsersetRewrite) GetIntersection() *SetOperation
- func (m *UsersetRewrite) GetRewriteOperation() isUsersetRewrite_RewriteOperation
- func (x *UsersetRewrite) GetUnion() *SetOperation
- func (*UsersetRewrite) ProtoMessage()
- func (x *UsersetRewrite) ProtoReflect() protoreflect.Message
- func (x *UsersetRewrite) Reset()
- func (x *UsersetRewrite) String() string
- type UsersetRewrite_Exclusion
- type UsersetRewrite_Intersection
- type UsersetRewrite_Union
- type ValidateRequest
- func (*ValidateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ValidateRequest) GetAssertionsYaml() string
- func (x *ValidateRequest) GetContext() *RequestContext
- func (x *ValidateRequest) GetUpdateValidationYaml() bool
- func (x *ValidateRequest) GetValidationYaml() string
- func (*ValidateRequest) ProtoMessage()
- func (x *ValidateRequest) ProtoReflect() protoreflect.Message
- func (x *ValidateRequest) Reset()
- func (x *ValidateRequest) String() string
- type ValidateResponse
- func (*ValidateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ValidateResponse) GetContextNamespaces() []*NamespaceInformation
- func (x *ValidateResponse) GetUpdatedValidationYaml() string
- func (x *ValidateResponse) GetValidationErrors() []*ValidationError
- func (*ValidateResponse) ProtoMessage()
- func (x *ValidateResponse) ProtoReflect() protoreflect.Message
- func (x *ValidateResponse) Reset()
- func (x *ValidateResponse) String() string
- type ValidationError
- func (*ValidationError) Descriptor() ([]byte, []int)deprecated
- func (x *ValidationError) GetColumn() uint32
- func (x *ValidationError) GetKind() ValidationError_ErrorKind
- func (x *ValidationError) GetLine() uint32
- func (x *ValidationError) GetMessage() string
- func (x *ValidationError) GetMetadata() string
- func (x *ValidationError) GetPath() []string
- func (x *ValidationError) GetSource() ValidationError_Source
- func (*ValidationError) ProtoMessage()
- func (x *ValidationError) ProtoReflect() protoreflect.Message
- func (x *ValidationError) Reset()
- func (x *ValidationError) String() string
- type ValidationError_ErrorKind
- func (ValidationError_ErrorKind) Descriptor() protoreflect.EnumDescriptor
- func (x ValidationError_ErrorKind) Enum() *ValidationError_ErrorKind
- func (ValidationError_ErrorKind) EnumDescriptor() ([]byte, []int)deprecated
- func (x ValidationError_ErrorKind) Number() protoreflect.EnumNumber
- func (x ValidationError_ErrorKind) String() string
- func (ValidationError_ErrorKind) Type() protoreflect.EnumType
- type ValidationError_Source
- func (ValidationError_Source) Descriptor() protoreflect.EnumDescriptor
- func (x ValidationError_Source) Enum() *ValidationError_Source
- func (ValidationError_Source) EnumDescriptor() ([]byte, []int)deprecated
- func (x ValidationError_Source) Number() protoreflect.EnumNumber
- func (x ValidationError_Source) String() string
- func (ValidationError_Source) Type() protoreflect.EnumType
- type WatchRequest
- func (*WatchRequest) Descriptor() ([]byte, []int)deprecated
- func (x *WatchRequest) GetNamespaces() []string
- func (x *WatchRequest) GetStartRevision() *Zookie
- func (*WatchRequest) ProtoMessage()
- func (x *WatchRequest) ProtoReflect() protoreflect.Message
- func (x *WatchRequest) Reset()
- func (x *WatchRequest) String() string
- type WatchResponse
- func (*WatchResponse) Descriptor() ([]byte, []int)deprecated
- func (x *WatchResponse) GetEndRevision() *Zookie
- func (x *WatchResponse) GetUpdates() []*RelationTupleUpdate
- func (*WatchResponse) ProtoMessage()
- func (x *WatchResponse) ProtoReflect() protoreflect.Message
- func (x *WatchResponse) Reset()
- func (x *WatchResponse) String() string
- type WatchServiceClient
- type WatchServiceServer
- type WatchService_WatchClient
- type WatchService_WatchServer
- type WriteConfigRequest
- func (*WriteConfigRequest) Descriptor() ([]byte, []int)deprecated
- func (x *WriteConfigRequest) GetConfig() *NamespaceDefinition
- func (*WriteConfigRequest) ProtoMessage()
- func (x *WriteConfigRequest) ProtoReflect() protoreflect.Message
- func (x *WriteConfigRequest) Reset()
- func (x *WriteConfigRequest) String() string
- type WriteConfigResponse
- func (*WriteConfigResponse) Descriptor() ([]byte, []int)deprecated
- func (x *WriteConfigResponse) GetRevision() *Zookie
- func (*WriteConfigResponse) ProtoMessage()
- func (x *WriteConfigResponse) ProtoReflect() protoreflect.Message
- func (x *WriteConfigResponse) Reset()
- func (x *WriteConfigResponse) String() string
- type WriteRequest
- func (*WriteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *WriteRequest) GetUpdates() []*RelationTupleUpdate
- func (x *WriteRequest) GetWriteConditions() []*RelationTuple
- func (*WriteRequest) ProtoMessage()
- func (x *WriteRequest) ProtoReflect() protoreflect.Message
- func (x *WriteRequest) Reset()
- func (x *WriteRequest) String() string
- type WriteResponse
- type Zookie
Constants ¶
This section is empty.
Variables ¶
var ( RelationTupleFilter_Filter_name = map[int32]string{ 0: "UNKNOWN", 1: "OBJECT_ID", 2: "RELATION", 4: "USERSET", } RelationTupleFilter_Filter_value = map[string]int32{ "UNKNOWN": 0, "OBJECT_ID": 1, "RELATION": 2, "USERSET": 4, } )
Enum value maps for RelationTupleFilter_Filter.
var ( CheckResponse_Membership_name = map[int32]string{ 0: "UNKNOWN", 1: "NOT_MEMBER", 2: "MEMBER", } CheckResponse_Membership_value = map[string]int32{ "UNKNOWN": 0, "NOT_MEMBER": 1, "MEMBER": 2, } )
Enum value maps for CheckResponse_Membership.
var ( RelationTupleUpdate_Operation_name = map[int32]string{ 0: "UNKNOWN", 1: "CREATE", 2: "TOUCH", 3: "DELETE", } RelationTupleUpdate_Operation_value = map[string]int32{ "UNKNOWN": 0, "CREATE": 1, "TOUCH": 2, "DELETE": 3, } )
Enum value maps for RelationTupleUpdate_Operation.
var ( SetOperationUserset_Operation_name = map[int32]string{ 0: "INVALID", 1: "UNION", 2: "INTERSECTION", 3: "EXCLUSION", } SetOperationUserset_Operation_value = map[string]int32{ "INVALID": 0, "UNION": 1, "INTERSECTION": 2, "EXCLUSION": 3, } )
Enum value maps for SetOperationUserset_Operation.
var (0: "UNKNOWN_REFERENCE", 1: "FAILED_TO_LOOKUP", 2: "VALID_REFERENCE", } "UNKNOWN_REFERENCE": 0, "FAILED_TO_LOOKUP": 1, "VALID_REFERENCE": 2, } )
Enum value maps for LookupShareResponse_LookupStatus.
var ( ValidationError_Source_name = map[int32]string{ 0: "UNKNOWN_SOURCE", 1: "NAMESPACE_CONFIG", 2: "VALIDATION_TUPLE", 3: "VALIDATION_YAML", 4: "CHECK_WATCH", 5: "ASSERTION", } ValidationError_Source_value = map[string]int32{ "UNKNOWN_SOURCE": 0, "NAMESPACE_CONFIG": 1, "VALIDATION_TUPLE": 2, "VALIDATION_YAML": 3, "CHECK_WATCH": 4, "ASSERTION": 5, } )
Enum value maps for ValidationError_Source.
var ( ValidationError_ErrorKind_name = map[int32]string{ 0: "UNKNOWN_KIND", 1: "PARSE_ERROR", 2: "NAMESPACE_CONFIG_ISSUE", 3: "DUPLICATE_TUPLE", 4: "MISSING_EXPECTED_TUPLE", 5: "EXTRA_TUPLE_FOUND", 6: "UNKNOWN_NAMESPACE", 7: "UNKNOWN_RELATION", 8: "MAXIMUM_RECURSION", 9: "ASSERTION_FAILED", } ValidationError_ErrorKind_value = map[string]int32{ "UNKNOWN_KIND": 0, "PARSE_ERROR": 1, "NAMESPACE_CONFIG_ISSUE": 2, "DUPLICATE_TUPLE": 3, "MISSING_EXPECTED_TUPLE": 4, "EXTRA_TUPLE_FOUND": 5, "UNKNOWN_NAMESPACE": 6, "UNKNOWN_RELATION": 7, "MAXIMUM_RECURSION": 8, "ASSERTION_FAILED": 9, } )
Enum value maps for ValidationError_ErrorKind.
var ( ComputedUserset_Object_name = map[int32]string{ 0: "TUPLE_OBJECT", 1: "TUPLE_USERSET_OBJECT", } ComputedUserset_Object_value = map[string]int32{ "TUPLE_OBJECT": 0, "TUPLE_USERSET_OBJECT": 1, } )
Enum value maps for ComputedUserset_Object.
var ACLService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "ACLService", HandlerType: (*ACLServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Read", Handler: _ACLService_Read_Handler, }, { MethodName: "Write", Handler: _ACLService_Write_Handler, }, { MethodName: "Check", Handler: _ACLService_Check_Handler, }, { MethodName: "ContentChangeCheck", Handler: _ACLService_ContentChangeCheck_Handler, }, { MethodName: "Expand", Handler: _ACLService_Expand_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "arrakisapi/api/acl_service.proto", }
ACLService_ServiceDesc is the grpc.ServiceDesc for ACLService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var DeveloperService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "DeveloperService", HandlerType: (*DeveloperServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "EditCheck", Handler: _DeveloperService_EditCheck_Handler, }, { MethodName: "Validate", Handler: _DeveloperService_Validate_Handler, }, { MethodName: "Share", Handler: _DeveloperService_Share_Handler, }, { MethodName: "LookupShared", Handler: _DeveloperService_LookupShared_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "arrakisapi/api/developer.proto", }
DeveloperService_ServiceDesc is the grpc.ServiceDesc for DeveloperService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_arrakisapi_api_acl_service_proto protoreflect.FileDescriptor
var File_arrakisapi_api_core_proto protoreflect.FileDescriptor
var File_arrakisapi_api_developer_proto protoreflect.FileDescriptor
var File_arrakisapi_api_namespace_proto protoreflect.FileDescriptor
var File_arrakisapi_api_namespace_service_proto protoreflect.FileDescriptor
var File_arrakisapi_api_watch_service_proto protoreflect.FileDescriptor
var NamespaceService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "NamespaceService", HandlerType: (*NamespaceServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ReadConfig", Handler: _NamespaceService_ReadConfig_Handler, }, { MethodName: "WriteConfig", Handler: _NamespaceService_WriteConfig_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "arrakisapi/api/namespace_service.proto", }
NamespaceService_ServiceDesc is the grpc.ServiceDesc for NamespaceService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var WatchService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "WatchService", HandlerType: (*WatchServiceServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "Watch", Handler: _WatchService_Watch_Handler, ServerStreams: true, }, }, Metadata: "arrakisapi/api/watch_service.proto", }
WatchService_ServiceDesc is the grpc.ServiceDesc for WatchService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterACLServiceServer ¶
func RegisterACLServiceServer(s grpc.ServiceRegistrar, srv ACLServiceServer)
func RegisterDeveloperServiceServer ¶
func RegisterDeveloperServiceServer(s grpc.ServiceRegistrar, srv DeveloperServiceServer)
func RegisterNamespaceServiceServer ¶
func RegisterNamespaceServiceServer(s grpc.ServiceRegistrar, srv NamespaceServiceServer)
func RegisterWatchServiceServer ¶
func RegisterWatchServiceServer(s grpc.ServiceRegistrar, srv WatchServiceServer)
Types ¶
type ACLServiceClient ¶
type ACLServiceClient interface { Read(ctx context.Context, in *ReadRequest, opts ...grpc.CallOption) (*ReadResponse, error) Write(ctx context.Context, in *WriteRequest, opts ...grpc.CallOption) (*WriteResponse, error) Check(ctx context.Context, in *CheckRequest, opts ...grpc.CallOption) (*CheckResponse, error) ContentChangeCheck(ctx context.Context, in *ContentChangeCheckRequest, opts ...grpc.CallOption) (*CheckResponse, error) Expand(ctx context.Context, in *ExpandRequest, opts ...grpc.CallOption) (*ExpandResponse, error) }
ACLServiceClient is the client API for ACLService 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 NewACLServiceClient ¶
func NewACLServiceClient(cc grpc.ClientConnInterface) ACLServiceClient
type ACLServiceServer ¶
type ACLServiceServer interface { Read(context.Context, *ReadRequest) (*ReadResponse, error) Write(context.Context, *WriteRequest) (*WriteResponse, error) Check(context.Context, *CheckRequest) (*CheckResponse, error) ContentChangeCheck(context.Context, *ContentChangeCheckRequest) (*CheckResponse, error) Expand(context.Context, *ExpandRequest) (*ExpandResponse, error) // contains filtered or unexported methods }
ACLServiceServer is the server API for ACLService service. All implementations must embed UnimplementedACLServiceServer for forward compatibility
type CheckRequest ¶
type CheckRequest struct { // A check request specifies a userset, represented by ⟨object#relation⟩, // a putative user, often represented by an authentication token, and a // zookie corresponding to the desired object version. TestUserset *ObjectAndRelation `protobuf:"bytes,1,opt,name=test_userset,json=testUserset,proto3" json:"test_userset,omitempty"` User *User `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` // TODO swap for putative user AtRevision *Zookie `protobuf:"bytes,3,opt,name=at_revision,json=atRevision,proto3" json:"at_revision,omitempty"` // contains filtered or unexported fields }
func (*CheckRequest) Descriptor
deprecated
func (*CheckRequest) Descriptor() ([]byte, []int)
Deprecated: Use CheckRequest.ProtoReflect.Descriptor instead.
func (*CheckRequest) GetAtRevision ¶
func (x *CheckRequest) GetAtRevision() *Zookie
func (*CheckRequest) GetTestUserset ¶
func (x *CheckRequest) GetTestUserset() *ObjectAndRelation
func (*CheckRequest) GetUser ¶
func (x *CheckRequest) GetUser() *User
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
type CheckResponse ¶
type CheckResponse struct { IsMember bool `protobuf:"varint,1,opt,name=is_member,json=isMember,proto3" json:"is_member,omitempty"` Revision *Zookie `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` Membership CheckResponse_Membership `protobuf:"varint,3,opt,name=membership,proto3,enum=CheckResponse_Membership" json:"membership,omitempty"` // contains filtered or unexported fields }
func (*CheckResponse) Descriptor
deprecated
func (*CheckResponse) Descriptor() ([]byte, []int)
Deprecated: Use CheckResponse.ProtoReflect.Descriptor instead.
func (*CheckResponse) GetIsMember ¶
func (x *CheckResponse) GetIsMember() bool
func (*CheckResponse) GetMembership ¶
func (x *CheckResponse) GetMembership() CheckResponse_Membership
func (*CheckResponse) GetRevision ¶
func (x *CheckResponse) GetRevision() *Zookie
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
type CheckResponse_Membership ¶
type CheckResponse_Membership int32
const ( CheckResponse_UNKNOWN CheckResponse_Membership = 0 CheckResponse_NOT_MEMBER CheckResponse_Membership = 1 CheckResponse_MEMBER CheckResponse_Membership = 2 )
func (CheckResponse_Membership) Descriptor ¶
func (CheckResponse_Membership) Descriptor() protoreflect.EnumDescriptor
func (CheckResponse_Membership) Enum ¶
func (x CheckResponse_Membership) Enum() *CheckResponse_Membership
func (CheckResponse_Membership) EnumDescriptor
deprecated
func (CheckResponse_Membership) EnumDescriptor() ([]byte, []int)
Deprecated: Use CheckResponse_Membership.Descriptor instead.
func (CheckResponse_Membership) Number ¶
func (x CheckResponse_Membership) Number() protoreflect.EnumNumber
func (CheckResponse_Membership) String ¶
func (x CheckResponse_Membership) String() string
func (CheckResponse_Membership) Type ¶
func (CheckResponse_Membership) Type() protoreflect.EnumType
type ComputedUserset ¶
type ComputedUserset struct { Object ComputedUserset_Object `protobuf:"varint,1,opt,name=object,proto3,enum=ComputedUserset_Object" json:"object,omitempty"` Relation string `protobuf:"bytes,2,opt,name=relation,proto3" json:"relation,omitempty"` // contains filtered or unexported fields }
func (*ComputedUserset) Descriptor
deprecated
func (*ComputedUserset) Descriptor() ([]byte, []int)
Deprecated: Use ComputedUserset.ProtoReflect.Descriptor instead.
func (*ComputedUserset) GetObject ¶
func (x *ComputedUserset) GetObject() ComputedUserset_Object
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
type ComputedUserset_Object ¶
type ComputedUserset_Object int32
const ( ComputedUserset_TUPLE_OBJECT ComputedUserset_Object = 0 ComputedUserset_TUPLE_USERSET_OBJECT ComputedUserset_Object = 1 )
func (ComputedUserset_Object) Descriptor ¶
func (ComputedUserset_Object) Descriptor() protoreflect.EnumDescriptor
func (ComputedUserset_Object) Enum ¶
func (x ComputedUserset_Object) Enum() *ComputedUserset_Object
func (ComputedUserset_Object) EnumDescriptor
deprecated
func (ComputedUserset_Object) EnumDescriptor() ([]byte, []int)
Deprecated: Use ComputedUserset_Object.Descriptor instead.
func (ComputedUserset_Object) Number ¶
func (x ComputedUserset_Object) Number() protoreflect.EnumNumber
func (ComputedUserset_Object) String ¶
func (x ComputedUserset_Object) String() string
func (ComputedUserset_Object) Type ¶
func (ComputedUserset_Object) Type() protoreflect.EnumType
type ContentChangeCheckRequest ¶
type ContentChangeCheckRequest struct { // To authorize application content modifications, our clients send a special // type of check request, a content-change check. A content-change check // request does not carry a zookie and is evaluated at the latest snapshot. TestUserset *ObjectAndRelation `protobuf:"bytes,1,opt,name=test_userset,json=testUserset,proto3" json:"test_userset,omitempty"` User *User `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` // TODO swap for a putative user // contains filtered or unexported fields }
func (*ContentChangeCheckRequest) Descriptor
deprecated
func (*ContentChangeCheckRequest) Descriptor() ([]byte, []int)
Deprecated: Use ContentChangeCheckRequest.ProtoReflect.Descriptor instead.
func (*ContentChangeCheckRequest) GetTestUserset ¶
func (x *ContentChangeCheckRequest) GetTestUserset() *ObjectAndRelation
func (*ContentChangeCheckRequest) GetUser ¶
func (x *ContentChangeCheckRequest) GetUser() *User
func (*ContentChangeCheckRequest) ProtoMessage ¶
func (*ContentChangeCheckRequest) ProtoMessage()
func (*ContentChangeCheckRequest) ProtoReflect ¶
func (x *ContentChangeCheckRequest) ProtoReflect() protoreflect.Message
func (*ContentChangeCheckRequest) Reset ¶
func (x *ContentChangeCheckRequest) Reset()
func (*ContentChangeCheckRequest) String ¶
func (x *ContentChangeCheckRequest) String() string
type DeveloperServiceClient ¶
type DeveloperServiceClient interface { EditCheck(ctx context.Context, in *EditCheckRequest, opts ...grpc.CallOption) (*EditCheckResponse, error) Validate(ctx context.Context, in *ValidateRequest, opts ...grpc.CallOption) (*ValidateResponse, error) }
DeveloperServiceClient is the client API for DeveloperService 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 NewDeveloperServiceClient ¶
func NewDeveloperServiceClient(cc grpc.ClientConnInterface) DeveloperServiceClient
type DeveloperServiceServer ¶
type DeveloperServiceServer interface { EditCheck(context.Context, *EditCheckRequest) (*EditCheckResponse, error) Validate(context.Context, *ValidateRequest) (*ValidateResponse, error) // contains filtered or unexported methods }
DeveloperServiceServer is the server API for DeveloperService service. All implementations must embed UnimplementedDeveloperServiceServer for forward compatibility
type DirectUserset ¶
type DirectUserset struct { Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"` // contains filtered or unexported fields }
func (*DirectUserset) Descriptor
deprecated
func (*DirectUserset) Descriptor() ([]byte, []int)
Deprecated: Use DirectUserset.ProtoReflect.Descriptor instead.
func (*DirectUserset) GetUsers ¶
func (x *DirectUserset) GetUsers() []*User
func (*DirectUserset) ProtoMessage ¶
func (*DirectUserset) ProtoMessage()
func (*DirectUserset) ProtoReflect ¶
func (x *DirectUserset) ProtoReflect() protoreflect.Message
func (*DirectUserset) Reset ¶
func (x *DirectUserset) Reset()
func (*DirectUserset) String ¶
func (x *DirectUserset) String() string
type EditCheckRequest ¶
type EditCheckRequest struct { Context *RequestContext `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` CheckTuples []*RelationTuple `protobuf:"bytes,2,rep,name=check_tuples,json=checkTuples,proto3" json:"check_tuples,omitempty"` // contains filtered or unexported fields }
func (*EditCheckRequest) Descriptor
deprecated
func (*EditCheckRequest) Descriptor() ([]byte, []int)
Deprecated: Use EditCheckRequest.ProtoReflect.Descriptor instead.
func (*EditCheckRequest) GetCheckTuples ¶
func (x *EditCheckRequest) GetCheckTuples() []*RelationTuple
func (*EditCheckRequest) GetContext ¶
func (x *EditCheckRequest) GetContext() *RequestContext
func (*EditCheckRequest) ProtoMessage ¶
func (*EditCheckRequest) ProtoMessage()
func (*EditCheckRequest) ProtoReflect ¶
func (x *EditCheckRequest) ProtoReflect() protoreflect.Message
func (*EditCheckRequest) Reset ¶
func (x *EditCheckRequest) Reset()
func (*EditCheckRequest) String ¶
func (x *EditCheckRequest) String() string
type EditCheckResponse ¶
type EditCheckResponse struct { ContextNamespaces []*NamespaceInformation `protobuf:"bytes,1,rep,name=context_namespaces,json=contextNamespaces,proto3" json:"context_namespaces,omitempty"` AdditionalErrors []*ValidationError `protobuf:"bytes,2,rep,name=additional_errors,json=additionalErrors,proto3" json:"additional_errors,omitempty"` CheckResults []*EditCheckResult `protobuf:"bytes,3,rep,name=check_results,json=checkResults,proto3" json:"check_results,omitempty"` // contains filtered or unexported fields }
func (*EditCheckResponse) Descriptor
deprecated
func (*EditCheckResponse) Descriptor() ([]byte, []int)
Deprecated: Use EditCheckResponse.ProtoReflect.Descriptor instead.
func (*EditCheckResponse) GetAdditionalErrors ¶
func (x *EditCheckResponse) GetAdditionalErrors() []*ValidationError
func (*EditCheckResponse) GetCheckResults ¶
func (x *EditCheckResponse) GetCheckResults() []*EditCheckResult
func (*EditCheckResponse) GetContextNamespaces ¶
func (x *EditCheckResponse) GetContextNamespaces() []*NamespaceInformation
func (*EditCheckResponse) ProtoMessage ¶
func (*EditCheckResponse) ProtoMessage()
func (*EditCheckResponse) ProtoReflect ¶
func (x *EditCheckResponse) ProtoReflect() protoreflect.Message
func (*EditCheckResponse) Reset ¶
func (x *EditCheckResponse) Reset()
func (*EditCheckResponse) String ¶
func (x *EditCheckResponse) String() string
type EditCheckResult ¶
type EditCheckResult struct { Tuple *RelationTuple `protobuf:"bytes,1,opt,name=tuple,proto3" json:"tuple,omitempty"` IsMember bool `protobuf:"varint,2,opt,name=is_member,json=isMember,proto3" json:"is_member,omitempty"` Error *ValidationError `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` // contains filtered or unexported fields }
func (*EditCheckResult) Descriptor
deprecated
func (*EditCheckResult) Descriptor() ([]byte, []int)
Deprecated: Use EditCheckResult.ProtoReflect.Descriptor instead.
func (*EditCheckResult) GetError ¶
func (x *EditCheckResult) GetError() *ValidationError
func (*EditCheckResult) GetIsMember ¶
func (x *EditCheckResult) GetIsMember() bool
func (*EditCheckResult) GetTuple ¶
func (x *EditCheckResult) GetTuple() *RelationTuple
func (*EditCheckResult) ProtoMessage ¶
func (*EditCheckResult) ProtoMessage()
func (*EditCheckResult) ProtoReflect ¶
func (x *EditCheckResult) ProtoReflect() protoreflect.Message
func (*EditCheckResult) Reset ¶
func (x *EditCheckResult) Reset()
func (*EditCheckResult) String ¶
func (x *EditCheckResult) String() string
type ExpandRequest ¶
type ExpandRequest struct { // The Expand API returns the effective userset given an ⟨object#relation⟩ // pair and an optional zookie. Unlike the Read API, Expand follows indirect // references expressed through userset rewrite rules. Userset *ObjectAndRelation `protobuf:"bytes,1,opt,name=userset,proto3" json:"userset,omitempty"` AtRevision *Zookie `protobuf:"bytes,2,opt,name=at_revision,json=atRevision,proto3" json:"at_revision,omitempty"` // contains filtered or unexported fields }
func (*ExpandRequest) Descriptor
deprecated
func (*ExpandRequest) Descriptor() ([]byte, []int)
Deprecated: Use ExpandRequest.ProtoReflect.Descriptor instead.
func (*ExpandRequest) GetAtRevision ¶
func (x *ExpandRequest) GetAtRevision() *Zookie
func (*ExpandRequest) GetUserset ¶
func (x *ExpandRequest) GetUserset() *ObjectAndRelation
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
type ExpandResponse ¶
type ExpandResponse struct { // The result is represented by a userset tree whose leaf nodes are user IDs // or usersets pointing to other ⟨object#relation⟩ pairs, and intermediate // nodes represent union, intersection, or exclusion operators. TreeNode *RelationTupleTreeNode `protobuf:"bytes,1,opt,name=tree_node,json=treeNode,proto3" json:"tree_node,omitempty"` Revision *Zookie `protobuf:"bytes,3,opt,name=revision,proto3" json:"revision,omitempty"` // contains filtered or unexported fields }
func (*ExpandResponse) Descriptor
deprecated
func (*ExpandResponse) Descriptor() ([]byte, []int)
Deprecated: Use ExpandResponse.ProtoReflect.Descriptor instead.
func (*ExpandResponse) GetRevision ¶
func (x *ExpandResponse) GetRevision() *Zookie
func (*ExpandResponse) GetTreeNode ¶
func (x *ExpandResponse) GetTreeNode() *RelationTupleTreeNode
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
type LookupShareRequest ¶
type LookupShareRequest struct { // contains filtered or unexported fields }
func (*LookupShareRequest) Descriptor
deprecated
func (*LookupShareRequest) Descriptor() ([]byte, []int)
Deprecated: Use LookupShareRequest.ProtoReflect.Descriptor instead.
func (*LookupShareRequest) GetShareReference ¶
func (x *LookupShareRequest) GetShareReference() string
func (*LookupShareRequest) ProtoMessage ¶
func (*LookupShareRequest) ProtoMessage()
func (*LookupShareRequest) ProtoReflect ¶
func (x *LookupShareRequest) ProtoReflect() protoreflect.Message
func (*LookupShareRequest) Reset ¶
func (x *LookupShareRequest) Reset()
func (*LookupShareRequest) String ¶
func (x *LookupShareRequest) String() string
type LookupShareResponse ¶
type LookupShareResponse struct { // contains filtered or unexported fields }
func (*LookupShareResponse) Descriptor
deprecated
func (*LookupShareResponse) Descriptor() ([]byte, []int)
Deprecated: Use LookupShareResponse.ProtoReflect.Descriptor instead.
func (*LookupShareResponse) GetAssertionsYaml ¶
func (x *LookupShareResponse) GetAssertionsYaml() string
func (*LookupShareResponse) GetNamespaceConfigs ¶
func (x *LookupShareResponse) GetNamespaceConfigs() []string
func (*LookupShareResponse) GetRelationTuples ¶
func (x *LookupShareResponse) GetRelationTuples() string
func (*LookupShareResponse) GetStatus ¶
func (x *LookupShareResponse) GetStatus() LookupShareResponse_LookupStatus
func (*LookupShareResponse) GetValidationYaml ¶
func (x *LookupShareResponse) GetValidationYaml() string
func (*LookupShareResponse) ProtoMessage ¶
func (*LookupShareResponse) ProtoMessage()
func (*LookupShareResponse) ProtoReflect ¶
func (x *LookupShareResponse) ProtoReflect() protoreflect.Message
func (*LookupShareResponse) Reset ¶
func (x *LookupShareResponse) Reset()
func (*LookupShareResponse) String ¶
func (x *LookupShareResponse) String() string
type LookupShareResponse_LookupStatus ¶
type LookupShareResponse_LookupStatus int32
const ()
func (LookupShareResponse_LookupStatus) Descriptor ¶
func (LookupShareResponse_LookupStatus) Descriptor() protoreflect.EnumDescriptor
func (LookupShareResponse_LookupStatus) Enum ¶
func (x LookupShareResponse_LookupStatus) Enum() *LookupShareResponse_LookupStatus
func (LookupShareResponse_LookupStatus) EnumDescriptor
deprecated
func (LookupShareResponse_LookupStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use LookupShareResponse_LookupStatus.Descriptor instead.
func (LookupShareResponse_LookupStatus) Number ¶
func (x LookupShareResponse_LookupStatus) Number() protoreflect.EnumNumber
func (LookupShareResponse_LookupStatus) String ¶
func (x LookupShareResponse_LookupStatus) String() string
func (LookupShareResponse_LookupStatus) Type ¶
func (LookupShareResponse_LookupStatus) Type() protoreflect.EnumType
type NamespaceContext ¶
type NamespaceContext struct { Handle string `protobuf:"bytes,1,opt,name=handle,proto3" json:"handle,omitempty"` Config string `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"` // contains filtered or unexported fields }
func (*NamespaceContext) Descriptor
deprecated
func (*NamespaceContext) Descriptor() ([]byte, []int)
Deprecated: Use NamespaceContext.ProtoReflect.Descriptor instead.
func (*NamespaceContext) GetConfig ¶
func (x *NamespaceContext) GetConfig() string
func (*NamespaceContext) GetHandle ¶
func (x *NamespaceContext) GetHandle() string
func (*NamespaceContext) ProtoMessage ¶
func (*NamespaceContext) ProtoMessage()
func (*NamespaceContext) ProtoReflect ¶
func (x *NamespaceContext) ProtoReflect() protoreflect.Message
func (*NamespaceContext) Reset ¶
func (x *NamespaceContext) Reset()
func (*NamespaceContext) String ¶
func (x *NamespaceContext) String() string
type NamespaceDefinition ¶
type NamespaceDefinition struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Relation []*Relation `protobuf:"bytes,2,rep,name=relation,proto3" json:"relation,omitempty"` // contains filtered or unexported fields }
func (*NamespaceDefinition) Descriptor
deprecated
func (*NamespaceDefinition) Descriptor() ([]byte, []int)
Deprecated: Use NamespaceDefinition.ProtoReflect.Descriptor instead.
func (*NamespaceDefinition) GetName ¶
func (x *NamespaceDefinition) GetName() string
func (*NamespaceDefinition) GetRelation ¶
func (x *NamespaceDefinition) GetRelation() []*Relation
func (*NamespaceDefinition) ProtoMessage ¶
func (*NamespaceDefinition) ProtoMessage()
func (*NamespaceDefinition) ProtoReflect ¶
func (x *NamespaceDefinition) ProtoReflect() protoreflect.Message
func (*NamespaceDefinition) Reset ¶
func (x *NamespaceDefinition) Reset()
func (*NamespaceDefinition) String ¶
func (x *NamespaceDefinition) String() string
type NamespaceInformation ¶
type NamespaceInformation struct { Handle string `protobuf:"bytes,1,opt,name=handle,proto3" json:"handle,omitempty"` Parsed *NamespaceDefinition `protobuf:"bytes,2,opt,name=parsed,proto3" json:"parsed,omitempty"` Errors []*ValidationError `protobuf:"bytes,3,rep,name=errors,proto3" json:"errors,omitempty"` // contains filtered or unexported fields }
func (*NamespaceInformation) Descriptor
deprecated
func (*NamespaceInformation) Descriptor() ([]byte, []int)
Deprecated: Use NamespaceInformation.ProtoReflect.Descriptor instead.
func (*NamespaceInformation) GetErrors ¶
func (x *NamespaceInformation) GetErrors() []*ValidationError
func (*NamespaceInformation) GetHandle ¶
func (x *NamespaceInformation) GetHandle() string
func (*NamespaceInformation) GetParsed ¶
func (x *NamespaceInformation) GetParsed() *NamespaceDefinition
func (*NamespaceInformation) ProtoMessage ¶
func (*NamespaceInformation) ProtoMessage()
func (*NamespaceInformation) ProtoReflect ¶
func (x *NamespaceInformation) ProtoReflect() protoreflect.Message
func (*NamespaceInformation) Reset ¶
func (x *NamespaceInformation) Reset()
func (*NamespaceInformation) String ¶
func (x *NamespaceInformation) String() string
type NamespaceServiceClient ¶
type NamespaceServiceClient interface { ReadConfig(ctx context.Context, in *ReadConfigRequest, opts ...grpc.CallOption) (*ReadConfigResponse, error) WriteConfig(ctx context.Context, in *WriteConfigRequest, opts ...grpc.CallOption) (*WriteConfigResponse, error) }
NamespaceServiceClient is the client API for NamespaceService 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 NewNamespaceServiceClient ¶
func NewNamespaceServiceClient(cc grpc.ClientConnInterface) NamespaceServiceClient
type NamespaceServiceServer ¶
type NamespaceServiceServer interface { ReadConfig(context.Context, *ReadConfigRequest) (*ReadConfigResponse, error) WriteConfig(context.Context, *WriteConfigRequest) (*WriteConfigResponse, error) // contains filtered or unexported methods }
NamespaceServiceServer is the server API for NamespaceService service. All implementations must embed UnimplementedNamespaceServiceServer for forward compatibility
type ObjectAndRelation ¶
type ObjectAndRelation struct { Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` ObjectId string `protobuf:"bytes,2,opt,name=object_id,json=objectId,proto3" json:"object_id,omitempty"` Relation string `protobuf:"bytes,3,opt,name=relation,proto3" json:"relation,omitempty"` // contains filtered or unexported fields }
func (*ObjectAndRelation) Descriptor
deprecated
func (*ObjectAndRelation) Descriptor() ([]byte, []int)
Deprecated: Use ObjectAndRelation.ProtoReflect.Descriptor instead.
func (*ObjectAndRelation) GetNamespace ¶
func (x *ObjectAndRelation) GetNamespace() string
func (*ObjectAndRelation) GetObjectId ¶
func (x *ObjectAndRelation) GetObjectId() string
func (*ObjectAndRelation) GetRelation ¶
func (x *ObjectAndRelation) GetRelation() string
func (*ObjectAndRelation) ProtoMessage ¶
func (*ObjectAndRelation) ProtoMessage()
func (*ObjectAndRelation) ProtoReflect ¶
func (x *ObjectAndRelation) ProtoReflect() protoreflect.Message
func (*ObjectAndRelation) Reset ¶
func (x *ObjectAndRelation) Reset()
func (*ObjectAndRelation) String ¶
func (x *ObjectAndRelation) String() string
type ReadConfigRequest ¶
type ReadConfigRequest struct { Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` AtRevision *Zookie `protobuf:"bytes,2,opt,name=at_revision,json=atRevision,proto3" json:"at_revision,omitempty"` // contains filtered or unexported fields }
func (*ReadConfigRequest) Descriptor
deprecated
func (*ReadConfigRequest) Descriptor() ([]byte, []int)
Deprecated: Use ReadConfigRequest.ProtoReflect.Descriptor instead.
func (*ReadConfigRequest) GetAtRevision ¶
func (x *ReadConfigRequest) GetAtRevision() *Zookie
func (*ReadConfigRequest) GetNamespace ¶
func (x *ReadConfigRequest) GetNamespace() string
func (*ReadConfigRequest) ProtoMessage ¶
func (*ReadConfigRequest) ProtoMessage()
func (*ReadConfigRequest) ProtoReflect ¶
func (x *ReadConfigRequest) ProtoReflect() protoreflect.Message
func (*ReadConfigRequest) Reset ¶
func (x *ReadConfigRequest) Reset()
func (*ReadConfigRequest) String ¶
func (x *ReadConfigRequest) String() string
type ReadConfigResponse ¶
type ReadConfigResponse struct { Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` Config *NamespaceDefinition `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"` Revision *Zookie `protobuf:"bytes,4,opt,name=revision,proto3" json:"revision,omitempty"` // contains filtered or unexported fields }
func (*ReadConfigResponse) Descriptor
deprecated
func (*ReadConfigResponse) Descriptor() ([]byte, []int)
Deprecated: Use ReadConfigResponse.ProtoReflect.Descriptor instead.
func (*ReadConfigResponse) GetConfig ¶
func (x *ReadConfigResponse) GetConfig() *NamespaceDefinition
func (*ReadConfigResponse) GetNamespace ¶
func (x *ReadConfigResponse) GetNamespace() string
func (*ReadConfigResponse) GetRevision ¶
func (x *ReadConfigResponse) GetRevision() *Zookie
func (*ReadConfigResponse) ProtoMessage ¶
func (*ReadConfigResponse) ProtoMessage()
func (*ReadConfigResponse) ProtoReflect ¶
func (x *ReadConfigResponse) ProtoReflect() protoreflect.Message
func (*ReadConfigResponse) Reset ¶
func (x *ReadConfigResponse) Reset()
func (*ReadConfigResponse) String ¶
func (x *ReadConfigResponse) String() string
type ReadRequest ¶
type ReadRequest struct { // A read request specifies one or multiple tuplesets and an optional zookie. Tuplesets []*RelationTupleFilter `protobuf:"bytes,1,rep,name=tuplesets,proto3" json:"tuplesets,omitempty"` AtRevision *Zookie `protobuf:"bytes,2,opt,name=at_revision,json=atRevision,proto3" json:"at_revision,omitempty"` // contains filtered or unexported fields }
func (*ReadRequest) Descriptor
deprecated
func (*ReadRequest) Descriptor() ([]byte, []int)
Deprecated: Use ReadRequest.ProtoReflect.Descriptor instead.
func (*ReadRequest) GetAtRevision ¶
func (x *ReadRequest) GetAtRevision() *Zookie
func (*ReadRequest) GetTuplesets ¶
func (x *ReadRequest) GetTuplesets() []*RelationTupleFilter
func (*ReadRequest) ProtoMessage ¶
func (*ReadRequest) ProtoMessage()
func (*ReadRequest) ProtoReflect ¶
func (x *ReadRequest) ProtoReflect() protoreflect.Message
func (*ReadRequest) Reset ¶
func (x *ReadRequest) Reset()
func (*ReadRequest) String ¶
func (x *ReadRequest) String() string
type ReadResponse ¶
type ReadResponse struct { Tuplesets []*ReadResponse_Tupleset `protobuf:"bytes,1,rep,name=tuplesets,proto3" json:"tuplesets,omitempty"` Revision *Zookie `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` // contains filtered or unexported fields }
func (*ReadResponse) Descriptor
deprecated
func (*ReadResponse) Descriptor() ([]byte, []int)
Deprecated: Use ReadResponse.ProtoReflect.Descriptor instead.
func (*ReadResponse) GetRevision ¶
func (x *ReadResponse) GetRevision() *Zookie
func (*ReadResponse) GetTuplesets ¶
func (x *ReadResponse) GetTuplesets() []*ReadResponse_Tupleset
func (*ReadResponse) ProtoMessage ¶
func (*ReadResponse) ProtoMessage()
func (*ReadResponse) ProtoReflect ¶
func (x *ReadResponse) ProtoReflect() protoreflect.Message
func (*ReadResponse) Reset ¶
func (x *ReadResponse) Reset()
func (*ReadResponse) String ¶
func (x *ReadResponse) String() string
type ReadResponse_Tupleset ¶
type ReadResponse_Tupleset struct { Tuples []*RelationTuple `protobuf:"bytes,1,rep,name=tuples,proto3" json:"tuples,omitempty"` // contains filtered or unexported fields }
func (*ReadResponse_Tupleset) Descriptor
deprecated
func (*ReadResponse_Tupleset) Descriptor() ([]byte, []int)
Deprecated: Use ReadResponse_Tupleset.ProtoReflect.Descriptor instead.
func (*ReadResponse_Tupleset) GetTuples ¶
func (x *ReadResponse_Tupleset) GetTuples() []*RelationTuple
func (*ReadResponse_Tupleset) ProtoMessage ¶
func (*ReadResponse_Tupleset) ProtoMessage()
func (*ReadResponse_Tupleset) ProtoReflect ¶
func (x *ReadResponse_Tupleset) ProtoReflect() protoreflect.Message
func (*ReadResponse_Tupleset) Reset ¶
func (x *ReadResponse_Tupleset) Reset()
func (*ReadResponse_Tupleset) String ¶
func (x *ReadResponse_Tupleset) String() string
type Relation ¶
type Relation struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` UsersetRewrite *UsersetRewrite `protobuf:"bytes,2,opt,name=userset_rewrite,json=usersetRewrite,proto3" json:"userset_rewrite,omitempty"` // contains filtered or unexported fields }
func (*Relation) Descriptor
deprecated
func (*Relation) GetUsersetRewrite ¶
func (x *Relation) GetUsersetRewrite() *UsersetRewrite
func (*Relation) ProtoMessage ¶
func (*Relation) ProtoMessage()
func (*Relation) ProtoReflect ¶
func (x *Relation) ProtoReflect() protoreflect.Message
type RelationTuple ¶
type RelationTuple struct { // Each tupleset specifies keys of a set of relation tuples. The set can // include a single tuple key, or all tuples with a given object ID or // userset in a namespace, optionally constrained by a relation name. // // examples: // doc:readme#viewer@group:eng#member (fully specified) // doc:*#*#group:eng#member (all tuples that this userset relates to) // doc:12345#*#* (all tuples with a direct relationship to a document) // doc:12345#writer#* (all tuples with direct write relationship with the // document) doc:#writer#group:eng#member (all tuples that eng group has write // relationship) ObjectAndRelation *ObjectAndRelation `protobuf:"bytes,1,opt,name=object_and_relation,json=objectAndRelation,proto3" json:"object_and_relation,omitempty"` User *User `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
func (*RelationTuple) Descriptor
deprecated
func (*RelationTuple) Descriptor() ([]byte, []int)
Deprecated: Use RelationTuple.ProtoReflect.Descriptor instead.
func (*RelationTuple) GetObjectAndRelation ¶
func (x *RelationTuple) GetObjectAndRelation() *ObjectAndRelation
func (*RelationTuple) GetUser ¶
func (x *RelationTuple) GetUser() *User
func (*RelationTuple) ProtoMessage ¶
func (*RelationTuple) ProtoMessage()
func (*RelationTuple) ProtoReflect ¶
func (x *RelationTuple) ProtoReflect() protoreflect.Message
func (*RelationTuple) Reset ¶
func (x *RelationTuple) Reset()
func (*RelationTuple) String ¶
func (x *RelationTuple) String() string
type RelationTupleFilter ¶
type RelationTupleFilter struct { Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // Setting any of these fields requires the appropriate filter type to be // added to the filters list as well ObjectId string `protobuf:"bytes,2,opt,name=object_id,json=objectId,proto3" json:"object_id,omitempty"` Relation string `protobuf:"bytes,3,opt,name=relation,proto3" json:"relation,omitempty"` Userset *ObjectAndRelation `protobuf:"bytes,5,opt,name=userset,proto3" json:"userset,omitempty"` Filters []RelationTupleFilter_Filter `protobuf:"varint,6,rep,packed,name=filters,proto3,enum=RelationTupleFilter_Filter" json:"filters,omitempty"` // contains filtered or unexported fields }
func (*RelationTupleFilter) Descriptor
deprecated
func (*RelationTupleFilter) Descriptor() ([]byte, []int)
Deprecated: Use RelationTupleFilter.ProtoReflect.Descriptor instead.
func (*RelationTupleFilter) GetFilters ¶
func (x *RelationTupleFilter) GetFilters() []RelationTupleFilter_Filter
func (*RelationTupleFilter) GetNamespace ¶
func (x *RelationTupleFilter) GetNamespace() string
func (*RelationTupleFilter) GetObjectId ¶
func (x *RelationTupleFilter) GetObjectId() string
func (*RelationTupleFilter) GetRelation ¶
func (x *RelationTupleFilter) GetRelation() string
func (*RelationTupleFilter) GetUserset ¶
func (x *RelationTupleFilter) GetUserset() *ObjectAndRelation
func (*RelationTupleFilter) ProtoMessage ¶
func (*RelationTupleFilter) ProtoMessage()
func (*RelationTupleFilter) ProtoReflect ¶
func (x *RelationTupleFilter) ProtoReflect() protoreflect.Message
func (*RelationTupleFilter) Reset ¶
func (x *RelationTupleFilter) Reset()
func (*RelationTupleFilter) String ¶
func (x *RelationTupleFilter) String() string
type RelationTupleFilter_Filter ¶
type RelationTupleFilter_Filter int32
const ( RelationTupleFilter_UNKNOWN RelationTupleFilter_Filter = 0 RelationTupleFilter_OBJECT_ID RelationTupleFilter_Filter = 1 RelationTupleFilter_RELATION RelationTupleFilter_Filter = 2 RelationTupleFilter_USERSET RelationTupleFilter_Filter = 4 )
func (RelationTupleFilter_Filter) Descriptor ¶
func (RelationTupleFilter_Filter) Descriptor() protoreflect.EnumDescriptor
func (RelationTupleFilter_Filter) Enum ¶
func (x RelationTupleFilter_Filter) Enum() *RelationTupleFilter_Filter
func (RelationTupleFilter_Filter) EnumDescriptor
deprecated
func (RelationTupleFilter_Filter) EnumDescriptor() ([]byte, []int)
Deprecated: Use RelationTupleFilter_Filter.Descriptor instead.
func (RelationTupleFilter_Filter) Number ¶
func (x RelationTupleFilter_Filter) Number() protoreflect.EnumNumber
func (RelationTupleFilter_Filter) String ¶
func (x RelationTupleFilter_Filter) String() string
func (RelationTupleFilter_Filter) Type ¶
func (RelationTupleFilter_Filter) Type() protoreflect.EnumType
type RelationTupleTreeNode ¶
type RelationTupleTreeNode struct { // Types that are assignable to NodeType: // *RelationTupleTreeNode_IntermediateNode // *RelationTupleTreeNode_LeafNode NodeType isRelationTupleTreeNode_NodeType `protobuf_oneof:"node_type"` Expanded *ObjectAndRelation `protobuf:"bytes,3,opt,name=expanded,proto3" json:"expanded,omitempty"` // contains filtered or unexported fields }
func (*RelationTupleTreeNode) Descriptor
deprecated
func (*RelationTupleTreeNode) Descriptor() ([]byte, []int)
Deprecated: Use RelationTupleTreeNode.ProtoReflect.Descriptor instead.
func (*RelationTupleTreeNode) GetExpanded ¶
func (x *RelationTupleTreeNode) GetExpanded() *ObjectAndRelation
func (*RelationTupleTreeNode) GetIntermediateNode ¶
func (x *RelationTupleTreeNode) GetIntermediateNode() *SetOperationUserset
func (*RelationTupleTreeNode) GetLeafNode ¶
func (x *RelationTupleTreeNode) GetLeafNode() *DirectUserset
func (*RelationTupleTreeNode) GetNodeType ¶
func (m *RelationTupleTreeNode) GetNodeType() isRelationTupleTreeNode_NodeType
func (*RelationTupleTreeNode) ProtoMessage ¶
func (*RelationTupleTreeNode) ProtoMessage()
func (*RelationTupleTreeNode) ProtoReflect ¶
func (x *RelationTupleTreeNode) ProtoReflect() protoreflect.Message
func (*RelationTupleTreeNode) Reset ¶
func (x *RelationTupleTreeNode) Reset()
func (*RelationTupleTreeNode) String ¶
func (x *RelationTupleTreeNode) String() string
type RelationTupleTreeNode_IntermediateNode ¶
type RelationTupleTreeNode_IntermediateNode struct {
IntermediateNode *SetOperationUserset `protobuf:"bytes,1,opt,name=intermediate_node,json=intermediateNode,proto3,oneof"`
}
type RelationTupleTreeNode_LeafNode ¶
type RelationTupleTreeNode_LeafNode struct {
LeafNode *DirectUserset `protobuf:"bytes,2,opt,name=leaf_node,json=leafNode,proto3,oneof"`
}
type RelationTupleUpdate ¶
type RelationTupleUpdate struct { Operation RelationTupleUpdate_Operation `protobuf:"varint,1,opt,name=operation,proto3,enum=RelationTupleUpdate_Operation" json:"operation,omitempty"` Tuple *RelationTuple `protobuf:"bytes,2,opt,name=tuple,proto3" json:"tuple,omitempty"` // contains filtered or unexported fields }
func (*RelationTupleUpdate) Descriptor
deprecated
func (*RelationTupleUpdate) Descriptor() ([]byte, []int)
Deprecated: Use RelationTupleUpdate.ProtoReflect.Descriptor instead.
func (*RelationTupleUpdate) GetOperation ¶
func (x *RelationTupleUpdate) GetOperation() RelationTupleUpdate_Operation
func (*RelationTupleUpdate) GetTuple ¶
func (x *RelationTupleUpdate) GetTuple() *RelationTuple
func (*RelationTupleUpdate) ProtoMessage ¶
func (*RelationTupleUpdate) ProtoMessage()
func (*RelationTupleUpdate) ProtoReflect ¶
func (x *RelationTupleUpdate) ProtoReflect() protoreflect.Message
func (*RelationTupleUpdate) Reset ¶
func (x *RelationTupleUpdate) Reset()
func (*RelationTupleUpdate) String ¶
func (x *RelationTupleUpdate) String() string
type RelationTupleUpdate_Operation ¶
type RelationTupleUpdate_Operation int32
const ( RelationTupleUpdate_UNKNOWN RelationTupleUpdate_Operation = 0 RelationTupleUpdate_CREATE RelationTupleUpdate_Operation = 1 RelationTupleUpdate_TOUCH RelationTupleUpdate_Operation = 2 RelationTupleUpdate_DELETE RelationTupleUpdate_Operation = 3 )
func (RelationTupleUpdate_Operation) Descriptor ¶
func (RelationTupleUpdate_Operation) Descriptor() protoreflect.EnumDescriptor
func (RelationTupleUpdate_Operation) Enum ¶
func (x RelationTupleUpdate_Operation) Enum() *RelationTupleUpdate_Operation
func (RelationTupleUpdate_Operation) EnumDescriptor
deprecated
func (RelationTupleUpdate_Operation) EnumDescriptor() ([]byte, []int)
Deprecated: Use RelationTupleUpdate_Operation.Descriptor instead.
func (RelationTupleUpdate_Operation) Number ¶
func (x RelationTupleUpdate_Operation) Number() protoreflect.EnumNumber
func (RelationTupleUpdate_Operation) String ¶
func (x RelationTupleUpdate_Operation) String() string
func (RelationTupleUpdate_Operation) Type ¶
func (RelationTupleUpdate_Operation) Type() protoreflect.EnumType
type RequestContext ¶
type RequestContext struct { Namespaces []*NamespaceContext `protobuf:"bytes,1,rep,name=namespaces,proto3" json:"namespaces,omitempty"` Tuples []*RelationTuple `protobuf:"bytes,2,rep,name=tuples,proto3" json:"tuples,omitempty"` // contains filtered or unexported fields }
func (*RequestContext) Descriptor
deprecated
func (*RequestContext) Descriptor() ([]byte, []int)
Deprecated: Use RequestContext.ProtoReflect.Descriptor instead.
func (*RequestContext) GetNamespaces ¶
func (x *RequestContext) GetNamespaces() []*NamespaceContext
func (*RequestContext) GetTuples ¶
func (x *RequestContext) GetTuples() []*RelationTuple
func (*RequestContext) ProtoMessage ¶
func (*RequestContext) ProtoMessage()
func (*RequestContext) ProtoReflect ¶
func (x *RequestContext) ProtoReflect() protoreflect.Message
func (*RequestContext) Reset ¶
func (x *RequestContext) Reset()
func (*RequestContext) String ¶
func (x *RequestContext) String() string
type SetOperation ¶
type SetOperation struct { Child []*SetOperation_Child `protobuf:"bytes,1,rep,name=child,proto3" json:"child,omitempty"` // contains filtered or unexported fields }
func (*SetOperation) Descriptor
deprecated
func (*SetOperation) Descriptor() ([]byte, []int)
Deprecated: Use SetOperation.ProtoReflect.Descriptor instead.
func (*SetOperation) GetChild ¶
func (x *SetOperation) GetChild() []*SetOperation_Child
func (*SetOperation) ProtoMessage ¶
func (*SetOperation) ProtoMessage()
func (*SetOperation) ProtoReflect ¶
func (x *SetOperation) ProtoReflect() protoreflect.Message
func (*SetOperation) Reset ¶
func (x *SetOperation) Reset()
func (*SetOperation) String ¶
func (x *SetOperation) String() string
type SetOperationUserset ¶
type SetOperationUserset struct { Operation SetOperationUserset_Operation `protobuf:"varint,1,opt,name=operation,proto3,enum=SetOperationUserset_Operation" json:"operation,omitempty"` ChildNodes []*RelationTupleTreeNode `protobuf:"bytes,2,rep,name=child_nodes,json=childNodes,proto3" json:"child_nodes,omitempty"` // contains filtered or unexported fields }
func (*SetOperationUserset) Descriptor
deprecated
func (*SetOperationUserset) Descriptor() ([]byte, []int)
Deprecated: Use SetOperationUserset.ProtoReflect.Descriptor instead.
func (*SetOperationUserset) GetChildNodes ¶
func (x *SetOperationUserset) GetChildNodes() []*RelationTupleTreeNode
func (*SetOperationUserset) GetOperation ¶
func (x *SetOperationUserset) GetOperation() SetOperationUserset_Operation
func (*SetOperationUserset) ProtoMessage ¶
func (*SetOperationUserset) ProtoMessage()
func (*SetOperationUserset) ProtoReflect ¶
func (x *SetOperationUserset) ProtoReflect() protoreflect.Message
func (*SetOperationUserset) Reset ¶
func (x *SetOperationUserset) Reset()
func (*SetOperationUserset) String ¶
func (x *SetOperationUserset) String() string
type SetOperationUserset_Operation ¶
type SetOperationUserset_Operation int32
const ( SetOperationUserset_INVALID SetOperationUserset_Operation = 0 SetOperationUserset_UNION SetOperationUserset_Operation = 1 SetOperationUserset_INTERSECTION SetOperationUserset_Operation = 2 SetOperationUserset_EXCLUSION SetOperationUserset_Operation = 3 )
func (SetOperationUserset_Operation) Descriptor ¶
func (SetOperationUserset_Operation) Descriptor() protoreflect.EnumDescriptor
func (SetOperationUserset_Operation) Enum ¶
func (x SetOperationUserset_Operation) Enum() *SetOperationUserset_Operation
func (SetOperationUserset_Operation) EnumDescriptor
deprecated
func (SetOperationUserset_Operation) EnumDescriptor() ([]byte, []int)
Deprecated: Use SetOperationUserset_Operation.Descriptor instead.
func (SetOperationUserset_Operation) Number ¶
func (x SetOperationUserset_Operation) Number() protoreflect.EnumNumber
func (SetOperationUserset_Operation) String ¶
func (x SetOperationUserset_Operation) String() string
func (SetOperationUserset_Operation) Type ¶
func (SetOperationUserset_Operation) Type() protoreflect.EnumType
type SetOperation_Child ¶
type SetOperation_Child struct { // Types that are assignable to ChildType: // *SetOperation_Child_XThis // *SetOperation_Child_ComputedUserset // *SetOperation_Child_TupleToUserset // *SetOperation_Child_UsersetRewrite ChildType isSetOperation_Child_ChildType `protobuf_oneof:"child_type"` // contains filtered or unexported fields }
func (*SetOperation_Child) Descriptor
deprecated
func (*SetOperation_Child) Descriptor() ([]byte, []int)
Deprecated: Use SetOperation_Child.ProtoReflect.Descriptor instead.
func (*SetOperation_Child) GetChildType ¶
func (m *SetOperation_Child) GetChildType() isSetOperation_Child_ChildType
func (*SetOperation_Child) GetComputedUserset ¶
func (x *SetOperation_Child) GetComputedUserset() *ComputedUserset
func (*SetOperation_Child) GetTupleToUserset ¶
func (x *SetOperation_Child) GetTupleToUserset() *TupleToUserset
func (*SetOperation_Child) GetUsersetRewrite ¶
func (x *SetOperation_Child) GetUsersetRewrite() *UsersetRewrite
func (*SetOperation_Child) GetXThis ¶
func (x *SetOperation_Child) GetXThis() *SetOperation_Child_This
func (*SetOperation_Child) ProtoMessage ¶
func (*SetOperation_Child) ProtoMessage()
func (*SetOperation_Child) ProtoReflect ¶
func (x *SetOperation_Child) ProtoReflect() protoreflect.Message
func (*SetOperation_Child) Reset ¶
func (x *SetOperation_Child) Reset()
func (*SetOperation_Child) String ¶
func (x *SetOperation_Child) String() string
type SetOperation_Child_ComputedUserset ¶
type SetOperation_Child_ComputedUserset struct {
ComputedUserset *ComputedUserset `protobuf:"bytes,2,opt,name=computed_userset,json=computedUserset,proto3,oneof"`
}
type SetOperation_Child_This ¶
type SetOperation_Child_This struct {
// contains filtered or unexported fields
}
func (*SetOperation_Child_This) Descriptor
deprecated
func (*SetOperation_Child_This) Descriptor() ([]byte, []int)
Deprecated: Use SetOperation_Child_This.ProtoReflect.Descriptor instead.
func (*SetOperation_Child_This) ProtoMessage ¶
func (*SetOperation_Child_This) ProtoMessage()
func (*SetOperation_Child_This) ProtoReflect ¶
func (x *SetOperation_Child_This) ProtoReflect() protoreflect.Message
func (*SetOperation_Child_This) Reset ¶
func (x *SetOperation_Child_This) Reset()
func (*SetOperation_Child_This) String ¶
func (x *SetOperation_Child_This) String() string
type SetOperation_Child_TupleToUserset ¶
type SetOperation_Child_TupleToUserset struct {
TupleToUserset *TupleToUserset `protobuf:"bytes,3,opt,name=tuple_to_userset,json=tupleToUserset,proto3,oneof"`
}
type SetOperation_Child_UsersetRewrite ¶
type SetOperation_Child_UsersetRewrite struct {
UsersetRewrite *UsersetRewrite `protobuf:"bytes,4,opt,name=userset_rewrite,json=usersetRewrite,proto3,oneof"`
}
type SetOperation_Child_XThis ¶
type SetOperation_Child_XThis struct {
XThis *SetOperation_Child_This `protobuf:"bytes,1,opt,name=_this,json=This,proto3,oneof"`
}
type ShareRequest ¶
type ShareRequest struct { // contains filtered or unexported fields }
func (*ShareRequest) Descriptor
deprecated
func (*ShareRequest) Descriptor() ([]byte, []int)
Deprecated: Use ShareRequest.ProtoReflect.Descriptor instead.
func (*ShareRequest) GetAssertionsYaml ¶
func (x *ShareRequest) GetAssertionsYaml() string
func (*ShareRequest) GetNamespaceConfigs ¶
func (x *ShareRequest) GetNamespaceConfigs() []string
func (*ShareRequest) GetRelationTuples ¶
func (x *ShareRequest) GetRelationTuples() string
func (*ShareRequest) GetValidationYaml ¶
func (x *ShareRequest) GetValidationYaml() string
func (*ShareRequest) ProtoMessage ¶
func (*ShareRequest) ProtoMessage()
func (*ShareRequest) ProtoReflect ¶
func (x *ShareRequest) ProtoReflect() protoreflect.Message
func (*ShareRequest) Reset ¶
func (x *ShareRequest) Reset()
func (*ShareRequest) String ¶
func (x *ShareRequest) String() string
type ShareResponse ¶
type ShareResponse struct { // contains filtered or unexported fields }
func (*ShareResponse) Descriptor
deprecated
func (*ShareResponse) Descriptor() ([]byte, []int)
Deprecated: Use ShareResponse.ProtoReflect.Descriptor instead.
func (*ShareResponse) GetShareReference ¶
func (x *ShareResponse) GetShareReference() string
func (*ShareResponse) ProtoMessage ¶
func (*ShareResponse) ProtoMessage()
func (*ShareResponse) ProtoReflect ¶
func (x *ShareResponse) ProtoReflect() protoreflect.Message
func (*ShareResponse) Reset ¶
func (x *ShareResponse) Reset()
func (*ShareResponse) String ¶
func (x *ShareResponse) String() string
type TupleToUserset ¶
type TupleToUserset struct { Tupleset *TupleToUserset_Tupleset `protobuf:"bytes,1,opt,name=tupleset,proto3" json:"tupleset,omitempty"` ComputedUserset *ComputedUserset `protobuf:"bytes,2,opt,name=computed_userset,json=computedUserset,proto3" json:"computed_userset,omitempty"` // contains filtered or unexported fields }
func (*TupleToUserset) Descriptor
deprecated
func (*TupleToUserset) Descriptor() ([]byte, []int)
Deprecated: Use TupleToUserset.ProtoReflect.Descriptor instead.
func (*TupleToUserset) GetComputedUserset ¶
func (x *TupleToUserset) GetComputedUserset() *ComputedUserset
func (*TupleToUserset) GetTupleset ¶
func (x *TupleToUserset) GetTupleset() *TupleToUserset_Tupleset
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
type TupleToUserset_Tupleset ¶
type TupleToUserset_Tupleset struct { Relation string `protobuf:"bytes,1,opt,name=relation,proto3" json:"relation,omitempty"` // contains filtered or unexported fields }
func (*TupleToUserset_Tupleset) Descriptor
deprecated
func (*TupleToUserset_Tupleset) Descriptor() ([]byte, []int)
Deprecated: Use TupleToUserset_Tupleset.ProtoReflect.Descriptor instead.
func (*TupleToUserset_Tupleset) GetRelation ¶
func (x *TupleToUserset_Tupleset) GetRelation() string
func (*TupleToUserset_Tupleset) ProtoMessage ¶
func (*TupleToUserset_Tupleset) ProtoMessage()
func (*TupleToUserset_Tupleset) ProtoReflect ¶
func (x *TupleToUserset_Tupleset) ProtoReflect() protoreflect.Message
func (*TupleToUserset_Tupleset) Reset ¶
func (x *TupleToUserset_Tupleset) Reset()
func (*TupleToUserset_Tupleset) String ¶
func (x *TupleToUserset_Tupleset) String() string
type UnimplementedACLServiceServer ¶
type UnimplementedACLServiceServer struct { }
UnimplementedACLServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedACLServiceServer) Check ¶
func (UnimplementedACLServiceServer) Check(context.Context, *CheckRequest) (*CheckResponse, error)
func (UnimplementedACLServiceServer) ContentChangeCheck ¶
func (UnimplementedACLServiceServer) ContentChangeCheck(context.Context, *ContentChangeCheckRequest) (*CheckResponse, error)
func (UnimplementedACLServiceServer) Expand ¶
func (UnimplementedACLServiceServer) Expand(context.Context, *ExpandRequest) (*ExpandResponse, error)
func (UnimplementedACLServiceServer) Read ¶
func (UnimplementedACLServiceServer) Read(context.Context, *ReadRequest) (*ReadResponse, error)
func (UnimplementedACLServiceServer) Write ¶
func (UnimplementedACLServiceServer) Write(context.Context, *WriteRequest) (*WriteResponse, error)
type UnimplementedDeveloperServiceServer ¶
type UnimplementedDeveloperServiceServer struct { }
UnimplementedDeveloperServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedDeveloperServiceServer) EditCheck ¶
func (UnimplementedDeveloperServiceServer) EditCheck(context.Context, *EditCheckRequest) (*EditCheckResponse, error)
func (UnimplementedDeveloperServiceServer) LookupShared ¶
func (UnimplementedDeveloperServiceServer) LookupShared(context.Context, *LookupShareRequest) (*LookupShareResponse, error)
func (UnimplementedDeveloperServiceServer) Share ¶
func (UnimplementedDeveloperServiceServer) Share(context.Context, *ShareRequest) (*ShareResponse, error)
func (UnimplementedDeveloperServiceServer) Validate ¶
func (UnimplementedDeveloperServiceServer) Validate(context.Context, *ValidateRequest) (*ValidateResponse, error)
type UnimplementedNamespaceServiceServer ¶
type UnimplementedNamespaceServiceServer struct { }
UnimplementedNamespaceServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedNamespaceServiceServer) ReadConfig ¶
func (UnimplementedNamespaceServiceServer) ReadConfig(context.Context, *ReadConfigRequest) (*ReadConfigResponse, error)
func (UnimplementedNamespaceServiceServer) WriteConfig ¶
func (UnimplementedNamespaceServiceServer) WriteConfig(context.Context, *WriteConfigRequest) (*WriteConfigResponse, error)
type UnimplementedWatchServiceServer ¶
type UnimplementedWatchServiceServer struct { }
UnimplementedWatchServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedWatchServiceServer) Watch ¶
func (UnimplementedWatchServiceServer) Watch(*WatchRequest, WatchService_WatchServer) error
type UnsafeACLServiceServer ¶
type UnsafeACLServiceServer interface {
// contains filtered or unexported methods
}
UnsafeACLServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ACLServiceServer will result in compilation errors.
type UnsafeDeveloperServiceServer ¶
type UnsafeDeveloperServiceServer interface {
// contains filtered or unexported methods
}
UnsafeDeveloperServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DeveloperServiceServer will result in compilation errors.
type UnsafeNamespaceServiceServer ¶
type UnsafeNamespaceServiceServer interface {
// contains filtered or unexported methods
}
UnsafeNamespaceServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to NamespaceServiceServer will result in compilation errors.
type UnsafeWatchServiceServer ¶
type UnsafeWatchServiceServer interface {
// contains filtered or unexported methods
}
UnsafeWatchServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to WatchServiceServer will result in compilation errors.
type User ¶
type User struct { // Types that are assignable to UserOneof: // *User_Userset UserOneof isUser_UserOneof `protobuf_oneof:"user_oneof"` // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
func (*User) GetUserOneof ¶
func (m *User) GetUserOneof() isUser_UserOneof
func (*User) GetUserset ¶
func (x *User) GetUserset() *ObjectAndRelation
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
type User_Userset ¶
type User_Userset struct {
Userset *ObjectAndRelation `protobuf:"bytes,2,opt,name=userset,proto3,oneof"`
}
type UsersetRewrite ¶
type UsersetRewrite struct { // Types that are assignable to RewriteOperation: // *UsersetRewrite_Union // *UsersetRewrite_Intersection // *UsersetRewrite_Exclusion RewriteOperation isUsersetRewrite_RewriteOperation `protobuf_oneof:"rewrite_operation"` // contains filtered or unexported fields }
func (*UsersetRewrite) Descriptor
deprecated
func (*UsersetRewrite) Descriptor() ([]byte, []int)
Deprecated: Use UsersetRewrite.ProtoReflect.Descriptor instead.
func (*UsersetRewrite) GetExclusion ¶
func (x *UsersetRewrite) GetExclusion() *SetOperation
func (*UsersetRewrite) GetIntersection ¶
func (x *UsersetRewrite) GetIntersection() *SetOperation
func (*UsersetRewrite) GetRewriteOperation ¶
func (m *UsersetRewrite) GetRewriteOperation() isUsersetRewrite_RewriteOperation
func (*UsersetRewrite) GetUnion ¶
func (x *UsersetRewrite) GetUnion() *SetOperation
func (*UsersetRewrite) ProtoMessage ¶
func (*UsersetRewrite) ProtoMessage()
func (*UsersetRewrite) ProtoReflect ¶
func (x *UsersetRewrite) ProtoReflect() protoreflect.Message
func (*UsersetRewrite) Reset ¶
func (x *UsersetRewrite) Reset()
func (*UsersetRewrite) String ¶
func (x *UsersetRewrite) String() string
type UsersetRewrite_Exclusion ¶
type UsersetRewrite_Exclusion struct {
Exclusion *SetOperation `protobuf:"bytes,3,opt,name=exclusion,proto3,oneof"`
}
type UsersetRewrite_Intersection ¶
type UsersetRewrite_Intersection struct {
Intersection *SetOperation `protobuf:"bytes,2,opt,name=intersection,proto3,oneof"`
}
type UsersetRewrite_Union ¶
type UsersetRewrite_Union struct {
Union *SetOperation `protobuf:"bytes,1,opt,name=union,proto3,oneof"`
}
type ValidateRequest ¶
type ValidateRequest struct { Context *RequestContext `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` ValidationYaml string `protobuf:"bytes,3,opt,name=validation_yaml,json=validationYaml,proto3" json:"validation_yaml,omitempty"` UpdateValidationYaml bool `protobuf:"varint,4,opt,name=update_validation_yaml,json=updateValidationYaml,proto3" json:"update_validation_yaml,omitempty"` AssertionsYaml string `protobuf:"bytes,5,opt,name=assertions_yaml,json=assertionsYaml,proto3" json:"assertions_yaml,omitempty"` // contains filtered or unexported fields }
func (*ValidateRequest) Descriptor
deprecated
func (*ValidateRequest) Descriptor() ([]byte, []int)
Deprecated: Use ValidateRequest.ProtoReflect.Descriptor instead.
func (*ValidateRequest) GetAssertionsYaml ¶
func (x *ValidateRequest) GetAssertionsYaml() string
func (*ValidateRequest) GetContext ¶
func (x *ValidateRequest) GetContext() *RequestContext
func (*ValidateRequest) GetUpdateValidationYaml ¶
func (x *ValidateRequest) GetUpdateValidationYaml() bool
func (*ValidateRequest) GetValidationYaml ¶
func (x *ValidateRequest) GetValidationYaml() string
func (*ValidateRequest) ProtoMessage ¶
func (*ValidateRequest) ProtoMessage()
func (*ValidateRequest) ProtoReflect ¶
func (x *ValidateRequest) ProtoReflect() protoreflect.Message
func (*ValidateRequest) Reset ¶
func (x *ValidateRequest) Reset()
func (*ValidateRequest) String ¶
func (x *ValidateRequest) String() string
type ValidateResponse ¶
type ValidateResponse struct { ContextNamespaces []*NamespaceInformation `protobuf:"bytes,1,rep,name=context_namespaces,json=contextNamespaces,proto3" json:"context_namespaces,omitempty"` ValidationErrors []*ValidationError `protobuf:"bytes,2,rep,name=validation_errors,json=validationErrors,proto3" json:"validation_errors,omitempty"` UpdatedValidationYaml string `` /* 126-byte string literal not displayed */ // contains filtered or unexported fields }
func (*ValidateResponse) Descriptor
deprecated
func (*ValidateResponse) Descriptor() ([]byte, []int)
Deprecated: Use ValidateResponse.ProtoReflect.Descriptor instead.
func (*ValidateResponse) GetContextNamespaces ¶
func (x *ValidateResponse) GetContextNamespaces() []*NamespaceInformation
func (*ValidateResponse) GetUpdatedValidationYaml ¶
func (x *ValidateResponse) GetUpdatedValidationYaml() string
func (*ValidateResponse) GetValidationErrors ¶
func (x *ValidateResponse) GetValidationErrors() []*ValidationError
func (*ValidateResponse) ProtoMessage ¶
func (*ValidateResponse) ProtoMessage()
func (*ValidateResponse) ProtoReflect ¶
func (x *ValidateResponse) ProtoReflect() protoreflect.Message
func (*ValidateResponse) Reset ¶
func (x *ValidateResponse) Reset()
func (*ValidateResponse) String ¶
func (x *ValidateResponse) String() string
type ValidationError ¶
type ValidationError struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` Line uint32 `protobuf:"varint,2,opt,name=line,proto3" json:"line,omitempty"` Column uint32 `protobuf:"varint,3,opt,name=column,proto3" json:"column,omitempty"` Source ValidationError_Source `protobuf:"varint,4,opt,name=source,proto3,enum=ValidationError_Source" json:"source,omitempty"` Kind ValidationError_ErrorKind `protobuf:"varint,5,opt,name=kind,proto3,enum=ValidationError_ErrorKind" json:"kind,omitempty"` // NOTE: only for kind = EXTRA_TUPLE_FOUND Path []string `protobuf:"bytes,6,rep,name=path,proto3" json:"path,omitempty"` // For kind = DUPLICATE_TUPLE: the duplicate tuples // For kind = UNKNOWN_NAMESPACE: the unknown namespace Metadata string `protobuf:"bytes,7,opt,name=metadata,proto3" json:"metadata,omitempty"` // contains filtered or unexported fields }
func (*ValidationError) Descriptor
deprecated
func (*ValidationError) Descriptor() ([]byte, []int)
Deprecated: Use ValidationError.ProtoReflect.Descriptor instead.
func (*ValidationError) GetColumn ¶
func (x *ValidationError) GetColumn() uint32
func (*ValidationError) GetKind ¶
func (x *ValidationError) GetKind() ValidationError_ErrorKind
func (*ValidationError) GetLine ¶
func (x *ValidationError) GetLine() uint32
func (*ValidationError) GetMessage ¶
func (x *ValidationError) GetMessage() string
func (*ValidationError) GetMetadata ¶
func (x *ValidationError) GetMetadata() string
func (*ValidationError) GetPath ¶
func (x *ValidationError) GetPath() []string
func (*ValidationError) GetSource ¶
func (x *ValidationError) GetSource() ValidationError_Source
func (*ValidationError) ProtoMessage ¶
func (*ValidationError) ProtoMessage()
func (*ValidationError) ProtoReflect ¶
func (x *ValidationError) ProtoReflect() protoreflect.Message
func (*ValidationError) Reset ¶
func (x *ValidationError) Reset()
func (*ValidationError) String ¶
func (x *ValidationError) String() string
type ValidationError_ErrorKind ¶
type ValidationError_ErrorKind int32
const ( ValidationError_UNKNOWN_KIND ValidationError_ErrorKind = 0 ValidationError_PARSE_ERROR ValidationError_ErrorKind = 1 ValidationError_NAMESPACE_CONFIG_ISSUE ValidationError_ErrorKind = 2 ValidationError_DUPLICATE_TUPLE ValidationError_ErrorKind = 3 ValidationError_MISSING_EXPECTED_TUPLE ValidationError_ErrorKind = 4 ValidationError_EXTRA_TUPLE_FOUND ValidationError_ErrorKind = 5 ValidationError_UNKNOWN_NAMESPACE ValidationError_ErrorKind = 6 ValidationError_UNKNOWN_RELATION ValidationError_ErrorKind = 7 ValidationError_MAXIMUM_RECURSION ValidationError_ErrorKind = 8 ValidationError_ASSERTION_FAILED ValidationError_ErrorKind = 9 )
func (ValidationError_ErrorKind) Descriptor ¶
func (ValidationError_ErrorKind) Descriptor() protoreflect.EnumDescriptor
func (ValidationError_ErrorKind) Enum ¶
func (x ValidationError_ErrorKind) Enum() *ValidationError_ErrorKind
func (ValidationError_ErrorKind) EnumDescriptor
deprecated
func (ValidationError_ErrorKind) EnumDescriptor() ([]byte, []int)
Deprecated: Use ValidationError_ErrorKind.Descriptor instead.
func (ValidationError_ErrorKind) Number ¶
func (x ValidationError_ErrorKind) Number() protoreflect.EnumNumber
func (ValidationError_ErrorKind) String ¶
func (x ValidationError_ErrorKind) String() string
func (ValidationError_ErrorKind) Type ¶
func (ValidationError_ErrorKind) Type() protoreflect.EnumType
type ValidationError_Source ¶
type ValidationError_Source int32
const ( ValidationError_UNKNOWN_SOURCE ValidationError_Source = 0 ValidationError_NAMESPACE_CONFIG ValidationError_Source = 1 ValidationError_VALIDATION_TUPLE ValidationError_Source = 2 ValidationError_VALIDATION_YAML ValidationError_Source = 3 ValidationError_CHECK_WATCH ValidationError_Source = 4 ValidationError_ASSERTION ValidationError_Source = 5 )
func (ValidationError_Source) Descriptor ¶
func (ValidationError_Source) Descriptor() protoreflect.EnumDescriptor
func (ValidationError_Source) Enum ¶
func (x ValidationError_Source) Enum() *ValidationError_Source
func (ValidationError_Source) EnumDescriptor
deprecated
func (ValidationError_Source) EnumDescriptor() ([]byte, []int)
Deprecated: Use ValidationError_Source.Descriptor instead.
func (ValidationError_Source) Number ¶
func (x ValidationError_Source) Number() protoreflect.EnumNumber
func (ValidationError_Source) String ¶
func (x ValidationError_Source) String() string
func (ValidationError_Source) Type ¶
func (ValidationError_Source) Type() protoreflect.EnumType
type WatchRequest ¶
type WatchRequest struct { // A watch request specifies one or more namespaces and a zookie // representing the time to start watching. Namespaces []string `protobuf:"bytes,1,rep,name=namespaces,proto3" json:"namespaces,omitempty"` StartRevision *Zookie `protobuf:"bytes,2,opt,name=start_revision,json=startRevision,proto3" json:"start_revision,omitempty"` // contains filtered or unexported fields }
func (*WatchRequest) Descriptor
deprecated
func (*WatchRequest) Descriptor() ([]byte, []int)
Deprecated: Use WatchRequest.ProtoReflect.Descriptor instead.
func (*WatchRequest) GetNamespaces ¶
func (x *WatchRequest) GetNamespaces() []string
func (*WatchRequest) GetStartRevision ¶
func (x *WatchRequest) GetStartRevision() *Zookie
func (*WatchRequest) ProtoMessage ¶
func (*WatchRequest) ProtoMessage()
func (*WatchRequest) ProtoReflect ¶
func (x *WatchRequest) ProtoReflect() protoreflect.Message
func (*WatchRequest) Reset ¶
func (x *WatchRequest) Reset()
func (*WatchRequest) String ¶
func (x *WatchRequest) String() string
type WatchResponse ¶
type WatchResponse struct { // A watch response contains all tuple modification events in ascending // timestamp order, from the requested start timestamp to a timestamp // encoded in a heartbeat zookie included in the watch response. The client // can use the heartbeat zookie to resume watching where the previous watch // response left off. Updates []*RelationTupleUpdate `protobuf:"bytes,1,rep,name=updates,proto3" json:"updates,omitempty"` EndRevision *Zookie `protobuf:"bytes,2,opt,name=end_revision,json=endRevision,proto3" json:"end_revision,omitempty"` // contains filtered or unexported fields }
func (*WatchResponse) Descriptor
deprecated
func (*WatchResponse) Descriptor() ([]byte, []int)
Deprecated: Use WatchResponse.ProtoReflect.Descriptor instead.
func (*WatchResponse) GetEndRevision ¶
func (x *WatchResponse) GetEndRevision() *Zookie
func (*WatchResponse) GetUpdates ¶
func (x *WatchResponse) GetUpdates() []*RelationTupleUpdate
func (*WatchResponse) ProtoMessage ¶
func (*WatchResponse) ProtoMessage()
func (*WatchResponse) ProtoReflect ¶
func (x *WatchResponse) ProtoReflect() protoreflect.Message
func (*WatchResponse) Reset ¶
func (x *WatchResponse) Reset()
func (*WatchResponse) String ¶
func (x *WatchResponse) String() string
type WatchServiceClient ¶
type WatchServiceClient interface {
Watch(ctx context.Context, in *WatchRequest, opts ...grpc.CallOption) (WatchService_WatchClient, error)
}
WatchServiceClient is the client API for WatchService 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 NewWatchServiceClient ¶
func NewWatchServiceClient(cc grpc.ClientConnInterface) WatchServiceClient
type WatchServiceServer ¶
type WatchServiceServer interface { Watch(*WatchRequest, WatchService_WatchServer) error // contains filtered or unexported methods }
WatchServiceServer is the server API for WatchService service. All implementations must embed UnimplementedWatchServiceServer for forward compatibility
type WatchService_WatchClient ¶
type WatchService_WatchClient interface { Recv() (*WatchResponse, error) grpc.ClientStream }
type WatchService_WatchServer ¶
type WatchService_WatchServer interface { Send(*WatchResponse) error grpc.ServerStream }
type WriteConfigRequest ¶
type WriteConfigRequest struct { Config *NamespaceDefinition `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"` // contains filtered or unexported fields }
func (*WriteConfigRequest) Descriptor
deprecated
func (*WriteConfigRequest) Descriptor() ([]byte, []int)
Deprecated: Use WriteConfigRequest.ProtoReflect.Descriptor instead.
func (*WriteConfigRequest) GetConfig ¶
func (x *WriteConfigRequest) GetConfig() *NamespaceDefinition
func (*WriteConfigRequest) ProtoMessage ¶
func (*WriteConfigRequest) ProtoMessage()
func (*WriteConfigRequest) ProtoReflect ¶
func (x *WriteConfigRequest) ProtoReflect() protoreflect.Message
func (*WriteConfigRequest) Reset ¶
func (x *WriteConfigRequest) Reset()
func (*WriteConfigRequest) String ¶
func (x *WriteConfigRequest) String() string
type WriteConfigResponse ¶
type WriteConfigResponse struct { Revision *Zookie `protobuf:"bytes,1,opt,name=revision,proto3" json:"revision,omitempty"` // contains filtered or unexported fields }
func (*WriteConfigResponse) Descriptor
deprecated
func (*WriteConfigResponse) Descriptor() ([]byte, []int)
Deprecated: Use WriteConfigResponse.ProtoReflect.Descriptor instead.
func (*WriteConfigResponse) GetRevision ¶
func (x *WriteConfigResponse) GetRevision() *Zookie
func (*WriteConfigResponse) ProtoMessage ¶
func (*WriteConfigResponse) ProtoMessage()
func (*WriteConfigResponse) ProtoReflect ¶
func (x *WriteConfigResponse) ProtoReflect() protoreflect.Message
func (*WriteConfigResponse) Reset ¶
func (x *WriteConfigResponse) Reset()
func (*WriteConfigResponse) String ¶
func (x *WriteConfigResponse) String() string
type WriteRequest ¶
type WriteRequest struct { // Clients may modify a single relation tuple to add or remove an ACL. They // may also modify all tuples related to an object via a read-modify-write // process with optimistic concurrency control [21] that uses a read RPC // followed by a write RPC: // // 1. Read all relation tuples of an object, including a per-object “lock” // tuple. // 2. Generate the tuples to write or delete. Send the writes, along with a // touch on the lock tuple, to Zanzibar, with the condition that the // writes will be committed only if the lock tuple has not been modified // since the read. // 3. If the write condition is not met, go back to step 1. // The lock tuple is just a regular relation tuple used by clients to // detect write races. // // The lock tuple is just a regular relation tuple used by clients to // detect write races. WriteConditions []*RelationTuple `protobuf:"bytes,1,rep,name=write_conditions,json=writeConditions,proto3" json:"write_conditions,omitempty"` // To be bounded by configuration Updates []*RelationTupleUpdate `protobuf:"bytes,2,rep,name=updates,proto3" json:"updates,omitempty"` // contains filtered or unexported fields }
func (*WriteRequest) Descriptor
deprecated
func (*WriteRequest) Descriptor() ([]byte, []int)
Deprecated: Use WriteRequest.ProtoReflect.Descriptor instead.
func (*WriteRequest) GetUpdates ¶
func (x *WriteRequest) GetUpdates() []*RelationTupleUpdate
func (*WriteRequest) GetWriteConditions ¶
func (x *WriteRequest) GetWriteConditions() []*RelationTuple
func (*WriteRequest) ProtoMessage ¶
func (*WriteRequest) ProtoMessage()
func (*WriteRequest) ProtoReflect ¶
func (x *WriteRequest) ProtoReflect() protoreflect.Message
func (*WriteRequest) Reset ¶
func (x *WriteRequest) Reset()
func (*WriteRequest) String ¶
func (x *WriteRequest) String() string
type WriteResponse ¶
type WriteResponse struct { Revision *Zookie `protobuf:"bytes,1,opt,name=revision,proto3" json:"revision,omitempty"` // contains filtered or unexported fields }
func (*WriteResponse) Descriptor
deprecated
func (*WriteResponse) Descriptor() ([]byte, []int)
Deprecated: Use WriteResponse.ProtoReflect.Descriptor instead.
func (*WriteResponse) GetRevision ¶
func (x *WriteResponse) GetRevision() *Zookie
func (*WriteResponse) ProtoMessage ¶
func (*WriteResponse) ProtoMessage()
func (*WriteResponse) ProtoReflect ¶
func (x *WriteResponse) ProtoReflect() protoreflect.Message
func (*WriteResponse) Reset ¶
func (x *WriteResponse) Reset()
func (*WriteResponse) String ¶
func (x *WriteResponse) String() string
type Zookie ¶
type Zookie struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*Zookie) Descriptor
deprecated
func (*Zookie) ProtoMessage ¶
func (*Zookie) ProtoMessage()
func (*Zookie) ProtoReflect ¶
func (x *Zookie) ProtoReflect() protoreflect.Message