Documentation ¶
Overview ¶
Package v1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package v1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package v1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterPermissionsServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterPermissionsServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client PermissionsServiceClient) error
- func RegisterPermissionsServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterPermissionsServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server PermissionsServiceServer) error
- func RegisterPermissionsServiceServer(s grpc.ServiceRegistrar, srv PermissionsServiceServer)
- func RegisterSchemaServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterSchemaServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SchemaServiceClient) error
- func RegisterSchemaServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterSchemaServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SchemaServiceServer) error
- func RegisterSchemaServiceServer(s grpc.ServiceRegistrar, srv SchemaServiceServer)
- func RegisterWatchServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterWatchServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client WatchServiceClient) error
- func RegisterWatchServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterWatchServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server WatchServiceServer) error
- func RegisterWatchServiceServer(s grpc.ServiceRegistrar, srv WatchServiceServer)
- type AlgebraicSubjectSet
- func (*AlgebraicSubjectSet) Descriptor() ([]byte, []int)deprecated
- func (x *AlgebraicSubjectSet) GetChildren() []*PermissionRelationshipTree
- func (x *AlgebraicSubjectSet) GetOperation() AlgebraicSubjectSet_Operation
- func (*AlgebraicSubjectSet) ProtoMessage()
- func (x *AlgebraicSubjectSet) ProtoReflect() protoreflect.Message
- func (x *AlgebraicSubjectSet) Reset()
- func (x *AlgebraicSubjectSet) String() string
- func (m *AlgebraicSubjectSet) Validate() error
- func (m *AlgebraicSubjectSet) ValidateAll() error
- type AlgebraicSubjectSetMultiError
- type AlgebraicSubjectSetValidationError
- func (e AlgebraicSubjectSetValidationError) Cause() error
- func (e AlgebraicSubjectSetValidationError) Error() string
- func (e AlgebraicSubjectSetValidationError) ErrorName() string
- func (e AlgebraicSubjectSetValidationError) Field() string
- func (e AlgebraicSubjectSetValidationError) Key() bool
- func (e AlgebraicSubjectSetValidationError) Reason() string
- type AlgebraicSubjectSet_Operation
- func (AlgebraicSubjectSet_Operation) Descriptor() protoreflect.EnumDescriptor
- func (x AlgebraicSubjectSet_Operation) Enum() *AlgebraicSubjectSet_Operation
- func (AlgebraicSubjectSet_Operation) EnumDescriptor() ([]byte, []int)deprecated
- func (x AlgebraicSubjectSet_Operation) Number() protoreflect.EnumNumber
- func (x AlgebraicSubjectSet_Operation) String() string
- func (AlgebraicSubjectSet_Operation) Type() protoreflect.EnumType
- type CheckPermissionRequest
- func (*CheckPermissionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CheckPermissionRequest) GetConsistency() *Consistency
- func (x *CheckPermissionRequest) GetPermission() string
- func (x *CheckPermissionRequest) GetResource() *ObjectReference
- func (x *CheckPermissionRequest) GetSubject() *SubjectReference
- func (m *CheckPermissionRequest) HandwrittenValidate() error
- func (*CheckPermissionRequest) ProtoMessage()
- func (x *CheckPermissionRequest) ProtoReflect() protoreflect.Message
- func (x *CheckPermissionRequest) Reset()
- func (x *CheckPermissionRequest) String() string
- func (m *CheckPermissionRequest) Validate() error
- func (m *CheckPermissionRequest) ValidateAll() error
- type CheckPermissionRequestMultiError
- type CheckPermissionRequestValidationError
- func (e CheckPermissionRequestValidationError) Cause() error
- func (e CheckPermissionRequestValidationError) Error() string
- func (e CheckPermissionRequestValidationError) ErrorName() string
- func (e CheckPermissionRequestValidationError) Field() string
- func (e CheckPermissionRequestValidationError) Key() bool
- func (e CheckPermissionRequestValidationError) Reason() string
- type CheckPermissionResponse
- func (*CheckPermissionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CheckPermissionResponse) GetCheckedAt() *ZedToken
- func (x *CheckPermissionResponse) GetPermissionship() CheckPermissionResponse_Permissionship
- func (*CheckPermissionResponse) ProtoMessage()
- func (x *CheckPermissionResponse) ProtoReflect() protoreflect.Message
- func (x *CheckPermissionResponse) Reset()
- func (x *CheckPermissionResponse) String() string
- func (m *CheckPermissionResponse) Validate() error
- func (m *CheckPermissionResponse) ValidateAll() error
- type CheckPermissionResponseMultiError
- type CheckPermissionResponseValidationError
- func (e CheckPermissionResponseValidationError) Cause() error
- func (e CheckPermissionResponseValidationError) Error() string
- func (e CheckPermissionResponseValidationError) ErrorName() string
- func (e CheckPermissionResponseValidationError) Field() string
- func (e CheckPermissionResponseValidationError) Key() bool
- func (e CheckPermissionResponseValidationError) Reason() string
- type CheckPermissionResponse_Permissionship
- func (CheckPermissionResponse_Permissionship) Descriptor() protoreflect.EnumDescriptor
- func (x CheckPermissionResponse_Permissionship) Enum() *CheckPermissionResponse_Permissionship
- func (CheckPermissionResponse_Permissionship) EnumDescriptor() ([]byte, []int)deprecated
- func (x CheckPermissionResponse_Permissionship) Number() protoreflect.EnumNumber
- func (x CheckPermissionResponse_Permissionship) String() string
- func (CheckPermissionResponse_Permissionship) Type() protoreflect.EnumType
- type Consistency
- func (*Consistency) Descriptor() ([]byte, []int)deprecated
- func (x *Consistency) GetAtExactSnapshot() *ZedToken
- func (x *Consistency) GetAtLeastAsFresh() *ZedToken
- func (x *Consistency) GetFullyConsistent() bool
- func (x *Consistency) GetMinimizeLatency() bool
- func (m *Consistency) GetRequirement() isConsistency_Requirement
- func (*Consistency) ProtoMessage()
- func (x *Consistency) ProtoReflect() protoreflect.Message
- func (x *Consistency) Reset()
- func (x *Consistency) String() string
- func (m *Consistency) Validate() error
- func (m *Consistency) ValidateAll() error
- type ConsistencyMultiError
- type ConsistencyValidationError
- func (e ConsistencyValidationError) Cause() error
- func (e ConsistencyValidationError) Error() string
- func (e ConsistencyValidationError) ErrorName() string
- func (e ConsistencyValidationError) Field() string
- func (e ConsistencyValidationError) Key() bool
- func (e ConsistencyValidationError) Reason() string
- type Consistency_AtExactSnapshot
- type Consistency_AtLeastAsFresh
- type Consistency_FullyConsistent
- type Consistency_MinimizeLatency
- type DeleteRelationshipsRequest
- func (*DeleteRelationshipsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteRelationshipsRequest) GetOptionalPreconditions() []*Precondition
- func (x *DeleteRelationshipsRequest) GetRelationshipFilter() *RelationshipFilter
- func (m *DeleteRelationshipsRequest) HandwrittenValidate() error
- func (*DeleteRelationshipsRequest) ProtoMessage()
- func (x *DeleteRelationshipsRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteRelationshipsRequest) Reset()
- func (x *DeleteRelationshipsRequest) String() string
- func (m *DeleteRelationshipsRequest) Validate() error
- func (m *DeleteRelationshipsRequest) ValidateAll() error
- type DeleteRelationshipsRequestMultiError
- type DeleteRelationshipsRequestValidationError
- func (e DeleteRelationshipsRequestValidationError) Cause() error
- func (e DeleteRelationshipsRequestValidationError) Error() string
- func (e DeleteRelationshipsRequestValidationError) ErrorName() string
- func (e DeleteRelationshipsRequestValidationError) Field() string
- func (e DeleteRelationshipsRequestValidationError) Key() bool
- func (e DeleteRelationshipsRequestValidationError) Reason() string
- type DeleteRelationshipsResponse
- func (*DeleteRelationshipsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteRelationshipsResponse) GetDeletedAt() *ZedToken
- func (*DeleteRelationshipsResponse) ProtoMessage()
- func (x *DeleteRelationshipsResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteRelationshipsResponse) Reset()
- func (x *DeleteRelationshipsResponse) String() string
- func (m *DeleteRelationshipsResponse) Validate() error
- func (m *DeleteRelationshipsResponse) ValidateAll() error
- type DeleteRelationshipsResponseMultiError
- type DeleteRelationshipsResponseValidationError
- func (e DeleteRelationshipsResponseValidationError) Cause() error
- func (e DeleteRelationshipsResponseValidationError) Error() string
- func (e DeleteRelationshipsResponseValidationError) ErrorName() string
- func (e DeleteRelationshipsResponseValidationError) Field() string
- func (e DeleteRelationshipsResponseValidationError) Key() bool
- func (e DeleteRelationshipsResponseValidationError) Reason() string
- type DirectSubjectSet
- func (*DirectSubjectSet) Descriptor() ([]byte, []int)deprecated
- func (x *DirectSubjectSet) GetSubjects() []*SubjectReference
- func (*DirectSubjectSet) ProtoMessage()
- func (x *DirectSubjectSet) ProtoReflect() protoreflect.Message
- func (x *DirectSubjectSet) Reset()
- func (x *DirectSubjectSet) String() string
- func (m *DirectSubjectSet) Validate() error
- func (m *DirectSubjectSet) ValidateAll() error
- type DirectSubjectSetMultiError
- type DirectSubjectSetValidationError
- func (e DirectSubjectSetValidationError) Cause() error
- func (e DirectSubjectSetValidationError) Error() string
- func (e DirectSubjectSetValidationError) ErrorName() string
- func (e DirectSubjectSetValidationError) Field() string
- func (e DirectSubjectSetValidationError) Key() bool
- func (e DirectSubjectSetValidationError) Reason() string
- type ExpandPermissionTreeRequest
- func (*ExpandPermissionTreeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ExpandPermissionTreeRequest) GetConsistency() *Consistency
- func (x *ExpandPermissionTreeRequest) GetPermission() string
- func (x *ExpandPermissionTreeRequest) GetResource() *ObjectReference
- func (m *ExpandPermissionTreeRequest) HandwrittenValidate() error
- func (*ExpandPermissionTreeRequest) ProtoMessage()
- func (x *ExpandPermissionTreeRequest) ProtoReflect() protoreflect.Message
- func (x *ExpandPermissionTreeRequest) Reset()
- func (x *ExpandPermissionTreeRequest) String() string
- func (m *ExpandPermissionTreeRequest) Validate() error
- func (m *ExpandPermissionTreeRequest) ValidateAll() error
- type ExpandPermissionTreeRequestMultiError
- type ExpandPermissionTreeRequestValidationError
- func (e ExpandPermissionTreeRequestValidationError) Cause() error
- func (e ExpandPermissionTreeRequestValidationError) Error() string
- func (e ExpandPermissionTreeRequestValidationError) ErrorName() string
- func (e ExpandPermissionTreeRequestValidationError) Field() string
- func (e ExpandPermissionTreeRequestValidationError) Key() bool
- func (e ExpandPermissionTreeRequestValidationError) Reason() string
- type ExpandPermissionTreeResponse
- func (*ExpandPermissionTreeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ExpandPermissionTreeResponse) GetExpandedAt() *ZedToken
- func (x *ExpandPermissionTreeResponse) GetTreeRoot() *PermissionRelationshipTree
- func (*ExpandPermissionTreeResponse) ProtoMessage()
- func (x *ExpandPermissionTreeResponse) ProtoReflect() protoreflect.Message
- func (x *ExpandPermissionTreeResponse) Reset()
- func (x *ExpandPermissionTreeResponse) String() string
- func (m *ExpandPermissionTreeResponse) Validate() error
- func (m *ExpandPermissionTreeResponse) ValidateAll() error
- type ExpandPermissionTreeResponseMultiError
- type ExpandPermissionTreeResponseValidationError
- func (e ExpandPermissionTreeResponseValidationError) Cause() error
- func (e ExpandPermissionTreeResponseValidationError) Error() string
- func (e ExpandPermissionTreeResponseValidationError) ErrorName() string
- func (e ExpandPermissionTreeResponseValidationError) Field() string
- func (e ExpandPermissionTreeResponseValidationError) Key() bool
- func (e ExpandPermissionTreeResponseValidationError) Reason() string
- type LookupResourcesRequest
- func (*LookupResourcesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LookupResourcesRequest) GetConsistency() *Consistency
- func (x *LookupResourcesRequest) GetPermission() string
- func (x *LookupResourcesRequest) GetResourceObjectType() string
- func (x *LookupResourcesRequest) GetSubject() *SubjectReference
- func (*LookupResourcesRequest) ProtoMessage()
- func (x *LookupResourcesRequest) ProtoReflect() protoreflect.Message
- func (x *LookupResourcesRequest) Reset()
- func (x *LookupResourcesRequest) String() string
- func (m *LookupResourcesRequest) Validate() error
- func (m *LookupResourcesRequest) ValidateAll() error
- type LookupResourcesRequestMultiError
- type LookupResourcesRequestValidationError
- func (e LookupResourcesRequestValidationError) Cause() error
- func (e LookupResourcesRequestValidationError) Error() string
- func (e LookupResourcesRequestValidationError) ErrorName() string
- func (e LookupResourcesRequestValidationError) Field() string
- func (e LookupResourcesRequestValidationError) Key() bool
- func (e LookupResourcesRequestValidationError) Reason() string
- type LookupResourcesResponse
- func (*LookupResourcesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LookupResourcesResponse) GetLookedUpAt() *ZedToken
- func (x *LookupResourcesResponse) GetResourceObjectId() string
- func (*LookupResourcesResponse) ProtoMessage()
- func (x *LookupResourcesResponse) ProtoReflect() protoreflect.Message
- func (x *LookupResourcesResponse) Reset()
- func (x *LookupResourcesResponse) String() string
- func (m *LookupResourcesResponse) Validate() error
- func (m *LookupResourcesResponse) ValidateAll() error
- type LookupResourcesResponseMultiError
- type LookupResourcesResponseValidationError
- func (e LookupResourcesResponseValidationError) Cause() error
- func (e LookupResourcesResponseValidationError) Error() string
- func (e LookupResourcesResponseValidationError) ErrorName() string
- func (e LookupResourcesResponseValidationError) Field() string
- func (e LookupResourcesResponseValidationError) Key() bool
- func (e LookupResourcesResponseValidationError) Reason() string
- type ObjectReference
- func (*ObjectReference) Descriptor() ([]byte, []int)deprecated
- func (x *ObjectReference) GetObjectId() string
- func (x *ObjectReference) GetObjectType() string
- func (*ObjectReference) ProtoMessage()
- func (x *ObjectReference) ProtoReflect() protoreflect.Message
- func (x *ObjectReference) Reset()
- func (x *ObjectReference) String() string
- func (m *ObjectReference) Validate() error
- func (m *ObjectReference) ValidateAll() error
- type ObjectReferenceMultiError
- type ObjectReferenceValidationError
- func (e ObjectReferenceValidationError) Cause() error
- func (e ObjectReferenceValidationError) Error() string
- func (e ObjectReferenceValidationError) ErrorName() string
- func (e ObjectReferenceValidationError) Field() string
- func (e ObjectReferenceValidationError) Key() bool
- func (e ObjectReferenceValidationError) Reason() string
- type PermissionRelationshipTree
- func (*PermissionRelationshipTree) Descriptor() ([]byte, []int)deprecated
- func (x *PermissionRelationshipTree) GetExpandedObject() *ObjectReference
- func (x *PermissionRelationshipTree) GetExpandedRelation() string
- func (x *PermissionRelationshipTree) GetIntermediate() *AlgebraicSubjectSet
- func (x *PermissionRelationshipTree) GetLeaf() *DirectSubjectSet
- func (m *PermissionRelationshipTree) GetTreeType() isPermissionRelationshipTree_TreeType
- func (*PermissionRelationshipTree) ProtoMessage()
- func (x *PermissionRelationshipTree) ProtoReflect() protoreflect.Message
- func (x *PermissionRelationshipTree) Reset()
- func (x *PermissionRelationshipTree) String() string
- func (m *PermissionRelationshipTree) Validate() error
- func (m *PermissionRelationshipTree) ValidateAll() error
- type PermissionRelationshipTreeMultiError
- type PermissionRelationshipTreeValidationError
- func (e PermissionRelationshipTreeValidationError) Cause() error
- func (e PermissionRelationshipTreeValidationError) Error() string
- func (e PermissionRelationshipTreeValidationError) ErrorName() string
- func (e PermissionRelationshipTreeValidationError) Field() string
- func (e PermissionRelationshipTreeValidationError) Key() bool
- func (e PermissionRelationshipTreeValidationError) Reason() string
- type PermissionRelationshipTree_Intermediate
- type PermissionRelationshipTree_Leaf
- type PermissionsServiceClient
- type PermissionsServiceServer
- type PermissionsService_LookupResourcesClient
- type PermissionsService_LookupResourcesServer
- type PermissionsService_ReadRelationshipsClient
- type PermissionsService_ReadRelationshipsServer
- type Precondition
- func (*Precondition) Descriptor() ([]byte, []int)deprecated
- func (x *Precondition) GetFilter() *RelationshipFilter
- func (x *Precondition) GetOperation() Precondition_Operation
- func (m *Precondition) HandwrittenValidate() error
- func (*Precondition) ProtoMessage()
- func (x *Precondition) ProtoReflect() protoreflect.Message
- func (x *Precondition) Reset()
- func (x *Precondition) String() string
- func (m *Precondition) Validate() error
- func (m *Precondition) ValidateAll() error
- type PreconditionMultiError
- type PreconditionValidationError
- func (e PreconditionValidationError) Cause() error
- func (e PreconditionValidationError) Error() string
- func (e PreconditionValidationError) ErrorName() string
- func (e PreconditionValidationError) Field() string
- func (e PreconditionValidationError) Key() bool
- func (e PreconditionValidationError) Reason() string
- type Precondition_Operation
- func (Precondition_Operation) Descriptor() protoreflect.EnumDescriptor
- func (x Precondition_Operation) Enum() *Precondition_Operation
- func (Precondition_Operation) EnumDescriptor() ([]byte, []int)deprecated
- func (x Precondition_Operation) Number() protoreflect.EnumNumber
- func (x Precondition_Operation) String() string
- func (Precondition_Operation) Type() protoreflect.EnumType
- type ReadRelationshipsRequest
- func (*ReadRelationshipsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ReadRelationshipsRequest) GetConsistency() *Consistency
- func (x *ReadRelationshipsRequest) GetRelationshipFilter() *RelationshipFilter
- func (*ReadRelationshipsRequest) ProtoMessage()
- func (x *ReadRelationshipsRequest) ProtoReflect() protoreflect.Message
- func (x *ReadRelationshipsRequest) Reset()
- func (x *ReadRelationshipsRequest) String() string
- func (m *ReadRelationshipsRequest) Validate() error
- func (m *ReadRelationshipsRequest) ValidateAll() error
- type ReadRelationshipsRequestMultiError
- type ReadRelationshipsRequestValidationError
- func (e ReadRelationshipsRequestValidationError) Cause() error
- func (e ReadRelationshipsRequestValidationError) Error() string
- func (e ReadRelationshipsRequestValidationError) ErrorName() string
- func (e ReadRelationshipsRequestValidationError) Field() string
- func (e ReadRelationshipsRequestValidationError) Key() bool
- func (e ReadRelationshipsRequestValidationError) Reason() string
- type ReadRelationshipsResponse
- func (*ReadRelationshipsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ReadRelationshipsResponse) GetReadAt() *ZedToken
- func (x *ReadRelationshipsResponse) GetRelationship() *Relationship
- func (*ReadRelationshipsResponse) ProtoMessage()
- func (x *ReadRelationshipsResponse) ProtoReflect() protoreflect.Message
- func (x *ReadRelationshipsResponse) Reset()
- func (x *ReadRelationshipsResponse) String() string
- func (m *ReadRelationshipsResponse) Validate() error
- func (m *ReadRelationshipsResponse) ValidateAll() error
- type ReadRelationshipsResponseMultiError
- type ReadRelationshipsResponseValidationError
- func (e ReadRelationshipsResponseValidationError) Cause() error
- func (e ReadRelationshipsResponseValidationError) Error() string
- func (e ReadRelationshipsResponseValidationError) ErrorName() string
- func (e ReadRelationshipsResponseValidationError) Field() string
- func (e ReadRelationshipsResponseValidationError) Key() bool
- func (e ReadRelationshipsResponseValidationError) Reason() string
- type ReadSchemaRequest
- func (*ReadSchemaRequest) Descriptor() ([]byte, []int)deprecated
- func (*ReadSchemaRequest) ProtoMessage()
- func (x *ReadSchemaRequest) ProtoReflect() protoreflect.Message
- func (x *ReadSchemaRequest) Reset()
- func (x *ReadSchemaRequest) String() string
- func (m *ReadSchemaRequest) Validate() error
- func (m *ReadSchemaRequest) ValidateAll() error
- type ReadSchemaRequestMultiError
- type ReadSchemaRequestValidationError
- func (e ReadSchemaRequestValidationError) Cause() error
- func (e ReadSchemaRequestValidationError) Error() string
- func (e ReadSchemaRequestValidationError) ErrorName() string
- func (e ReadSchemaRequestValidationError) Field() string
- func (e ReadSchemaRequestValidationError) Key() bool
- func (e ReadSchemaRequestValidationError) Reason() string
- type ReadSchemaResponse
- func (*ReadSchemaResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ReadSchemaResponse) GetSchemaText() string
- func (*ReadSchemaResponse) ProtoMessage()
- func (x *ReadSchemaResponse) ProtoReflect() protoreflect.Message
- func (x *ReadSchemaResponse) Reset()
- func (x *ReadSchemaResponse) String() string
- func (m *ReadSchemaResponse) Validate() error
- func (m *ReadSchemaResponse) ValidateAll() error
- type ReadSchemaResponseMultiError
- type ReadSchemaResponseValidationError
- func (e ReadSchemaResponseValidationError) Cause() error
- func (e ReadSchemaResponseValidationError) Error() string
- func (e ReadSchemaResponseValidationError) ErrorName() string
- func (e ReadSchemaResponseValidationError) Field() string
- func (e ReadSchemaResponseValidationError) Key() bool
- func (e ReadSchemaResponseValidationError) Reason() string
- type Relationship
- func (*Relationship) Descriptor() ([]byte, []int)deprecated
- func (x *Relationship) GetRelation() string
- func (x *Relationship) GetResource() *ObjectReference
- func (x *Relationship) GetSubject() *SubjectReference
- func (m *Relationship) HandwrittenValidate() error
- func (*Relationship) ProtoMessage()
- func (x *Relationship) ProtoReflect() protoreflect.Message
- func (x *Relationship) Reset()
- func (x *Relationship) String() string
- func (m *Relationship) Validate() error
- func (m *Relationship) ValidateAll() error
- type RelationshipFilter
- func (*RelationshipFilter) Descriptor() ([]byte, []int)deprecated
- func (x *RelationshipFilter) GetOptionalRelation() string
- func (x *RelationshipFilter) GetOptionalResourceId() string
- func (x *RelationshipFilter) GetOptionalSubjectFilter() *SubjectFilter
- func (x *RelationshipFilter) GetResourceType() string
- func (m *RelationshipFilter) HandwrittenValidate() error
- func (*RelationshipFilter) ProtoMessage()
- func (x *RelationshipFilter) ProtoReflect() protoreflect.Message
- func (x *RelationshipFilter) Reset()
- func (x *RelationshipFilter) String() string
- func (m *RelationshipFilter) Validate() error
- func (m *RelationshipFilter) ValidateAll() error
- type RelationshipFilterMultiError
- type RelationshipFilterValidationError
- func (e RelationshipFilterValidationError) Cause() error
- func (e RelationshipFilterValidationError) Error() string
- func (e RelationshipFilterValidationError) ErrorName() string
- func (e RelationshipFilterValidationError) Field() string
- func (e RelationshipFilterValidationError) Key() bool
- func (e RelationshipFilterValidationError) Reason() string
- type RelationshipMultiError
- type RelationshipUpdate
- func (*RelationshipUpdate) Descriptor() ([]byte, []int)deprecated
- func (x *RelationshipUpdate) GetOperation() RelationshipUpdate_Operation
- func (x *RelationshipUpdate) GetRelationship() *Relationship
- func (m *RelationshipUpdate) HandwrittenValidate() error
- func (*RelationshipUpdate) ProtoMessage()
- func (x *RelationshipUpdate) ProtoReflect() protoreflect.Message
- func (x *RelationshipUpdate) Reset()
- func (x *RelationshipUpdate) String() string
- func (m *RelationshipUpdate) Validate() error
- func (m *RelationshipUpdate) ValidateAll() error
- type RelationshipUpdateMultiError
- type RelationshipUpdateValidationError
- func (e RelationshipUpdateValidationError) Cause() error
- func (e RelationshipUpdateValidationError) Error() string
- func (e RelationshipUpdateValidationError) ErrorName() string
- func (e RelationshipUpdateValidationError) Field() string
- func (e RelationshipUpdateValidationError) Key() bool
- func (e RelationshipUpdateValidationError) Reason() string
- type RelationshipUpdate_Operation
- func (RelationshipUpdate_Operation) Descriptor() protoreflect.EnumDescriptor
- func (x RelationshipUpdate_Operation) Enum() *RelationshipUpdate_Operation
- func (RelationshipUpdate_Operation) EnumDescriptor() ([]byte, []int)deprecated
- func (x RelationshipUpdate_Operation) Number() protoreflect.EnumNumber
- func (x RelationshipUpdate_Operation) String() string
- func (RelationshipUpdate_Operation) Type() protoreflect.EnumType
- type RelationshipValidationError
- func (e RelationshipValidationError) Cause() error
- func (e RelationshipValidationError) Error() string
- func (e RelationshipValidationError) ErrorName() string
- func (e RelationshipValidationError) Field() string
- func (e RelationshipValidationError) Key() bool
- func (e RelationshipValidationError) Reason() string
- type SchemaServiceClient
- type SchemaServiceServer
- type SubjectFilter
- func (*SubjectFilter) Descriptor() ([]byte, []int)deprecated
- func (x *SubjectFilter) GetOptionalRelation() *SubjectFilter_RelationFilter
- func (x *SubjectFilter) GetOptionalSubjectId() string
- func (x *SubjectFilter) GetSubjectType() string
- func (m *SubjectFilter) HandwrittenValidate() error
- func (*SubjectFilter) ProtoMessage()
- func (x *SubjectFilter) ProtoReflect() protoreflect.Message
- func (x *SubjectFilter) Reset()
- func (x *SubjectFilter) String() string
- func (m *SubjectFilter) Validate() error
- func (m *SubjectFilter) ValidateAll() error
- type SubjectFilterMultiError
- type SubjectFilterValidationError
- func (e SubjectFilterValidationError) Cause() error
- func (e SubjectFilterValidationError) Error() string
- func (e SubjectFilterValidationError) ErrorName() string
- func (e SubjectFilterValidationError) Field() string
- func (e SubjectFilterValidationError) Key() bool
- func (e SubjectFilterValidationError) Reason() string
- type SubjectFilter_RelationFilter
- func (*SubjectFilter_RelationFilter) Descriptor() ([]byte, []int)deprecated
- func (x *SubjectFilter_RelationFilter) GetRelation() string
- func (*SubjectFilter_RelationFilter) ProtoMessage()
- func (x *SubjectFilter_RelationFilter) ProtoReflect() protoreflect.Message
- func (x *SubjectFilter_RelationFilter) Reset()
- func (x *SubjectFilter_RelationFilter) String() string
- func (m *SubjectFilter_RelationFilter) Validate() error
- func (m *SubjectFilter_RelationFilter) ValidateAll() error
- type SubjectFilter_RelationFilterMultiError
- type SubjectFilter_RelationFilterValidationError
- func (e SubjectFilter_RelationFilterValidationError) Cause() error
- func (e SubjectFilter_RelationFilterValidationError) Error() string
- func (e SubjectFilter_RelationFilterValidationError) ErrorName() string
- func (e SubjectFilter_RelationFilterValidationError) Field() string
- func (e SubjectFilter_RelationFilterValidationError) Key() bool
- func (e SubjectFilter_RelationFilterValidationError) Reason() string
- type SubjectReference
- func (*SubjectReference) Descriptor() ([]byte, []int)deprecated
- func (x *SubjectReference) GetObject() *ObjectReference
- func (x *SubjectReference) GetOptionalRelation() string
- func (m *SubjectReference) HandwrittenValidate() error
- func (*SubjectReference) ProtoMessage()
- func (x *SubjectReference) ProtoReflect() protoreflect.Message
- func (x *SubjectReference) Reset()
- func (x *SubjectReference) String() string
- func (m *SubjectReference) Validate() error
- func (m *SubjectReference) ValidateAll() error
- type SubjectReferenceMultiError
- type SubjectReferenceValidationError
- func (e SubjectReferenceValidationError) Cause() error
- func (e SubjectReferenceValidationError) Error() string
- func (e SubjectReferenceValidationError) ErrorName() string
- func (e SubjectReferenceValidationError) Field() string
- func (e SubjectReferenceValidationError) Key() bool
- func (e SubjectReferenceValidationError) Reason() string
- type UnimplementedPermissionsServiceServer
- func (UnimplementedPermissionsServiceServer) CheckPermission(context.Context, *CheckPermissionRequest) (*CheckPermissionResponse, error)
- func (UnimplementedPermissionsServiceServer) DeleteRelationships(context.Context, *DeleteRelationshipsRequest) (*DeleteRelationshipsResponse, error)
- func (UnimplementedPermissionsServiceServer) ExpandPermissionTree(context.Context, *ExpandPermissionTreeRequest) (*ExpandPermissionTreeResponse, error)
- func (UnimplementedPermissionsServiceServer) LookupResources(*LookupResourcesRequest, PermissionsService_LookupResourcesServer) error
- func (UnimplementedPermissionsServiceServer) ReadRelationships(*ReadRelationshipsRequest, PermissionsService_ReadRelationshipsServer) error
- func (UnimplementedPermissionsServiceServer) WriteRelationships(context.Context, *WriteRelationshipsRequest) (*WriteRelationshipsResponse, error)
- type UnimplementedSchemaServiceServer
- type UnimplementedWatchServiceServer
- type UnsafePermissionsServiceServer
- type UnsafeSchemaServiceServer
- type UnsafeWatchServiceServer
- type WatchRequest
- func (*WatchRequest) Descriptor() ([]byte, []int)deprecated
- func (x *WatchRequest) GetOptionalObjectTypes() []string
- func (x *WatchRequest) GetOptionalStartCursor() *ZedToken
- func (*WatchRequest) ProtoMessage()
- func (x *WatchRequest) ProtoReflect() protoreflect.Message
- func (x *WatchRequest) Reset()
- func (x *WatchRequest) String() string
- func (m *WatchRequest) Validate() error
- func (m *WatchRequest) ValidateAll() error
- type WatchRequestMultiError
- type WatchRequestValidationError
- func (e WatchRequestValidationError) Cause() error
- func (e WatchRequestValidationError) Error() string
- func (e WatchRequestValidationError) ErrorName() string
- func (e WatchRequestValidationError) Field() string
- func (e WatchRequestValidationError) Key() bool
- func (e WatchRequestValidationError) Reason() string
- type WatchResponse
- func (*WatchResponse) Descriptor() ([]byte, []int)deprecated
- func (x *WatchResponse) GetChangesThrough() *ZedToken
- func (x *WatchResponse) GetUpdates() []*RelationshipUpdate
- func (*WatchResponse) ProtoMessage()
- func (x *WatchResponse) ProtoReflect() protoreflect.Message
- func (x *WatchResponse) Reset()
- func (x *WatchResponse) String() string
- func (m *WatchResponse) Validate() error
- func (m *WatchResponse) ValidateAll() error
- type WatchResponseMultiError
- type WatchResponseValidationError
- func (e WatchResponseValidationError) Cause() error
- func (e WatchResponseValidationError) Error() string
- func (e WatchResponseValidationError) ErrorName() string
- func (e WatchResponseValidationError) Field() string
- func (e WatchResponseValidationError) Key() bool
- func (e WatchResponseValidationError) Reason() string
- type WatchServiceClient
- type WatchServiceServer
- type WatchService_WatchClient
- type WatchService_WatchServer
- type WriteRelationshipsRequest
- func (*WriteRelationshipsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *WriteRelationshipsRequest) GetOptionalPreconditions() []*Precondition
- func (x *WriteRelationshipsRequest) GetUpdates() []*RelationshipUpdate
- func (m *WriteRelationshipsRequest) HandwrittenValidate() error
- func (*WriteRelationshipsRequest) ProtoMessage()
- func (x *WriteRelationshipsRequest) ProtoReflect() protoreflect.Message
- func (x *WriteRelationshipsRequest) Reset()
- func (x *WriteRelationshipsRequest) String() string
- func (m *WriteRelationshipsRequest) Validate() error
- func (m *WriteRelationshipsRequest) ValidateAll() error
- type WriteRelationshipsRequestMultiError
- type WriteRelationshipsRequestValidationError
- func (e WriteRelationshipsRequestValidationError) Cause() error
- func (e WriteRelationshipsRequestValidationError) Error() string
- func (e WriteRelationshipsRequestValidationError) ErrorName() string
- func (e WriteRelationshipsRequestValidationError) Field() string
- func (e WriteRelationshipsRequestValidationError) Key() bool
- func (e WriteRelationshipsRequestValidationError) Reason() string
- type WriteRelationshipsResponse
- func (*WriteRelationshipsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *WriteRelationshipsResponse) GetWrittenAt() *ZedToken
- func (*WriteRelationshipsResponse) ProtoMessage()
- func (x *WriteRelationshipsResponse) ProtoReflect() protoreflect.Message
- func (x *WriteRelationshipsResponse) Reset()
- func (x *WriteRelationshipsResponse) String() string
- func (m *WriteRelationshipsResponse) Validate() error
- func (m *WriteRelationshipsResponse) ValidateAll() error
- type WriteRelationshipsResponseMultiError
- type WriteRelationshipsResponseValidationError
- func (e WriteRelationshipsResponseValidationError) Cause() error
- func (e WriteRelationshipsResponseValidationError) Error() string
- func (e WriteRelationshipsResponseValidationError) ErrorName() string
- func (e WriteRelationshipsResponseValidationError) Field() string
- func (e WriteRelationshipsResponseValidationError) Key() bool
- func (e WriteRelationshipsResponseValidationError) Reason() string
- type WriteSchemaRequest
- func (*WriteSchemaRequest) Descriptor() ([]byte, []int)deprecated
- func (x *WriteSchemaRequest) GetSchema() string
- func (*WriteSchemaRequest) ProtoMessage()
- func (x *WriteSchemaRequest) ProtoReflect() protoreflect.Message
- func (x *WriteSchemaRequest) Reset()
- func (x *WriteSchemaRequest) String() string
- func (m *WriteSchemaRequest) Validate() error
- func (m *WriteSchemaRequest) ValidateAll() error
- type WriteSchemaRequestMultiError
- type WriteSchemaRequestValidationError
- func (e WriteSchemaRequestValidationError) Cause() error
- func (e WriteSchemaRequestValidationError) Error() string
- func (e WriteSchemaRequestValidationError) ErrorName() string
- func (e WriteSchemaRequestValidationError) Field() string
- func (e WriteSchemaRequestValidationError) Key() bool
- func (e WriteSchemaRequestValidationError) Reason() string
- type WriteSchemaResponse
- func (*WriteSchemaResponse) Descriptor() ([]byte, []int)deprecated
- func (*WriteSchemaResponse) ProtoMessage()
- func (x *WriteSchemaResponse) ProtoReflect() protoreflect.Message
- func (x *WriteSchemaResponse) Reset()
- func (x *WriteSchemaResponse) String() string
- func (m *WriteSchemaResponse) Validate() error
- func (m *WriteSchemaResponse) ValidateAll() error
- type WriteSchemaResponseMultiError
- type WriteSchemaResponseValidationError
- func (e WriteSchemaResponseValidationError) Cause() error
- func (e WriteSchemaResponseValidationError) Error() string
- func (e WriteSchemaResponseValidationError) ErrorName() string
- func (e WriteSchemaResponseValidationError) Field() string
- func (e WriteSchemaResponseValidationError) Key() bool
- func (e WriteSchemaResponseValidationError) Reason() string
- type ZedToken
- func (*ZedToken) Descriptor() ([]byte, []int)deprecated
- func (x *ZedToken) GetToken() string
- func (*ZedToken) ProtoMessage()
- func (x *ZedToken) ProtoReflect() protoreflect.Message
- func (x *ZedToken) Reset()
- func (x *ZedToken) String() string
- func (m *ZedToken) Validate() error
- func (m *ZedToken) ValidateAll() error
- type ZedTokenMultiError
- type ZedTokenValidationError
Constants ¶
This section is empty.
Variables ¶
var ( RelationshipUpdate_Operation_name = map[int32]string{ 0: "OPERATION_UNSPECIFIED", 1: "OPERATION_CREATE", 2: "OPERATION_TOUCH", 3: "OPERATION_DELETE", } RelationshipUpdate_Operation_value = map[string]int32{ "OPERATION_UNSPECIFIED": 0, "OPERATION_CREATE": 1, "OPERATION_TOUCH": 2, "OPERATION_DELETE": 3, } )
Enum value maps for RelationshipUpdate_Operation.
var ( AlgebraicSubjectSet_Operation_name = map[int32]string{ 0: "OPERATION_UNSPECIFIED", 1: "OPERATION_UNION", 2: "OPERATION_INTERSECTION", 3: "OPERATION_EXCLUSION", } AlgebraicSubjectSet_Operation_value = map[string]int32{ "OPERATION_UNSPECIFIED": 0, "OPERATION_UNION": 1, "OPERATION_INTERSECTION": 2, "OPERATION_EXCLUSION": 3, } )
Enum value maps for AlgebraicSubjectSet_Operation.
var ( Precondition_Operation_name = map[int32]string{ 0: "OPERATION_UNSPECIFIED", 1: "OPERATION_MUST_NOT_MATCH", 2: "OPERATION_MUST_MATCH", } Precondition_Operation_value = map[string]int32{ "OPERATION_UNSPECIFIED": 0, "OPERATION_MUST_NOT_MATCH": 1, "OPERATION_MUST_MATCH": 2, } )
Enum value maps for Precondition_Operation.
var ( CheckPermissionResponse_Permissionship_name = map[int32]string{ 0: "PERMISSIONSHIP_UNSPECIFIED", 1: "PERMISSIONSHIP_NO_PERMISSION", 2: "PERMISSIONSHIP_HAS_PERMISSION", } CheckPermissionResponse_Permissionship_value = map[string]int32{ "PERMISSIONSHIP_UNSPECIFIED": 0, "PERMISSIONSHIP_NO_PERMISSION": 1, "PERMISSIONSHIP_HAS_PERMISSION": 2, } )
Enum value maps for CheckPermissionResponse_Permissionship.
var File_authzed_api_v1_core_proto protoreflect.FileDescriptor
var File_authzed_api_v1_openapi_proto protoreflect.FileDescriptor
var File_authzed_api_v1_permission_service_proto protoreflect.FileDescriptor
var File_authzed_api_v1_schema_service_proto protoreflect.FileDescriptor
var File_authzed_api_v1_watch_service_proto protoreflect.FileDescriptor
var PermissionsService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "authzed.api.v1.PermissionsService", HandlerType: (*PermissionsServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "WriteRelationships", Handler: _PermissionsService_WriteRelationships_Handler, }, { MethodName: "DeleteRelationships", Handler: _PermissionsService_DeleteRelationships_Handler, }, { MethodName: "CheckPermission", Handler: _PermissionsService_CheckPermission_Handler, }, { MethodName: "ExpandPermissionTree", Handler: _PermissionsService_ExpandPermissionTree_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "ReadRelationships", Handler: _PermissionsService_ReadRelationships_Handler, ServerStreams: true, }, { StreamName: "LookupResources", Handler: _PermissionsService_LookupResources_Handler, ServerStreams: true, }, }, Metadata: "authzed/api/v1/permission_service.proto", }
PermissionsService_ServiceDesc is the grpc.ServiceDesc for PermissionsService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var SchemaService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "authzed.api.v1.SchemaService", HandlerType: (*SchemaServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ReadSchema", Handler: _SchemaService_ReadSchema_Handler, }, { MethodName: "WriteSchema", Handler: _SchemaService_WriteSchema_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "authzed/api/v1/schema_service.proto", }
SchemaService_ServiceDesc is the grpc.ServiceDesc for SchemaService 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: "authzed.api.v1.WatchService", HandlerType: (*WatchServiceServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "Watch", Handler: _WatchService_Watch_Handler, ServerStreams: true, }, }, Metadata: "authzed/api/v1/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 RegisterPermissionsServiceHandler ¶ added in v0.3.0
func RegisterPermissionsServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterPermissionsServiceHandler registers the http handlers for service PermissionsService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterPermissionsServiceHandlerClient ¶ added in v0.3.0
func RegisterPermissionsServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client PermissionsServiceClient) error
RegisterPermissionsServiceHandlerClient registers the http handlers for service PermissionsService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "PermissionsServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "PermissionsServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "PermissionsServiceClient" to call the correct interceptors.
func RegisterPermissionsServiceHandlerFromEndpoint ¶ added in v0.3.0
func RegisterPermissionsServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterPermissionsServiceHandlerFromEndpoint is same as RegisterPermissionsServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterPermissionsServiceHandlerServer ¶ added in v0.3.0
func RegisterPermissionsServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server PermissionsServiceServer) error
RegisterPermissionsServiceHandlerServer registers the http handlers for service PermissionsService to "mux". UnaryRPC :call PermissionsServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterPermissionsServiceHandlerFromEndpoint instead.
func RegisterPermissionsServiceServer ¶
func RegisterPermissionsServiceServer(s grpc.ServiceRegistrar, srv PermissionsServiceServer)
func RegisterSchemaServiceHandler ¶ added in v0.3.0
func RegisterSchemaServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterSchemaServiceHandler registers the http handlers for service SchemaService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterSchemaServiceHandlerClient ¶ added in v0.3.0
func RegisterSchemaServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SchemaServiceClient) error
RegisterSchemaServiceHandlerClient registers the http handlers for service SchemaService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "SchemaServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "SchemaServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "SchemaServiceClient" to call the correct interceptors.
func RegisterSchemaServiceHandlerFromEndpoint ¶ added in v0.3.0
func RegisterSchemaServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterSchemaServiceHandlerFromEndpoint is same as RegisterSchemaServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterSchemaServiceHandlerServer ¶ added in v0.3.0
func RegisterSchemaServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SchemaServiceServer) error
RegisterSchemaServiceHandlerServer registers the http handlers for service SchemaService to "mux". UnaryRPC :call SchemaServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterSchemaServiceHandlerFromEndpoint instead.
func RegisterSchemaServiceServer ¶
func RegisterSchemaServiceServer(s grpc.ServiceRegistrar, srv SchemaServiceServer)
func RegisterWatchServiceHandler ¶ added in v0.3.0
func RegisterWatchServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterWatchServiceHandler registers the http handlers for service WatchService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterWatchServiceHandlerClient ¶ added in v0.3.0
func RegisterWatchServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client WatchServiceClient) error
RegisterWatchServiceHandlerClient registers the http handlers for service WatchService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "WatchServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "WatchServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "WatchServiceClient" to call the correct interceptors.
func RegisterWatchServiceHandlerFromEndpoint ¶ added in v0.3.0
func RegisterWatchServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterWatchServiceHandlerFromEndpoint is same as RegisterWatchServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterWatchServiceHandlerServer ¶ added in v0.3.0
func RegisterWatchServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server WatchServiceServer) error
RegisterWatchServiceHandlerServer registers the http handlers for service WatchService to "mux". UnaryRPC :call WatchServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterWatchServiceHandlerFromEndpoint instead.
func RegisterWatchServiceServer ¶
func RegisterWatchServiceServer(s grpc.ServiceRegistrar, srv WatchServiceServer)
Types ¶
type AlgebraicSubjectSet ¶
type AlgebraicSubjectSet struct { Operation AlgebraicSubjectSet_Operation `protobuf:"varint,1,opt,name=operation,proto3,enum=authzed.api.v1.AlgebraicSubjectSet_Operation" json:"operation,omitempty"` Children []*PermissionRelationshipTree `protobuf:"bytes,2,rep,name=children,proto3" json:"children,omitempty"` // contains filtered or unexported fields }
AlgebraicSubjectSet is a subject set which is computed based on applying the specified operation to the operands according to the algebra of sets.
UNION is a logical set containing the subject members from all operands.
INTERSECTION is a logical set containing only the subject members which are present in all operands.
EXCLUSION is a logical set containing only the subject members which are present in the first operand, and none of the other operands.
func (*AlgebraicSubjectSet) Descriptor
deprecated
func (*AlgebraicSubjectSet) Descriptor() ([]byte, []int)
Deprecated: Use AlgebraicSubjectSet.ProtoReflect.Descriptor instead.
func (*AlgebraicSubjectSet) GetChildren ¶
func (x *AlgebraicSubjectSet) GetChildren() []*PermissionRelationshipTree
func (*AlgebraicSubjectSet) GetOperation ¶
func (x *AlgebraicSubjectSet) GetOperation() AlgebraicSubjectSet_Operation
func (*AlgebraicSubjectSet) ProtoMessage ¶
func (*AlgebraicSubjectSet) ProtoMessage()
func (*AlgebraicSubjectSet) ProtoReflect ¶
func (x *AlgebraicSubjectSet) ProtoReflect() protoreflect.Message
func (*AlgebraicSubjectSet) Reset ¶
func (x *AlgebraicSubjectSet) Reset()
func (*AlgebraicSubjectSet) String ¶
func (x *AlgebraicSubjectSet) String() string
func (*AlgebraicSubjectSet) Validate ¶
func (m *AlgebraicSubjectSet) Validate() error
Validate checks the field values on AlgebraicSubjectSet with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*AlgebraicSubjectSet) ValidateAll ¶ added in v0.6.0
func (m *AlgebraicSubjectSet) ValidateAll() error
ValidateAll checks the field values on AlgebraicSubjectSet with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AlgebraicSubjectSetMultiError, or nil if none found.
type AlgebraicSubjectSetMultiError ¶ added in v0.6.0
type AlgebraicSubjectSetMultiError []error
AlgebraicSubjectSetMultiError is an error wrapping multiple validation errors returned by AlgebraicSubjectSet.ValidateAll() if the designated constraints aren't met.
func (AlgebraicSubjectSetMultiError) AllErrors ¶ added in v0.6.0
func (m AlgebraicSubjectSetMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AlgebraicSubjectSetMultiError) Error ¶ added in v0.6.0
func (m AlgebraicSubjectSetMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AlgebraicSubjectSetValidationError ¶
type AlgebraicSubjectSetValidationError struct {
// contains filtered or unexported fields
}
AlgebraicSubjectSetValidationError is the validation error returned by AlgebraicSubjectSet.Validate if the designated constraints aren't met.
func (AlgebraicSubjectSetValidationError) Cause ¶
func (e AlgebraicSubjectSetValidationError) Cause() error
Cause function returns cause value.
func (AlgebraicSubjectSetValidationError) Error ¶
func (e AlgebraicSubjectSetValidationError) Error() string
Error satisfies the builtin error interface
func (AlgebraicSubjectSetValidationError) ErrorName ¶
func (e AlgebraicSubjectSetValidationError) ErrorName() string
ErrorName returns error name.
func (AlgebraicSubjectSetValidationError) Field ¶
func (e AlgebraicSubjectSetValidationError) Field() string
Field function returns field value.
func (AlgebraicSubjectSetValidationError) Key ¶
func (e AlgebraicSubjectSetValidationError) Key() bool
Key function returns key value.
func (AlgebraicSubjectSetValidationError) Reason ¶
func (e AlgebraicSubjectSetValidationError) Reason() string
Reason function returns reason value.
type AlgebraicSubjectSet_Operation ¶
type AlgebraicSubjectSet_Operation int32
const ( AlgebraicSubjectSet_OPERATION_UNSPECIFIED AlgebraicSubjectSet_Operation = 0 AlgebraicSubjectSet_OPERATION_UNION AlgebraicSubjectSet_Operation = 1 AlgebraicSubjectSet_OPERATION_INTERSECTION AlgebraicSubjectSet_Operation = 2 AlgebraicSubjectSet_OPERATION_EXCLUSION AlgebraicSubjectSet_Operation = 3 )
func (AlgebraicSubjectSet_Operation) Descriptor ¶
func (AlgebraicSubjectSet_Operation) Descriptor() protoreflect.EnumDescriptor
func (AlgebraicSubjectSet_Operation) Enum ¶
func (x AlgebraicSubjectSet_Operation) Enum() *AlgebraicSubjectSet_Operation
func (AlgebraicSubjectSet_Operation) EnumDescriptor
deprecated
func (AlgebraicSubjectSet_Operation) EnumDescriptor() ([]byte, []int)
Deprecated: Use AlgebraicSubjectSet_Operation.Descriptor instead.
func (AlgebraicSubjectSet_Operation) Number ¶
func (x AlgebraicSubjectSet_Operation) Number() protoreflect.EnumNumber
func (AlgebraicSubjectSet_Operation) String ¶
func (x AlgebraicSubjectSet_Operation) String() string
func (AlgebraicSubjectSet_Operation) Type ¶
func (AlgebraicSubjectSet_Operation) Type() protoreflect.EnumType
type CheckPermissionRequest ¶
type CheckPermissionRequest struct { Consistency *Consistency `protobuf:"bytes,1,opt,name=consistency,proto3" json:"consistency,omitempty"` // resource is the resource on which to check the permission or relation. Resource *ObjectReference `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"` // permission is the name of the permission (or relation) on which to execute // the check. Permission string `protobuf:"bytes,3,opt,name=permission,proto3" json:"permission,omitempty"` // subject is the subject that will be checked for the permission or relation. Subject *SubjectReference `protobuf:"bytes,4,opt,name=subject,proto3" json:"subject,omitempty"` // contains filtered or unexported fields }
CheckPermissionRequest issues a check on whether a subject has a permission or is a member of a relation, on a specific resource.
func (*CheckPermissionRequest) Descriptor
deprecated
func (*CheckPermissionRequest) Descriptor() ([]byte, []int)
Deprecated: Use CheckPermissionRequest.ProtoReflect.Descriptor instead.
func (*CheckPermissionRequest) GetConsistency ¶
func (x *CheckPermissionRequest) GetConsistency() *Consistency
func (*CheckPermissionRequest) GetPermission ¶
func (x *CheckPermissionRequest) GetPermission() string
func (*CheckPermissionRequest) GetResource ¶
func (x *CheckPermissionRequest) GetResource() *ObjectReference
func (*CheckPermissionRequest) GetSubject ¶
func (x *CheckPermissionRequest) GetSubject() *SubjectReference
func (*CheckPermissionRequest) HandwrittenValidate ¶ added in v0.4.0
func (m *CheckPermissionRequest) HandwrittenValidate() error
func (*CheckPermissionRequest) ProtoMessage ¶
func (*CheckPermissionRequest) ProtoMessage()
func (*CheckPermissionRequest) ProtoReflect ¶
func (x *CheckPermissionRequest) ProtoReflect() protoreflect.Message
func (*CheckPermissionRequest) Reset ¶
func (x *CheckPermissionRequest) Reset()
func (*CheckPermissionRequest) String ¶
func (x *CheckPermissionRequest) String() string
func (*CheckPermissionRequest) Validate ¶
func (m *CheckPermissionRequest) Validate() error
Validate checks the field values on CheckPermissionRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*CheckPermissionRequest) ValidateAll ¶ added in v0.6.0
func (m *CheckPermissionRequest) ValidateAll() error
ValidateAll checks the field values on CheckPermissionRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CheckPermissionRequestMultiError, or nil if none found.
type CheckPermissionRequestMultiError ¶ added in v0.6.0
type CheckPermissionRequestMultiError []error
CheckPermissionRequestMultiError is an error wrapping multiple validation errors returned by CheckPermissionRequest.ValidateAll() if the designated constraints aren't met.
func (CheckPermissionRequestMultiError) AllErrors ¶ added in v0.6.0
func (m CheckPermissionRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CheckPermissionRequestMultiError) Error ¶ added in v0.6.0
func (m CheckPermissionRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CheckPermissionRequestValidationError ¶
type CheckPermissionRequestValidationError struct {
// contains filtered or unexported fields
}
CheckPermissionRequestValidationError is the validation error returned by CheckPermissionRequest.Validate if the designated constraints aren't met.
func (CheckPermissionRequestValidationError) Cause ¶
func (e CheckPermissionRequestValidationError) Cause() error
Cause function returns cause value.
func (CheckPermissionRequestValidationError) Error ¶
func (e CheckPermissionRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CheckPermissionRequestValidationError) ErrorName ¶
func (e CheckPermissionRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CheckPermissionRequestValidationError) Field ¶
func (e CheckPermissionRequestValidationError) Field() string
Field function returns field value.
func (CheckPermissionRequestValidationError) Key ¶
func (e CheckPermissionRequestValidationError) Key() bool
Key function returns key value.
func (CheckPermissionRequestValidationError) Reason ¶
func (e CheckPermissionRequestValidationError) Reason() string
Reason function returns reason value.
type CheckPermissionResponse ¶
type CheckPermissionResponse struct { CheckedAt *ZedToken `protobuf:"bytes,1,opt,name=checked_at,json=checkedAt,proto3" json:"checked_at,omitempty"` // Permissionship communicates whether or not the subject has the requested // permission or has a relationship with the given resource, over the given // relation. // // This value will be authzed.api.v1.PERMISSIONSHIP_HAS_PERMISSION if the // requested subject is a member of the computed permission set or there // exists a relationship with the requested relation from the given resource // to the given subject. Permissionship CheckPermissionResponse_Permissionship `` /* 141-byte string literal not displayed */ // contains filtered or unexported fields }
func (*CheckPermissionResponse) Descriptor
deprecated
func (*CheckPermissionResponse) Descriptor() ([]byte, []int)
Deprecated: Use CheckPermissionResponse.ProtoReflect.Descriptor instead.
func (*CheckPermissionResponse) GetCheckedAt ¶
func (x *CheckPermissionResponse) GetCheckedAt() *ZedToken
func (*CheckPermissionResponse) GetPermissionship ¶
func (x *CheckPermissionResponse) GetPermissionship() CheckPermissionResponse_Permissionship
func (*CheckPermissionResponse) ProtoMessage ¶
func (*CheckPermissionResponse) ProtoMessage()
func (*CheckPermissionResponse) ProtoReflect ¶
func (x *CheckPermissionResponse) ProtoReflect() protoreflect.Message
func (*CheckPermissionResponse) Reset ¶
func (x *CheckPermissionResponse) Reset()
func (*CheckPermissionResponse) String ¶
func (x *CheckPermissionResponse) String() string
func (*CheckPermissionResponse) Validate ¶
func (m *CheckPermissionResponse) Validate() error
Validate checks the field values on CheckPermissionResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*CheckPermissionResponse) ValidateAll ¶ added in v0.6.0
func (m *CheckPermissionResponse) ValidateAll() error
ValidateAll checks the field values on CheckPermissionResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CheckPermissionResponseMultiError, or nil if none found.
type CheckPermissionResponseMultiError ¶ added in v0.6.0
type CheckPermissionResponseMultiError []error
CheckPermissionResponseMultiError is an error wrapping multiple validation errors returned by CheckPermissionResponse.ValidateAll() if the designated constraints aren't met.
func (CheckPermissionResponseMultiError) AllErrors ¶ added in v0.6.0
func (m CheckPermissionResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CheckPermissionResponseMultiError) Error ¶ added in v0.6.0
func (m CheckPermissionResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CheckPermissionResponseValidationError ¶
type CheckPermissionResponseValidationError struct {
// contains filtered or unexported fields
}
CheckPermissionResponseValidationError is the validation error returned by CheckPermissionResponse.Validate if the designated constraints aren't met.
func (CheckPermissionResponseValidationError) Cause ¶
func (e CheckPermissionResponseValidationError) Cause() error
Cause function returns cause value.
func (CheckPermissionResponseValidationError) Error ¶
func (e CheckPermissionResponseValidationError) Error() string
Error satisfies the builtin error interface
func (CheckPermissionResponseValidationError) ErrorName ¶
func (e CheckPermissionResponseValidationError) ErrorName() string
ErrorName returns error name.
func (CheckPermissionResponseValidationError) Field ¶
func (e CheckPermissionResponseValidationError) Field() string
Field function returns field value.
func (CheckPermissionResponseValidationError) Key ¶
func (e CheckPermissionResponseValidationError) Key() bool
Key function returns key value.
func (CheckPermissionResponseValidationError) Reason ¶
func (e CheckPermissionResponseValidationError) Reason() string
Reason function returns reason value.
type CheckPermissionResponse_Permissionship ¶
type CheckPermissionResponse_Permissionship int32
const ( CheckPermissionResponse_PERMISSIONSHIP_UNSPECIFIED CheckPermissionResponse_Permissionship = 0 CheckPermissionResponse_PERMISSIONSHIP_NO_PERMISSION CheckPermissionResponse_Permissionship = 1 CheckPermissionResponse_PERMISSIONSHIP_HAS_PERMISSION CheckPermissionResponse_Permissionship = 2 )
func (CheckPermissionResponse_Permissionship) Descriptor ¶
func (CheckPermissionResponse_Permissionship) Descriptor() protoreflect.EnumDescriptor
func (CheckPermissionResponse_Permissionship) EnumDescriptor
deprecated
func (CheckPermissionResponse_Permissionship) EnumDescriptor() ([]byte, []int)
Deprecated: Use CheckPermissionResponse_Permissionship.Descriptor instead.
func (CheckPermissionResponse_Permissionship) Number ¶
func (x CheckPermissionResponse_Permissionship) Number() protoreflect.EnumNumber
func (CheckPermissionResponse_Permissionship) String ¶
func (x CheckPermissionResponse_Permissionship) String() string
func (CheckPermissionResponse_Permissionship) Type ¶
func (CheckPermissionResponse_Permissionship) Type() protoreflect.EnumType
type Consistency ¶
type Consistency struct { // Types that are assignable to Requirement: // *Consistency_MinimizeLatency // *Consistency_AtLeastAsFresh // *Consistency_AtExactSnapshot // *Consistency_FullyConsistent Requirement isConsistency_Requirement `protobuf_oneof:"requirement"` // contains filtered or unexported fields }
Consistency will define how a request is handled by the backend. By defining a consistency requirement, and a token at which those requirements should be applied, where applicable.
func (*Consistency) Descriptor
deprecated
func (*Consistency) Descriptor() ([]byte, []int)
Deprecated: Use Consistency.ProtoReflect.Descriptor instead.
func (*Consistency) GetAtExactSnapshot ¶
func (x *Consistency) GetAtExactSnapshot() *ZedToken
func (*Consistency) GetAtLeastAsFresh ¶
func (x *Consistency) GetAtLeastAsFresh() *ZedToken
func (*Consistency) GetFullyConsistent ¶
func (x *Consistency) GetFullyConsistent() bool
func (*Consistency) GetMinimizeLatency ¶
func (x *Consistency) GetMinimizeLatency() bool
func (*Consistency) GetRequirement ¶
func (m *Consistency) GetRequirement() isConsistency_Requirement
func (*Consistency) ProtoMessage ¶
func (*Consistency) ProtoMessage()
func (*Consistency) ProtoReflect ¶
func (x *Consistency) ProtoReflect() protoreflect.Message
func (*Consistency) Reset ¶
func (x *Consistency) Reset()
func (*Consistency) String ¶
func (x *Consistency) String() string
func (*Consistency) Validate ¶
func (m *Consistency) Validate() error
Validate checks the field values on Consistency with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Consistency) ValidateAll ¶ added in v0.6.0
func (m *Consistency) ValidateAll() error
ValidateAll checks the field values on Consistency with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ConsistencyMultiError, or nil if none found.
type ConsistencyMultiError ¶ added in v0.6.0
type ConsistencyMultiError []error
ConsistencyMultiError is an error wrapping multiple validation errors returned by Consistency.ValidateAll() if the designated constraints aren't met.
func (ConsistencyMultiError) AllErrors ¶ added in v0.6.0
func (m ConsistencyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ConsistencyMultiError) Error ¶ added in v0.6.0
func (m ConsistencyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ConsistencyValidationError ¶
type ConsistencyValidationError struct {
// contains filtered or unexported fields
}
ConsistencyValidationError is the validation error returned by Consistency.Validate if the designated constraints aren't met.
func (ConsistencyValidationError) Cause ¶
func (e ConsistencyValidationError) Cause() error
Cause function returns cause value.
func (ConsistencyValidationError) Error ¶
func (e ConsistencyValidationError) Error() string
Error satisfies the builtin error interface
func (ConsistencyValidationError) ErrorName ¶
func (e ConsistencyValidationError) ErrorName() string
ErrorName returns error name.
func (ConsistencyValidationError) Field ¶
func (e ConsistencyValidationError) Field() string
Field function returns field value.
func (ConsistencyValidationError) Key ¶
func (e ConsistencyValidationError) Key() bool
Key function returns key value.
func (ConsistencyValidationError) Reason ¶
func (e ConsistencyValidationError) Reason() string
Reason function returns reason value.
type Consistency_AtExactSnapshot ¶
type Consistency_AtExactSnapshot struct { // at_exact_snapshot indicates that all data used in the API call must be // *at the given* snapshot in time; if the snapshot is no longer available, // an error will be returned to the caller. AtExactSnapshot *ZedToken `protobuf:"bytes,3,opt,name=at_exact_snapshot,json=atExactSnapshot,proto3,oneof"` }
type Consistency_AtLeastAsFresh ¶
type Consistency_AtLeastAsFresh struct { // at_least_as_fresh indicates that all data used in the API call must be // *at least as fresh* as that found in the ZedToken; more recent data might // be used if available or faster. AtLeastAsFresh *ZedToken `protobuf:"bytes,2,opt,name=at_least_as_fresh,json=atLeastAsFresh,proto3,oneof"` }
type Consistency_FullyConsistent ¶
type Consistency_FullyConsistent struct { // fully_consistent indicates that all data used in the API call *must* be // at the most recent snapshot found. // // NOTE: using this method can be *quite slow*, so unless there is a need to // do so, it is recommended to use `at_least_as_fresh` with a stored // ZedToken. FullyConsistent bool `protobuf:"varint,4,opt,name=fully_consistent,json=fullyConsistent,proto3,oneof"` }
type Consistency_MinimizeLatency ¶
type Consistency_MinimizeLatency struct { // minimize_latency indicates that the latency for the call should be // minimized by having the system select the fastest snapshot available. MinimizeLatency bool `protobuf:"varint,1,opt,name=minimize_latency,json=minimizeLatency,proto3,oneof"` }
type DeleteRelationshipsRequest ¶
type DeleteRelationshipsRequest struct { RelationshipFilter *RelationshipFilter `protobuf:"bytes,1,opt,name=relationship_filter,json=relationshipFilter,proto3" json:"relationship_filter,omitempty"` OptionalPreconditions []*Precondition `protobuf:"bytes,2,rep,name=optional_preconditions,json=optionalPreconditions,proto3" json:"optional_preconditions,omitempty"` // To be bounded by configuration // contains filtered or unexported fields }
DeleteRelationshipsRequest specifies which Relationships should be deleted, requesting the delete of *ALL* relationships that match the specified filters. If the optional_preconditions parameter is included, all of the specified preconditions must also be satisfied before the delete will be executed.
func (*DeleteRelationshipsRequest) Descriptor
deprecated
func (*DeleteRelationshipsRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRelationshipsRequest.ProtoReflect.Descriptor instead.
func (*DeleteRelationshipsRequest) GetOptionalPreconditions ¶
func (x *DeleteRelationshipsRequest) GetOptionalPreconditions() []*Precondition
func (*DeleteRelationshipsRequest) GetRelationshipFilter ¶
func (x *DeleteRelationshipsRequest) GetRelationshipFilter() *RelationshipFilter
func (*DeleteRelationshipsRequest) HandwrittenValidate ¶ added in v0.4.0
func (m *DeleteRelationshipsRequest) HandwrittenValidate() error
func (*DeleteRelationshipsRequest) ProtoMessage ¶
func (*DeleteRelationshipsRequest) ProtoMessage()
func (*DeleteRelationshipsRequest) ProtoReflect ¶
func (x *DeleteRelationshipsRequest) ProtoReflect() protoreflect.Message
func (*DeleteRelationshipsRequest) Reset ¶
func (x *DeleteRelationshipsRequest) Reset()
func (*DeleteRelationshipsRequest) String ¶
func (x *DeleteRelationshipsRequest) String() string
func (*DeleteRelationshipsRequest) Validate ¶
func (m *DeleteRelationshipsRequest) Validate() error
Validate checks the field values on DeleteRelationshipsRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*DeleteRelationshipsRequest) ValidateAll ¶ added in v0.6.0
func (m *DeleteRelationshipsRequest) ValidateAll() error
ValidateAll checks the field values on DeleteRelationshipsRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteRelationshipsRequestMultiError, or nil if none found.
type DeleteRelationshipsRequestMultiError ¶ added in v0.6.0
type DeleteRelationshipsRequestMultiError []error
DeleteRelationshipsRequestMultiError is an error wrapping multiple validation errors returned by DeleteRelationshipsRequest.ValidateAll() if the designated constraints aren't met.
func (DeleteRelationshipsRequestMultiError) AllErrors ¶ added in v0.6.0
func (m DeleteRelationshipsRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteRelationshipsRequestMultiError) Error ¶ added in v0.6.0
func (m DeleteRelationshipsRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteRelationshipsRequestValidationError ¶
type DeleteRelationshipsRequestValidationError struct {
// contains filtered or unexported fields
}
DeleteRelationshipsRequestValidationError is the validation error returned by DeleteRelationshipsRequest.Validate if the designated constraints aren't met.
func (DeleteRelationshipsRequestValidationError) Cause ¶
func (e DeleteRelationshipsRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteRelationshipsRequestValidationError) Error ¶
func (e DeleteRelationshipsRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteRelationshipsRequestValidationError) ErrorName ¶
func (e DeleteRelationshipsRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteRelationshipsRequestValidationError) Field ¶
func (e DeleteRelationshipsRequestValidationError) Field() string
Field function returns field value.
func (DeleteRelationshipsRequestValidationError) Key ¶
func (e DeleteRelationshipsRequestValidationError) Key() bool
Key function returns key value.
func (DeleteRelationshipsRequestValidationError) Reason ¶
func (e DeleteRelationshipsRequestValidationError) Reason() string
Reason function returns reason value.
type DeleteRelationshipsResponse ¶
type DeleteRelationshipsResponse struct { DeletedAt *ZedToken `protobuf:"bytes,1,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"` // contains filtered or unexported fields }
func (*DeleteRelationshipsResponse) Descriptor
deprecated
func (*DeleteRelationshipsResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRelationshipsResponse.ProtoReflect.Descriptor instead.
func (*DeleteRelationshipsResponse) GetDeletedAt ¶
func (x *DeleteRelationshipsResponse) GetDeletedAt() *ZedToken
func (*DeleteRelationshipsResponse) ProtoMessage ¶
func (*DeleteRelationshipsResponse) ProtoMessage()
func (*DeleteRelationshipsResponse) ProtoReflect ¶
func (x *DeleteRelationshipsResponse) ProtoReflect() protoreflect.Message
func (*DeleteRelationshipsResponse) Reset ¶
func (x *DeleteRelationshipsResponse) Reset()
func (*DeleteRelationshipsResponse) String ¶
func (x *DeleteRelationshipsResponse) String() string
func (*DeleteRelationshipsResponse) Validate ¶
func (m *DeleteRelationshipsResponse) Validate() error
Validate checks the field values on DeleteRelationshipsResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*DeleteRelationshipsResponse) ValidateAll ¶ added in v0.6.0
func (m *DeleteRelationshipsResponse) ValidateAll() error
ValidateAll checks the field values on DeleteRelationshipsResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteRelationshipsResponseMultiError, or nil if none found.
type DeleteRelationshipsResponseMultiError ¶ added in v0.6.0
type DeleteRelationshipsResponseMultiError []error
DeleteRelationshipsResponseMultiError is an error wrapping multiple validation errors returned by DeleteRelationshipsResponse.ValidateAll() if the designated constraints aren't met.
func (DeleteRelationshipsResponseMultiError) AllErrors ¶ added in v0.6.0
func (m DeleteRelationshipsResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteRelationshipsResponseMultiError) Error ¶ added in v0.6.0
func (m DeleteRelationshipsResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteRelationshipsResponseValidationError ¶
type DeleteRelationshipsResponseValidationError struct {
// contains filtered or unexported fields
}
DeleteRelationshipsResponseValidationError is the validation error returned by DeleteRelationshipsResponse.Validate if the designated constraints aren't met.
func (DeleteRelationshipsResponseValidationError) Cause ¶
func (e DeleteRelationshipsResponseValidationError) Cause() error
Cause function returns cause value.
func (DeleteRelationshipsResponseValidationError) Error ¶
func (e DeleteRelationshipsResponseValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteRelationshipsResponseValidationError) ErrorName ¶
func (e DeleteRelationshipsResponseValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteRelationshipsResponseValidationError) Field ¶
func (e DeleteRelationshipsResponseValidationError) Field() string
Field function returns field value.
func (DeleteRelationshipsResponseValidationError) Key ¶
func (e DeleteRelationshipsResponseValidationError) Key() bool
Key function returns key value.
func (DeleteRelationshipsResponseValidationError) Reason ¶
func (e DeleteRelationshipsResponseValidationError) Reason() string
Reason function returns reason value.
type DirectSubjectSet ¶
type DirectSubjectSet struct { Subjects []*SubjectReference `protobuf:"bytes,1,rep,name=subjects,proto3" json:"subjects,omitempty"` // contains filtered or unexported fields }
DirectSubjectSet is a subject set which is simply a collection of subjects.
func (*DirectSubjectSet) Descriptor
deprecated
func (*DirectSubjectSet) Descriptor() ([]byte, []int)
Deprecated: Use DirectSubjectSet.ProtoReflect.Descriptor instead.
func (*DirectSubjectSet) GetSubjects ¶
func (x *DirectSubjectSet) GetSubjects() []*SubjectReference
func (*DirectSubjectSet) ProtoMessage ¶
func (*DirectSubjectSet) ProtoMessage()
func (*DirectSubjectSet) ProtoReflect ¶
func (x *DirectSubjectSet) ProtoReflect() protoreflect.Message
func (*DirectSubjectSet) Reset ¶
func (x *DirectSubjectSet) Reset()
func (*DirectSubjectSet) String ¶
func (x *DirectSubjectSet) String() string
func (*DirectSubjectSet) Validate ¶
func (m *DirectSubjectSet) Validate() error
Validate checks the field values on DirectSubjectSet with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*DirectSubjectSet) ValidateAll ¶ added in v0.6.0
func (m *DirectSubjectSet) ValidateAll() error
ValidateAll checks the field values on DirectSubjectSet with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DirectSubjectSetMultiError, or nil if none found.
type DirectSubjectSetMultiError ¶ added in v0.6.0
type DirectSubjectSetMultiError []error
DirectSubjectSetMultiError is an error wrapping multiple validation errors returned by DirectSubjectSet.ValidateAll() if the designated constraints aren't met.
func (DirectSubjectSetMultiError) AllErrors ¶ added in v0.6.0
func (m DirectSubjectSetMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DirectSubjectSetMultiError) Error ¶ added in v0.6.0
func (m DirectSubjectSetMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DirectSubjectSetValidationError ¶
type DirectSubjectSetValidationError struct {
// contains filtered or unexported fields
}
DirectSubjectSetValidationError is the validation error returned by DirectSubjectSet.Validate if the designated constraints aren't met.
func (DirectSubjectSetValidationError) Cause ¶
func (e DirectSubjectSetValidationError) Cause() error
Cause function returns cause value.
func (DirectSubjectSetValidationError) Error ¶
func (e DirectSubjectSetValidationError) Error() string
Error satisfies the builtin error interface
func (DirectSubjectSetValidationError) ErrorName ¶
func (e DirectSubjectSetValidationError) ErrorName() string
ErrorName returns error name.
func (DirectSubjectSetValidationError) Field ¶
func (e DirectSubjectSetValidationError) Field() string
Field function returns field value.
func (DirectSubjectSetValidationError) Key ¶
func (e DirectSubjectSetValidationError) Key() bool
Key function returns key value.
func (DirectSubjectSetValidationError) Reason ¶
func (e DirectSubjectSetValidationError) Reason() string
Reason function returns reason value.
type ExpandPermissionTreeRequest ¶
type ExpandPermissionTreeRequest struct { Consistency *Consistency `protobuf:"bytes,1,opt,name=consistency,proto3" json:"consistency,omitempty"` // resource is the resource over which to run the expansion. Resource *ObjectReference `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"` // permission is the name of the permission or relation over which to run the // expansion for the resource. Permission string `protobuf:"bytes,3,opt,name=permission,proto3" json:"permission,omitempty"` // contains filtered or unexported fields }
ExpandPermissionTreeRequest returns a tree representing the expansion of all relationships found accessible from a permission or relation on a particular resource.
ExpandPermissionTreeRequest is typically used to determine the full set of subjects with a permission, along with the relationships that grant said access.
func (*ExpandPermissionTreeRequest) Descriptor
deprecated
func (*ExpandPermissionTreeRequest) Descriptor() ([]byte, []int)
Deprecated: Use ExpandPermissionTreeRequest.ProtoReflect.Descriptor instead.
func (*ExpandPermissionTreeRequest) GetConsistency ¶
func (x *ExpandPermissionTreeRequest) GetConsistency() *Consistency
func (*ExpandPermissionTreeRequest) GetPermission ¶
func (x *ExpandPermissionTreeRequest) GetPermission() string
func (*ExpandPermissionTreeRequest) GetResource ¶
func (x *ExpandPermissionTreeRequest) GetResource() *ObjectReference
func (*ExpandPermissionTreeRequest) HandwrittenValidate ¶ added in v0.4.0
func (m *ExpandPermissionTreeRequest) HandwrittenValidate() error
func (*ExpandPermissionTreeRequest) ProtoMessage ¶
func (*ExpandPermissionTreeRequest) ProtoMessage()
func (*ExpandPermissionTreeRequest) ProtoReflect ¶
func (x *ExpandPermissionTreeRequest) ProtoReflect() protoreflect.Message
func (*ExpandPermissionTreeRequest) Reset ¶
func (x *ExpandPermissionTreeRequest) Reset()
func (*ExpandPermissionTreeRequest) String ¶
func (x *ExpandPermissionTreeRequest) String() string
func (*ExpandPermissionTreeRequest) Validate ¶
func (m *ExpandPermissionTreeRequest) Validate() error
Validate checks the field values on ExpandPermissionTreeRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ExpandPermissionTreeRequest) ValidateAll ¶ added in v0.6.0
func (m *ExpandPermissionTreeRequest) ValidateAll() error
ValidateAll checks the field values on ExpandPermissionTreeRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ExpandPermissionTreeRequestMultiError, or nil if none found.
type ExpandPermissionTreeRequestMultiError ¶ added in v0.6.0
type ExpandPermissionTreeRequestMultiError []error
ExpandPermissionTreeRequestMultiError is an error wrapping multiple validation errors returned by ExpandPermissionTreeRequest.ValidateAll() if the designated constraints aren't met.
func (ExpandPermissionTreeRequestMultiError) AllErrors ¶ added in v0.6.0
func (m ExpandPermissionTreeRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ExpandPermissionTreeRequestMultiError) Error ¶ added in v0.6.0
func (m ExpandPermissionTreeRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ExpandPermissionTreeRequestValidationError ¶
type ExpandPermissionTreeRequestValidationError struct {
// contains filtered or unexported fields
}
ExpandPermissionTreeRequestValidationError is the validation error returned by ExpandPermissionTreeRequest.Validate if the designated constraints aren't met.
func (ExpandPermissionTreeRequestValidationError) Cause ¶
func (e ExpandPermissionTreeRequestValidationError) Cause() error
Cause function returns cause value.
func (ExpandPermissionTreeRequestValidationError) Error ¶
func (e ExpandPermissionTreeRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ExpandPermissionTreeRequestValidationError) ErrorName ¶
func (e ExpandPermissionTreeRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ExpandPermissionTreeRequestValidationError) Field ¶
func (e ExpandPermissionTreeRequestValidationError) Field() string
Field function returns field value.
func (ExpandPermissionTreeRequestValidationError) Key ¶
func (e ExpandPermissionTreeRequestValidationError) Key() bool
Key function returns key value.
func (ExpandPermissionTreeRequestValidationError) Reason ¶
func (e ExpandPermissionTreeRequestValidationError) Reason() string
Reason function returns reason value.
type ExpandPermissionTreeResponse ¶
type ExpandPermissionTreeResponse struct { ExpandedAt *ZedToken `protobuf:"bytes,1,opt,name=expanded_at,json=expandedAt,proto3" json:"expanded_at,omitempty"` // tree_root is a tree structure whose leaf nodes are subjects, and // intermediate nodes represent the various operations (union, intersection, // exclusion) to reach those subjects. TreeRoot *PermissionRelationshipTree `protobuf:"bytes,2,opt,name=tree_root,json=treeRoot,proto3" json:"tree_root,omitempty"` // contains filtered or unexported fields }
func (*ExpandPermissionTreeResponse) Descriptor
deprecated
func (*ExpandPermissionTreeResponse) Descriptor() ([]byte, []int)
Deprecated: Use ExpandPermissionTreeResponse.ProtoReflect.Descriptor instead.
func (*ExpandPermissionTreeResponse) GetExpandedAt ¶
func (x *ExpandPermissionTreeResponse) GetExpandedAt() *ZedToken
func (*ExpandPermissionTreeResponse) GetTreeRoot ¶
func (x *ExpandPermissionTreeResponse) GetTreeRoot() *PermissionRelationshipTree
func (*ExpandPermissionTreeResponse) ProtoMessage ¶
func (*ExpandPermissionTreeResponse) ProtoMessage()
func (*ExpandPermissionTreeResponse) ProtoReflect ¶
func (x *ExpandPermissionTreeResponse) ProtoReflect() protoreflect.Message
func (*ExpandPermissionTreeResponse) Reset ¶
func (x *ExpandPermissionTreeResponse) Reset()
func (*ExpandPermissionTreeResponse) String ¶
func (x *ExpandPermissionTreeResponse) String() string
func (*ExpandPermissionTreeResponse) Validate ¶
func (m *ExpandPermissionTreeResponse) Validate() error
Validate checks the field values on ExpandPermissionTreeResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ExpandPermissionTreeResponse) ValidateAll ¶ added in v0.6.0
func (m *ExpandPermissionTreeResponse) ValidateAll() error
ValidateAll checks the field values on ExpandPermissionTreeResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ExpandPermissionTreeResponseMultiError, or nil if none found.
type ExpandPermissionTreeResponseMultiError ¶ added in v0.6.0
type ExpandPermissionTreeResponseMultiError []error
ExpandPermissionTreeResponseMultiError is an error wrapping multiple validation errors returned by ExpandPermissionTreeResponse.ValidateAll() if the designated constraints aren't met.
func (ExpandPermissionTreeResponseMultiError) AllErrors ¶ added in v0.6.0
func (m ExpandPermissionTreeResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ExpandPermissionTreeResponseMultiError) Error ¶ added in v0.6.0
func (m ExpandPermissionTreeResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ExpandPermissionTreeResponseValidationError ¶
type ExpandPermissionTreeResponseValidationError struct {
// contains filtered or unexported fields
}
ExpandPermissionTreeResponseValidationError is the validation error returned by ExpandPermissionTreeResponse.Validate if the designated constraints aren't met.
func (ExpandPermissionTreeResponseValidationError) Cause ¶
func (e ExpandPermissionTreeResponseValidationError) Cause() error
Cause function returns cause value.
func (ExpandPermissionTreeResponseValidationError) Error ¶
func (e ExpandPermissionTreeResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ExpandPermissionTreeResponseValidationError) ErrorName ¶
func (e ExpandPermissionTreeResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ExpandPermissionTreeResponseValidationError) Field ¶
func (e ExpandPermissionTreeResponseValidationError) Field() string
Field function returns field value.
func (ExpandPermissionTreeResponseValidationError) Key ¶
func (e ExpandPermissionTreeResponseValidationError) Key() bool
Key function returns key value.
func (ExpandPermissionTreeResponseValidationError) Reason ¶
func (e ExpandPermissionTreeResponseValidationError) Reason() string
Reason function returns reason value.
type LookupResourcesRequest ¶
type LookupResourcesRequest struct { Consistency *Consistency `protobuf:"bytes,1,opt,name=consistency,proto3" json:"consistency,omitempty"` // resource_object_type is the type of resource object for which the IDs will // be returned. ResourceObjectType string `protobuf:"bytes,2,opt,name=resource_object_type,json=resourceObjectType,proto3" json:"resource_object_type,omitempty"` // permission is the name of the permission or relation for which the subject // must Check. Permission string `protobuf:"bytes,3,opt,name=permission,proto3" json:"permission,omitempty"` // subject is the subject with access to the resources. Subject *SubjectReference `protobuf:"bytes,4,opt,name=subject,proto3" json:"subject,omitempty"` // contains filtered or unexported fields }
LookupResourcesRequest performs a lookup of all resources of a particular kind on which the subject has the specified permission or the relation in which the subject exists, streaming back the IDs of those resources.
func (*LookupResourcesRequest) Descriptor
deprecated
func (*LookupResourcesRequest) Descriptor() ([]byte, []int)
Deprecated: Use LookupResourcesRequest.ProtoReflect.Descriptor instead.
func (*LookupResourcesRequest) GetConsistency ¶
func (x *LookupResourcesRequest) GetConsistency() *Consistency
func (*LookupResourcesRequest) GetPermission ¶
func (x *LookupResourcesRequest) GetPermission() string
func (*LookupResourcesRequest) GetResourceObjectType ¶
func (x *LookupResourcesRequest) GetResourceObjectType() string
func (*LookupResourcesRequest) GetSubject ¶
func (x *LookupResourcesRequest) GetSubject() *SubjectReference
func (*LookupResourcesRequest) ProtoMessage ¶
func (*LookupResourcesRequest) ProtoMessage()
func (*LookupResourcesRequest) ProtoReflect ¶
func (x *LookupResourcesRequest) ProtoReflect() protoreflect.Message
func (*LookupResourcesRequest) Reset ¶
func (x *LookupResourcesRequest) Reset()
func (*LookupResourcesRequest) String ¶
func (x *LookupResourcesRequest) String() string
func (*LookupResourcesRequest) Validate ¶
func (m *LookupResourcesRequest) Validate() error
Validate checks the field values on LookupResourcesRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*LookupResourcesRequest) ValidateAll ¶ added in v0.6.0
func (m *LookupResourcesRequest) ValidateAll() error
ValidateAll checks the field values on LookupResourcesRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LookupResourcesRequestMultiError, or nil if none found.
type LookupResourcesRequestMultiError ¶ added in v0.6.0
type LookupResourcesRequestMultiError []error
LookupResourcesRequestMultiError is an error wrapping multiple validation errors returned by LookupResourcesRequest.ValidateAll() if the designated constraints aren't met.
func (LookupResourcesRequestMultiError) AllErrors ¶ added in v0.6.0
func (m LookupResourcesRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LookupResourcesRequestMultiError) Error ¶ added in v0.6.0
func (m LookupResourcesRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LookupResourcesRequestValidationError ¶
type LookupResourcesRequestValidationError struct {
// contains filtered or unexported fields
}
LookupResourcesRequestValidationError is the validation error returned by LookupResourcesRequest.Validate if the designated constraints aren't met.
func (LookupResourcesRequestValidationError) Cause ¶
func (e LookupResourcesRequestValidationError) Cause() error
Cause function returns cause value.
func (LookupResourcesRequestValidationError) Error ¶
func (e LookupResourcesRequestValidationError) Error() string
Error satisfies the builtin error interface
func (LookupResourcesRequestValidationError) ErrorName ¶
func (e LookupResourcesRequestValidationError) ErrorName() string
ErrorName returns error name.
func (LookupResourcesRequestValidationError) Field ¶
func (e LookupResourcesRequestValidationError) Field() string
Field function returns field value.
func (LookupResourcesRequestValidationError) Key ¶
func (e LookupResourcesRequestValidationError) Key() bool
Key function returns key value.
func (LookupResourcesRequestValidationError) Reason ¶
func (e LookupResourcesRequestValidationError) Reason() string
Reason function returns reason value.
type LookupResourcesResponse ¶
type LookupResourcesResponse struct { LookedUpAt *ZedToken `protobuf:"bytes,1,opt,name=looked_up_at,json=lookedUpAt,proto3" json:"looked_up_at,omitempty"` ResourceObjectId string `protobuf:"bytes,2,opt,name=resource_object_id,json=resourceObjectId,proto3" json:"resource_object_id,omitempty"` // contains filtered or unexported fields }
LookupResourcesResponse contains a single matching resource object ID for the requested object type, permission, and subject.
func (*LookupResourcesResponse) Descriptor
deprecated
func (*LookupResourcesResponse) Descriptor() ([]byte, []int)
Deprecated: Use LookupResourcesResponse.ProtoReflect.Descriptor instead.
func (*LookupResourcesResponse) GetLookedUpAt ¶
func (x *LookupResourcesResponse) GetLookedUpAt() *ZedToken
func (*LookupResourcesResponse) GetResourceObjectId ¶
func (x *LookupResourcesResponse) GetResourceObjectId() string
func (*LookupResourcesResponse) ProtoMessage ¶
func (*LookupResourcesResponse) ProtoMessage()
func (*LookupResourcesResponse) ProtoReflect ¶
func (x *LookupResourcesResponse) ProtoReflect() protoreflect.Message
func (*LookupResourcesResponse) Reset ¶
func (x *LookupResourcesResponse) Reset()
func (*LookupResourcesResponse) String ¶
func (x *LookupResourcesResponse) String() string
func (*LookupResourcesResponse) Validate ¶
func (m *LookupResourcesResponse) Validate() error
Validate checks the field values on LookupResourcesResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*LookupResourcesResponse) ValidateAll ¶ added in v0.6.0
func (m *LookupResourcesResponse) ValidateAll() error
ValidateAll checks the field values on LookupResourcesResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LookupResourcesResponseMultiError, or nil if none found.
type LookupResourcesResponseMultiError ¶ added in v0.6.0
type LookupResourcesResponseMultiError []error
LookupResourcesResponseMultiError is an error wrapping multiple validation errors returned by LookupResourcesResponse.ValidateAll() if the designated constraints aren't met.
func (LookupResourcesResponseMultiError) AllErrors ¶ added in v0.6.0
func (m LookupResourcesResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LookupResourcesResponseMultiError) Error ¶ added in v0.6.0
func (m LookupResourcesResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LookupResourcesResponseValidationError ¶
type LookupResourcesResponseValidationError struct {
// contains filtered or unexported fields
}
LookupResourcesResponseValidationError is the validation error returned by LookupResourcesResponse.Validate if the designated constraints aren't met.
func (LookupResourcesResponseValidationError) Cause ¶
func (e LookupResourcesResponseValidationError) Cause() error
Cause function returns cause value.
func (LookupResourcesResponseValidationError) Error ¶
func (e LookupResourcesResponseValidationError) Error() string
Error satisfies the builtin error interface
func (LookupResourcesResponseValidationError) ErrorName ¶
func (e LookupResourcesResponseValidationError) ErrorName() string
ErrorName returns error name.
func (LookupResourcesResponseValidationError) Field ¶
func (e LookupResourcesResponseValidationError) Field() string
Field function returns field value.
func (LookupResourcesResponseValidationError) Key ¶
func (e LookupResourcesResponseValidationError) Key() bool
Key function returns key value.
func (LookupResourcesResponseValidationError) Reason ¶
func (e LookupResourcesResponseValidationError) Reason() string
Reason function returns reason value.
type ObjectReference ¶
type ObjectReference struct { ObjectType string `protobuf:"bytes,1,opt,name=object_type,json=objectType,proto3" json:"object_type,omitempty"` ObjectId string `protobuf:"bytes,2,opt,name=object_id,json=objectId,proto3" json:"object_id,omitempty"` // contains filtered or unexported fields }
ObjectReference is used to refer to a specific object in the system.
func (*ObjectReference) Descriptor
deprecated
func (*ObjectReference) Descriptor() ([]byte, []int)
Deprecated: Use ObjectReference.ProtoReflect.Descriptor instead.
func (*ObjectReference) GetObjectId ¶
func (x *ObjectReference) GetObjectId() string
func (*ObjectReference) GetObjectType ¶
func (x *ObjectReference) GetObjectType() string
func (*ObjectReference) ProtoMessage ¶
func (*ObjectReference) ProtoMessage()
func (*ObjectReference) ProtoReflect ¶
func (x *ObjectReference) ProtoReflect() protoreflect.Message
func (*ObjectReference) Reset ¶
func (x *ObjectReference) Reset()
func (*ObjectReference) String ¶
func (x *ObjectReference) String() string
func (*ObjectReference) Validate ¶
func (m *ObjectReference) Validate() error
Validate checks the field values on ObjectReference with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ObjectReference) ValidateAll ¶ added in v0.6.0
func (m *ObjectReference) ValidateAll() error
ValidateAll checks the field values on ObjectReference with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ObjectReferenceMultiError, or nil if none found.
type ObjectReferenceMultiError ¶ added in v0.6.0
type ObjectReferenceMultiError []error
ObjectReferenceMultiError is an error wrapping multiple validation errors returned by ObjectReference.ValidateAll() if the designated constraints aren't met.
func (ObjectReferenceMultiError) AllErrors ¶ added in v0.6.0
func (m ObjectReferenceMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ObjectReferenceMultiError) Error ¶ added in v0.6.0
func (m ObjectReferenceMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ObjectReferenceValidationError ¶
type ObjectReferenceValidationError struct {
// contains filtered or unexported fields
}
ObjectReferenceValidationError is the validation error returned by ObjectReference.Validate if the designated constraints aren't met.
func (ObjectReferenceValidationError) Cause ¶
func (e ObjectReferenceValidationError) Cause() error
Cause function returns cause value.
func (ObjectReferenceValidationError) Error ¶
func (e ObjectReferenceValidationError) Error() string
Error satisfies the builtin error interface
func (ObjectReferenceValidationError) ErrorName ¶
func (e ObjectReferenceValidationError) ErrorName() string
ErrorName returns error name.
func (ObjectReferenceValidationError) Field ¶
func (e ObjectReferenceValidationError) Field() string
Field function returns field value.
func (ObjectReferenceValidationError) Key ¶
func (e ObjectReferenceValidationError) Key() bool
Key function returns key value.
func (ObjectReferenceValidationError) Reason ¶
func (e ObjectReferenceValidationError) Reason() string
Reason function returns reason value.
type PermissionRelationshipTree ¶
type PermissionRelationshipTree struct { // Types that are assignable to TreeType: // *PermissionRelationshipTree_Intermediate // *PermissionRelationshipTree_Leaf TreeType isPermissionRelationshipTree_TreeType `protobuf_oneof:"tree_type"` ExpandedObject *ObjectReference `protobuf:"bytes,3,opt,name=expanded_object,json=expandedObject,proto3" json:"expanded_object,omitempty"` ExpandedRelation string `protobuf:"bytes,4,opt,name=expanded_relation,json=expandedRelation,proto3" json:"expanded_relation,omitempty"` // contains filtered or unexported fields }
PermissionRelationshipTree is used for representing a tree of a resource and its permission relationships with other objects.
func (*PermissionRelationshipTree) Descriptor
deprecated
func (*PermissionRelationshipTree) Descriptor() ([]byte, []int)
Deprecated: Use PermissionRelationshipTree.ProtoReflect.Descriptor instead.
func (*PermissionRelationshipTree) GetExpandedObject ¶
func (x *PermissionRelationshipTree) GetExpandedObject() *ObjectReference
func (*PermissionRelationshipTree) GetExpandedRelation ¶
func (x *PermissionRelationshipTree) GetExpandedRelation() string
func (*PermissionRelationshipTree) GetIntermediate ¶
func (x *PermissionRelationshipTree) GetIntermediate() *AlgebraicSubjectSet
func (*PermissionRelationshipTree) GetLeaf ¶
func (x *PermissionRelationshipTree) GetLeaf() *DirectSubjectSet
func (*PermissionRelationshipTree) GetTreeType ¶
func (m *PermissionRelationshipTree) GetTreeType() isPermissionRelationshipTree_TreeType
func (*PermissionRelationshipTree) ProtoMessage ¶
func (*PermissionRelationshipTree) ProtoMessage()
func (*PermissionRelationshipTree) ProtoReflect ¶
func (x *PermissionRelationshipTree) ProtoReflect() protoreflect.Message
func (*PermissionRelationshipTree) Reset ¶
func (x *PermissionRelationshipTree) Reset()
func (*PermissionRelationshipTree) String ¶
func (x *PermissionRelationshipTree) String() string
func (*PermissionRelationshipTree) Validate ¶
func (m *PermissionRelationshipTree) Validate() error
Validate checks the field values on PermissionRelationshipTree with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*PermissionRelationshipTree) ValidateAll ¶ added in v0.6.0
func (m *PermissionRelationshipTree) ValidateAll() error
ValidateAll checks the field values on PermissionRelationshipTree with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PermissionRelationshipTreeMultiError, or nil if none found.
type PermissionRelationshipTreeMultiError ¶ added in v0.6.0
type PermissionRelationshipTreeMultiError []error
PermissionRelationshipTreeMultiError is an error wrapping multiple validation errors returned by PermissionRelationshipTree.ValidateAll() if the designated constraints aren't met.
func (PermissionRelationshipTreeMultiError) AllErrors ¶ added in v0.6.0
func (m PermissionRelationshipTreeMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PermissionRelationshipTreeMultiError) Error ¶ added in v0.6.0
func (m PermissionRelationshipTreeMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PermissionRelationshipTreeValidationError ¶
type PermissionRelationshipTreeValidationError struct {
// contains filtered or unexported fields
}
PermissionRelationshipTreeValidationError is the validation error returned by PermissionRelationshipTree.Validate if the designated constraints aren't met.
func (PermissionRelationshipTreeValidationError) Cause ¶
func (e PermissionRelationshipTreeValidationError) Cause() error
Cause function returns cause value.
func (PermissionRelationshipTreeValidationError) Error ¶
func (e PermissionRelationshipTreeValidationError) Error() string
Error satisfies the builtin error interface
func (PermissionRelationshipTreeValidationError) ErrorName ¶
func (e PermissionRelationshipTreeValidationError) ErrorName() string
ErrorName returns error name.
func (PermissionRelationshipTreeValidationError) Field ¶
func (e PermissionRelationshipTreeValidationError) Field() string
Field function returns field value.
func (PermissionRelationshipTreeValidationError) Key ¶
func (e PermissionRelationshipTreeValidationError) Key() bool
Key function returns key value.
func (PermissionRelationshipTreeValidationError) Reason ¶
func (e PermissionRelationshipTreeValidationError) Reason() string
Reason function returns reason value.
type PermissionRelationshipTree_Intermediate ¶
type PermissionRelationshipTree_Intermediate struct {
Intermediate *AlgebraicSubjectSet `protobuf:"bytes,1,opt,name=intermediate,proto3,oneof"`
}
type PermissionRelationshipTree_Leaf ¶
type PermissionRelationshipTree_Leaf struct {
Leaf *DirectSubjectSet `protobuf:"bytes,2,opt,name=leaf,proto3,oneof"`
}
type PermissionsServiceClient ¶
type PermissionsServiceClient interface { // ReadRelationships reads a set of the relationships matching one or more // filters. ReadRelationships(ctx context.Context, in *ReadRelationshipsRequest, opts ...grpc.CallOption) (PermissionsService_ReadRelationshipsClient, error) // WriteRelationships atomically writes and/or deletes a set of specified // relationships. An optional set of preconditions can be provided that must // be satisfied for the operation to commit. WriteRelationships(ctx context.Context, in *WriteRelationshipsRequest, opts ...grpc.CallOption) (*WriteRelationshipsResponse, error) // DeleteRelationships atomically bulk deletes relationships matching one or // more filters. An optional set of preconditions can be provided that must // be satisfied for the operation to commit. DeleteRelationships(ctx context.Context, in *DeleteRelationshipsRequest, opts ...grpc.CallOption) (*DeleteRelationshipsResponse, error) // CheckPermission determines for a given resource whether a subject computes // to having a permission or is a direct member of a particular relation. CheckPermission(ctx context.Context, in *CheckPermissionRequest, opts ...grpc.CallOption) (*CheckPermissionResponse, error) // ExpandPermissionTree reveals the graph structure for a resource's // permission or relation. This RPC does not recurse infinitely deep and may // require multiple calls to fully unnest a deeply nested graph. ExpandPermissionTree(ctx context.Context, in *ExpandPermissionTreeRequest, opts ...grpc.CallOption) (*ExpandPermissionTreeResponse, error) // LookupResources returns all the resources of a given type that a subject // can access whether via a computed permission or relation membership. LookupResources(ctx context.Context, in *LookupResourcesRequest, opts ...grpc.CallOption) (PermissionsService_LookupResourcesClient, error) }
PermissionsServiceClient is the client API for PermissionsService 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 NewPermissionsServiceClient ¶
func NewPermissionsServiceClient(cc grpc.ClientConnInterface) PermissionsServiceClient
type PermissionsServiceServer ¶
type PermissionsServiceServer interface { // ReadRelationships reads a set of the relationships matching one or more // filters. ReadRelationships(*ReadRelationshipsRequest, PermissionsService_ReadRelationshipsServer) error // WriteRelationships atomically writes and/or deletes a set of specified // relationships. An optional set of preconditions can be provided that must // be satisfied for the operation to commit. WriteRelationships(context.Context, *WriteRelationshipsRequest) (*WriteRelationshipsResponse, error) // DeleteRelationships atomically bulk deletes relationships matching one or // more filters. An optional set of preconditions can be provided that must // be satisfied for the operation to commit. DeleteRelationships(context.Context, *DeleteRelationshipsRequest) (*DeleteRelationshipsResponse, error) // CheckPermission determines for a given resource whether a subject computes // to having a permission or is a direct member of a particular relation. CheckPermission(context.Context, *CheckPermissionRequest) (*CheckPermissionResponse, error) // ExpandPermissionTree reveals the graph structure for a resource's // permission or relation. This RPC does not recurse infinitely deep and may // require multiple calls to fully unnest a deeply nested graph. ExpandPermissionTree(context.Context, *ExpandPermissionTreeRequest) (*ExpandPermissionTreeResponse, error) // LookupResources returns all the resources of a given type that a subject // can access whether via a computed permission or relation membership. LookupResources(*LookupResourcesRequest, PermissionsService_LookupResourcesServer) error // contains filtered or unexported methods }
PermissionsServiceServer is the server API for PermissionsService service. All implementations must embed UnimplementedPermissionsServiceServer for forward compatibility
type PermissionsService_LookupResourcesClient ¶
type PermissionsService_LookupResourcesClient interface { Recv() (*LookupResourcesResponse, error) grpc.ClientStream }
type PermissionsService_LookupResourcesServer ¶
type PermissionsService_LookupResourcesServer interface { Send(*LookupResourcesResponse) error grpc.ServerStream }
type PermissionsService_ReadRelationshipsClient ¶
type PermissionsService_ReadRelationshipsClient interface { Recv() (*ReadRelationshipsResponse, error) grpc.ClientStream }
type PermissionsService_ReadRelationshipsServer ¶
type PermissionsService_ReadRelationshipsServer interface { Send(*ReadRelationshipsResponse) error grpc.ServerStream }
type Precondition ¶
type Precondition struct { Operation Precondition_Operation `protobuf:"varint,1,opt,name=operation,proto3,enum=authzed.api.v1.Precondition_Operation" json:"operation,omitempty"` Filter *RelationshipFilter `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"` // contains filtered or unexported fields }
Precondition specifies how and the existence or absence of certain relationships as expressed through the accompanying filter should affect whether or not the operation proceeds.
MUST_NOT_MATCH will fail the parent request if any relationships match the relationships filter. MUST_MATCH will fail the parent request if there are no relationships that match the filter.
func (*Precondition) Descriptor
deprecated
func (*Precondition) Descriptor() ([]byte, []int)
Deprecated: Use Precondition.ProtoReflect.Descriptor instead.
func (*Precondition) GetFilter ¶
func (x *Precondition) GetFilter() *RelationshipFilter
func (*Precondition) GetOperation ¶
func (x *Precondition) GetOperation() Precondition_Operation
func (*Precondition) HandwrittenValidate ¶ added in v0.4.0
func (m *Precondition) HandwrittenValidate() error
func (*Precondition) ProtoMessage ¶
func (*Precondition) ProtoMessage()
func (*Precondition) ProtoReflect ¶
func (x *Precondition) ProtoReflect() protoreflect.Message
func (*Precondition) Reset ¶
func (x *Precondition) Reset()
func (*Precondition) String ¶
func (x *Precondition) String() string
func (*Precondition) Validate ¶
func (m *Precondition) Validate() error
Validate checks the field values on Precondition with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Precondition) ValidateAll ¶ added in v0.6.0
func (m *Precondition) ValidateAll() error
ValidateAll checks the field values on Precondition with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PreconditionMultiError, or nil if none found.
type PreconditionMultiError ¶ added in v0.6.0
type PreconditionMultiError []error
PreconditionMultiError is an error wrapping multiple validation errors returned by Precondition.ValidateAll() if the designated constraints aren't met.
func (PreconditionMultiError) AllErrors ¶ added in v0.6.0
func (m PreconditionMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PreconditionMultiError) Error ¶ added in v0.6.0
func (m PreconditionMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PreconditionValidationError ¶
type PreconditionValidationError struct {
// contains filtered or unexported fields
}
PreconditionValidationError is the validation error returned by Precondition.Validate if the designated constraints aren't met.
func (PreconditionValidationError) Cause ¶
func (e PreconditionValidationError) Cause() error
Cause function returns cause value.
func (PreconditionValidationError) Error ¶
func (e PreconditionValidationError) Error() string
Error satisfies the builtin error interface
func (PreconditionValidationError) ErrorName ¶
func (e PreconditionValidationError) ErrorName() string
ErrorName returns error name.
func (PreconditionValidationError) Field ¶
func (e PreconditionValidationError) Field() string
Field function returns field value.
func (PreconditionValidationError) Key ¶
func (e PreconditionValidationError) Key() bool
Key function returns key value.
func (PreconditionValidationError) Reason ¶
func (e PreconditionValidationError) Reason() string
Reason function returns reason value.
type Precondition_Operation ¶
type Precondition_Operation int32
const ( Precondition_OPERATION_UNSPECIFIED Precondition_Operation = 0 Precondition_OPERATION_MUST_NOT_MATCH Precondition_Operation = 1 Precondition_OPERATION_MUST_MATCH Precondition_Operation = 2 )
func (Precondition_Operation) Descriptor ¶
func (Precondition_Operation) Descriptor() protoreflect.EnumDescriptor
func (Precondition_Operation) Enum ¶
func (x Precondition_Operation) Enum() *Precondition_Operation
func (Precondition_Operation) EnumDescriptor
deprecated
func (Precondition_Operation) EnumDescriptor() ([]byte, []int)
Deprecated: Use Precondition_Operation.Descriptor instead.
func (Precondition_Operation) Number ¶
func (x Precondition_Operation) Number() protoreflect.EnumNumber
func (Precondition_Operation) String ¶
func (x Precondition_Operation) String() string
func (Precondition_Operation) Type ¶
func (Precondition_Operation) Type() protoreflect.EnumType
type ReadRelationshipsRequest ¶
type ReadRelationshipsRequest struct { Consistency *Consistency `protobuf:"bytes,1,opt,name=consistency,proto3" json:"consistency,omitempty"` RelationshipFilter *RelationshipFilter `protobuf:"bytes,2,opt,name=relationship_filter,json=relationshipFilter,proto3" json:"relationship_filter,omitempty"` // contains filtered or unexported fields }
ReadRelationshipsRequest specifies one or more filters used to read matching relationships within the system.
func (*ReadRelationshipsRequest) Descriptor
deprecated
func (*ReadRelationshipsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ReadRelationshipsRequest.ProtoReflect.Descriptor instead.
func (*ReadRelationshipsRequest) GetConsistency ¶
func (x *ReadRelationshipsRequest) GetConsistency() *Consistency
func (*ReadRelationshipsRequest) GetRelationshipFilter ¶
func (x *ReadRelationshipsRequest) GetRelationshipFilter() *RelationshipFilter
func (*ReadRelationshipsRequest) ProtoMessage ¶
func (*ReadRelationshipsRequest) ProtoMessage()
func (*ReadRelationshipsRequest) ProtoReflect ¶
func (x *ReadRelationshipsRequest) ProtoReflect() protoreflect.Message
func (*ReadRelationshipsRequest) Reset ¶
func (x *ReadRelationshipsRequest) Reset()
func (*ReadRelationshipsRequest) String ¶
func (x *ReadRelationshipsRequest) String() string
func (*ReadRelationshipsRequest) Validate ¶
func (m *ReadRelationshipsRequest) Validate() error
Validate checks the field values on ReadRelationshipsRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ReadRelationshipsRequest) ValidateAll ¶ added in v0.6.0
func (m *ReadRelationshipsRequest) ValidateAll() error
ValidateAll checks the field values on ReadRelationshipsRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ReadRelationshipsRequestMultiError, or nil if none found.
type ReadRelationshipsRequestMultiError ¶ added in v0.6.0
type ReadRelationshipsRequestMultiError []error
ReadRelationshipsRequestMultiError is an error wrapping multiple validation errors returned by ReadRelationshipsRequest.ValidateAll() if the designated constraints aren't met.
func (ReadRelationshipsRequestMultiError) AllErrors ¶ added in v0.6.0
func (m ReadRelationshipsRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ReadRelationshipsRequestMultiError) Error ¶ added in v0.6.0
func (m ReadRelationshipsRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ReadRelationshipsRequestValidationError ¶
type ReadRelationshipsRequestValidationError struct {
// contains filtered or unexported fields
}
ReadRelationshipsRequestValidationError is the validation error returned by ReadRelationshipsRequest.Validate if the designated constraints aren't met.
func (ReadRelationshipsRequestValidationError) Cause ¶
func (e ReadRelationshipsRequestValidationError) Cause() error
Cause function returns cause value.
func (ReadRelationshipsRequestValidationError) Error ¶
func (e ReadRelationshipsRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ReadRelationshipsRequestValidationError) ErrorName ¶
func (e ReadRelationshipsRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ReadRelationshipsRequestValidationError) Field ¶
func (e ReadRelationshipsRequestValidationError) Field() string
Field function returns field value.
func (ReadRelationshipsRequestValidationError) Key ¶
func (e ReadRelationshipsRequestValidationError) Key() bool
Key function returns key value.
func (ReadRelationshipsRequestValidationError) Reason ¶
func (e ReadRelationshipsRequestValidationError) Reason() string
Reason function returns reason value.
type ReadRelationshipsResponse ¶
type ReadRelationshipsResponse struct { ReadAt *ZedToken `protobuf:"bytes,1,opt,name=read_at,json=readAt,proto3" json:"read_at,omitempty"` Relationship *Relationship `protobuf:"bytes,2,opt,name=relationship,proto3" json:"relationship,omitempty"` // contains filtered or unexported fields }
ReadRelationshipsResponse contains a Relationship found that matches the specified relationship filter(s). A instance of this response message will be streamed to the client for each relationship found.
func (*ReadRelationshipsResponse) Descriptor
deprecated
func (*ReadRelationshipsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ReadRelationshipsResponse.ProtoReflect.Descriptor instead.
func (*ReadRelationshipsResponse) GetReadAt ¶
func (x *ReadRelationshipsResponse) GetReadAt() *ZedToken
func (*ReadRelationshipsResponse) GetRelationship ¶
func (x *ReadRelationshipsResponse) GetRelationship() *Relationship
func (*ReadRelationshipsResponse) ProtoMessage ¶
func (*ReadRelationshipsResponse) ProtoMessage()
func (*ReadRelationshipsResponse) ProtoReflect ¶
func (x *ReadRelationshipsResponse) ProtoReflect() protoreflect.Message
func (*ReadRelationshipsResponse) Reset ¶
func (x *ReadRelationshipsResponse) Reset()
func (*ReadRelationshipsResponse) String ¶
func (x *ReadRelationshipsResponse) String() string
func (*ReadRelationshipsResponse) Validate ¶
func (m *ReadRelationshipsResponse) Validate() error
Validate checks the field values on ReadRelationshipsResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ReadRelationshipsResponse) ValidateAll ¶ added in v0.6.0
func (m *ReadRelationshipsResponse) ValidateAll() error
ValidateAll checks the field values on ReadRelationshipsResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ReadRelationshipsResponseMultiError, or nil if none found.
type ReadRelationshipsResponseMultiError ¶ added in v0.6.0
type ReadRelationshipsResponseMultiError []error
ReadRelationshipsResponseMultiError is an error wrapping multiple validation errors returned by ReadRelationshipsResponse.ValidateAll() if the designated constraints aren't met.
func (ReadRelationshipsResponseMultiError) AllErrors ¶ added in v0.6.0
func (m ReadRelationshipsResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ReadRelationshipsResponseMultiError) Error ¶ added in v0.6.0
func (m ReadRelationshipsResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ReadRelationshipsResponseValidationError ¶
type ReadRelationshipsResponseValidationError struct {
// contains filtered or unexported fields
}
ReadRelationshipsResponseValidationError is the validation error returned by ReadRelationshipsResponse.Validate if the designated constraints aren't met.
func (ReadRelationshipsResponseValidationError) Cause ¶
func (e ReadRelationshipsResponseValidationError) Cause() error
Cause function returns cause value.
func (ReadRelationshipsResponseValidationError) Error ¶
func (e ReadRelationshipsResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ReadRelationshipsResponseValidationError) ErrorName ¶
func (e ReadRelationshipsResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ReadRelationshipsResponseValidationError) Field ¶
func (e ReadRelationshipsResponseValidationError) Field() string
Field function returns field value.
func (ReadRelationshipsResponseValidationError) Key ¶
func (e ReadRelationshipsResponseValidationError) Key() bool
Key function returns key value.
func (ReadRelationshipsResponseValidationError) Reason ¶
func (e ReadRelationshipsResponseValidationError) Reason() string
Reason function returns reason value.
type ReadSchemaRequest ¶
type ReadSchemaRequest struct {
// contains filtered or unexported fields
}
ReadSchemaRequest returns the schema from the database.
func (*ReadSchemaRequest) Descriptor
deprecated
func (*ReadSchemaRequest) Descriptor() ([]byte, []int)
Deprecated: Use ReadSchemaRequest.ProtoReflect.Descriptor instead.
func (*ReadSchemaRequest) ProtoMessage ¶
func (*ReadSchemaRequest) ProtoMessage()
func (*ReadSchemaRequest) ProtoReflect ¶
func (x *ReadSchemaRequest) ProtoReflect() protoreflect.Message
func (*ReadSchemaRequest) Reset ¶
func (x *ReadSchemaRequest) Reset()
func (*ReadSchemaRequest) String ¶
func (x *ReadSchemaRequest) String() string
func (*ReadSchemaRequest) Validate ¶
func (m *ReadSchemaRequest) Validate() error
Validate checks the field values on ReadSchemaRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ReadSchemaRequest) ValidateAll ¶ added in v0.6.0
func (m *ReadSchemaRequest) ValidateAll() error
ValidateAll checks the field values on ReadSchemaRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ReadSchemaRequestMultiError, or nil if none found.
type ReadSchemaRequestMultiError ¶ added in v0.6.0
type ReadSchemaRequestMultiError []error
ReadSchemaRequestMultiError is an error wrapping multiple validation errors returned by ReadSchemaRequest.ValidateAll() if the designated constraints aren't met.
func (ReadSchemaRequestMultiError) AllErrors ¶ added in v0.6.0
func (m ReadSchemaRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ReadSchemaRequestMultiError) Error ¶ added in v0.6.0
func (m ReadSchemaRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ReadSchemaRequestValidationError ¶
type ReadSchemaRequestValidationError struct {
// contains filtered or unexported fields
}
ReadSchemaRequestValidationError is the validation error returned by ReadSchemaRequest.Validate if the designated constraints aren't met.
func (ReadSchemaRequestValidationError) Cause ¶
func (e ReadSchemaRequestValidationError) Cause() error
Cause function returns cause value.
func (ReadSchemaRequestValidationError) Error ¶
func (e ReadSchemaRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ReadSchemaRequestValidationError) ErrorName ¶
func (e ReadSchemaRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ReadSchemaRequestValidationError) Field ¶
func (e ReadSchemaRequestValidationError) Field() string
Field function returns field value.
func (ReadSchemaRequestValidationError) Key ¶
func (e ReadSchemaRequestValidationError) Key() bool
Key function returns key value.
func (ReadSchemaRequestValidationError) Reason ¶
func (e ReadSchemaRequestValidationError) Reason() string
Reason function returns reason value.
type ReadSchemaResponse ¶
type ReadSchemaResponse struct { // schema_text is the textual form of the current schema in the system SchemaText string `protobuf:"bytes,1,opt,name=schema_text,json=schemaText,proto3" json:"schema_text,omitempty"` // contains filtered or unexported fields }
ReadSchemaResponse is the resulting data after having read the Object Definitions from a Schema.
func (*ReadSchemaResponse) Descriptor
deprecated
func (*ReadSchemaResponse) Descriptor() ([]byte, []int)
Deprecated: Use ReadSchemaResponse.ProtoReflect.Descriptor instead.
func (*ReadSchemaResponse) GetSchemaText ¶
func (x *ReadSchemaResponse) GetSchemaText() string
func (*ReadSchemaResponse) ProtoMessage ¶
func (*ReadSchemaResponse) ProtoMessage()
func (*ReadSchemaResponse) ProtoReflect ¶
func (x *ReadSchemaResponse) ProtoReflect() protoreflect.Message
func (*ReadSchemaResponse) Reset ¶
func (x *ReadSchemaResponse) Reset()
func (*ReadSchemaResponse) String ¶
func (x *ReadSchemaResponse) String() string
func (*ReadSchemaResponse) Validate ¶
func (m *ReadSchemaResponse) Validate() error
Validate checks the field values on ReadSchemaResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ReadSchemaResponse) ValidateAll ¶ added in v0.6.0
func (m *ReadSchemaResponse) ValidateAll() error
ValidateAll checks the field values on ReadSchemaResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ReadSchemaResponseMultiError, or nil if none found.
type ReadSchemaResponseMultiError ¶ added in v0.6.0
type ReadSchemaResponseMultiError []error
ReadSchemaResponseMultiError is an error wrapping multiple validation errors returned by ReadSchemaResponse.ValidateAll() if the designated constraints aren't met.
func (ReadSchemaResponseMultiError) AllErrors ¶ added in v0.6.0
func (m ReadSchemaResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ReadSchemaResponseMultiError) Error ¶ added in v0.6.0
func (m ReadSchemaResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ReadSchemaResponseValidationError ¶
type ReadSchemaResponseValidationError struct {
// contains filtered or unexported fields
}
ReadSchemaResponseValidationError is the validation error returned by ReadSchemaResponse.Validate if the designated constraints aren't met.
func (ReadSchemaResponseValidationError) Cause ¶
func (e ReadSchemaResponseValidationError) Cause() error
Cause function returns cause value.
func (ReadSchemaResponseValidationError) Error ¶
func (e ReadSchemaResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ReadSchemaResponseValidationError) ErrorName ¶
func (e ReadSchemaResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ReadSchemaResponseValidationError) Field ¶
func (e ReadSchemaResponseValidationError) Field() string
Field function returns field value.
func (ReadSchemaResponseValidationError) Key ¶
func (e ReadSchemaResponseValidationError) Key() bool
Key function returns key value.
func (ReadSchemaResponseValidationError) Reason ¶
func (e ReadSchemaResponseValidationError) Reason() string
Reason function returns reason value.
type Relationship ¶
type Relationship struct { // resource is the resource to which the subject is related, in some manner Resource *ObjectReference `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"` // relation is how the resource and subject are related. Relation string `protobuf:"bytes,2,opt,name=relation,proto3" json:"relation,omitempty"` // subject is the subject to which the resource is related, in some manner. Subject *SubjectReference `protobuf:"bytes,3,opt,name=subject,proto3" json:"subject,omitempty"` // contains filtered or unexported fields }
Relationship specifies how a resource relates to a subject. Relationships form the data for the graph over which all permissions questions are answered.
func (*Relationship) Descriptor
deprecated
func (*Relationship) Descriptor() ([]byte, []int)
Deprecated: Use Relationship.ProtoReflect.Descriptor instead.
func (*Relationship) GetRelation ¶
func (x *Relationship) GetRelation() string
func (*Relationship) GetResource ¶
func (x *Relationship) GetResource() *ObjectReference
func (*Relationship) GetSubject ¶
func (x *Relationship) GetSubject() *SubjectReference
func (*Relationship) HandwrittenValidate ¶ added in v0.4.0
func (m *Relationship) HandwrittenValidate() error
func (*Relationship) ProtoMessage ¶
func (*Relationship) ProtoMessage()
func (*Relationship) ProtoReflect ¶
func (x *Relationship) ProtoReflect() protoreflect.Message
func (*Relationship) Reset ¶
func (x *Relationship) Reset()
func (*Relationship) String ¶
func (x *Relationship) String() string
func (*Relationship) Validate ¶
func (m *Relationship) Validate() error
Validate checks the field values on Relationship with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Relationship) ValidateAll ¶ added in v0.6.0
func (m *Relationship) ValidateAll() error
ValidateAll checks the field values on Relationship with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RelationshipMultiError, or nil if none found.
type RelationshipFilter ¶
type RelationshipFilter struct { ResourceType string `protobuf:"bytes,1,opt,name=resource_type,json=resourceType,proto3" json:"resource_type,omitempty"` OptionalResourceId string `protobuf:"bytes,2,opt,name=optional_resource_id,json=optionalResourceId,proto3" json:"optional_resource_id,omitempty"` OptionalRelation string `protobuf:"bytes,3,opt,name=optional_relation,json=optionalRelation,proto3" json:"optional_relation,omitempty"` OptionalSubjectFilter *SubjectFilter `` /* 126-byte string literal not displayed */ // contains filtered or unexported fields }
RelationshipFilter is a collection of filters which when applied to a relationship will return relationships that have exactly matching fields.
resource_type is required. All other fields are optional and if left unspecified will not filter relationships.
func (*RelationshipFilter) Descriptor
deprecated
func (*RelationshipFilter) Descriptor() ([]byte, []int)
Deprecated: Use RelationshipFilter.ProtoReflect.Descriptor instead.
func (*RelationshipFilter) GetOptionalRelation ¶
func (x *RelationshipFilter) GetOptionalRelation() string
func (*RelationshipFilter) GetOptionalResourceId ¶
func (x *RelationshipFilter) GetOptionalResourceId() string
func (*RelationshipFilter) GetOptionalSubjectFilter ¶
func (x *RelationshipFilter) GetOptionalSubjectFilter() *SubjectFilter
func (*RelationshipFilter) GetResourceType ¶
func (x *RelationshipFilter) GetResourceType() string
func (*RelationshipFilter) HandwrittenValidate ¶ added in v0.4.0
func (m *RelationshipFilter) HandwrittenValidate() error
func (*RelationshipFilter) ProtoMessage ¶
func (*RelationshipFilter) ProtoMessage()
func (*RelationshipFilter) ProtoReflect ¶
func (x *RelationshipFilter) ProtoReflect() protoreflect.Message
func (*RelationshipFilter) Reset ¶
func (x *RelationshipFilter) Reset()
func (*RelationshipFilter) String ¶
func (x *RelationshipFilter) String() string
func (*RelationshipFilter) Validate ¶
func (m *RelationshipFilter) Validate() error
Validate checks the field values on RelationshipFilter with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*RelationshipFilter) ValidateAll ¶ added in v0.6.0
func (m *RelationshipFilter) ValidateAll() error
ValidateAll checks the field values on RelationshipFilter with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RelationshipFilterMultiError, or nil if none found.
type RelationshipFilterMultiError ¶ added in v0.6.0
type RelationshipFilterMultiError []error
RelationshipFilterMultiError is an error wrapping multiple validation errors returned by RelationshipFilter.ValidateAll() if the designated constraints aren't met.
func (RelationshipFilterMultiError) AllErrors ¶ added in v0.6.0
func (m RelationshipFilterMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RelationshipFilterMultiError) Error ¶ added in v0.6.0
func (m RelationshipFilterMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RelationshipFilterValidationError ¶
type RelationshipFilterValidationError struct {
// contains filtered or unexported fields
}
RelationshipFilterValidationError is the validation error returned by RelationshipFilter.Validate if the designated constraints aren't met.
func (RelationshipFilterValidationError) Cause ¶
func (e RelationshipFilterValidationError) Cause() error
Cause function returns cause value.
func (RelationshipFilterValidationError) Error ¶
func (e RelationshipFilterValidationError) Error() string
Error satisfies the builtin error interface
func (RelationshipFilterValidationError) ErrorName ¶
func (e RelationshipFilterValidationError) ErrorName() string
ErrorName returns error name.
func (RelationshipFilterValidationError) Field ¶
func (e RelationshipFilterValidationError) Field() string
Field function returns field value.
func (RelationshipFilterValidationError) Key ¶
func (e RelationshipFilterValidationError) Key() bool
Key function returns key value.
func (RelationshipFilterValidationError) Reason ¶
func (e RelationshipFilterValidationError) Reason() string
Reason function returns reason value.
type RelationshipMultiError ¶ added in v0.6.0
type RelationshipMultiError []error
RelationshipMultiError is an error wrapping multiple validation errors returned by Relationship.ValidateAll() if the designated constraints aren't met.
func (RelationshipMultiError) AllErrors ¶ added in v0.6.0
func (m RelationshipMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RelationshipMultiError) Error ¶ added in v0.6.0
func (m RelationshipMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RelationshipUpdate ¶
type RelationshipUpdate struct { Operation RelationshipUpdate_Operation `protobuf:"varint,1,opt,name=operation,proto3,enum=authzed.api.v1.RelationshipUpdate_Operation" json:"operation,omitempty"` Relationship *Relationship `protobuf:"bytes,2,opt,name=relationship,proto3" json:"relationship,omitempty"` // contains filtered or unexported fields }
RelationshipUpdate is used for mutating a single relationship within the service.
CREATE will create the relationship only if it doesn't exist, and error otherwise.
TOUCH will upsert the relationship, and will not error if it already exists.
DELETE will delete the relationship and error if it doesn't exist.
func (*RelationshipUpdate) Descriptor
deprecated
func (*RelationshipUpdate) Descriptor() ([]byte, []int)
Deprecated: Use RelationshipUpdate.ProtoReflect.Descriptor instead.
func (*RelationshipUpdate) GetOperation ¶
func (x *RelationshipUpdate) GetOperation() RelationshipUpdate_Operation
func (*RelationshipUpdate) GetRelationship ¶
func (x *RelationshipUpdate) GetRelationship() *Relationship
func (*RelationshipUpdate) HandwrittenValidate ¶ added in v0.4.0
func (m *RelationshipUpdate) HandwrittenValidate() error
func (*RelationshipUpdate) ProtoMessage ¶
func (*RelationshipUpdate) ProtoMessage()
func (*RelationshipUpdate) ProtoReflect ¶
func (x *RelationshipUpdate) ProtoReflect() protoreflect.Message
func (*RelationshipUpdate) Reset ¶
func (x *RelationshipUpdate) Reset()
func (*RelationshipUpdate) String ¶
func (x *RelationshipUpdate) String() string
func (*RelationshipUpdate) Validate ¶
func (m *RelationshipUpdate) Validate() error
Validate checks the field values on RelationshipUpdate with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*RelationshipUpdate) ValidateAll ¶ added in v0.6.0
func (m *RelationshipUpdate) ValidateAll() error
ValidateAll checks the field values on RelationshipUpdate with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RelationshipUpdateMultiError, or nil if none found.
type RelationshipUpdateMultiError ¶ added in v0.6.0
type RelationshipUpdateMultiError []error
RelationshipUpdateMultiError is an error wrapping multiple validation errors returned by RelationshipUpdate.ValidateAll() if the designated constraints aren't met.
func (RelationshipUpdateMultiError) AllErrors ¶ added in v0.6.0
func (m RelationshipUpdateMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RelationshipUpdateMultiError) Error ¶ added in v0.6.0
func (m RelationshipUpdateMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RelationshipUpdateValidationError ¶
type RelationshipUpdateValidationError struct {
// contains filtered or unexported fields
}
RelationshipUpdateValidationError is the validation error returned by RelationshipUpdate.Validate if the designated constraints aren't met.
func (RelationshipUpdateValidationError) Cause ¶
func (e RelationshipUpdateValidationError) Cause() error
Cause function returns cause value.
func (RelationshipUpdateValidationError) Error ¶
func (e RelationshipUpdateValidationError) Error() string
Error satisfies the builtin error interface
func (RelationshipUpdateValidationError) ErrorName ¶
func (e RelationshipUpdateValidationError) ErrorName() string
ErrorName returns error name.
func (RelationshipUpdateValidationError) Field ¶
func (e RelationshipUpdateValidationError) Field() string
Field function returns field value.
func (RelationshipUpdateValidationError) Key ¶
func (e RelationshipUpdateValidationError) Key() bool
Key function returns key value.
func (RelationshipUpdateValidationError) Reason ¶
func (e RelationshipUpdateValidationError) Reason() string
Reason function returns reason value.
type RelationshipUpdate_Operation ¶
type RelationshipUpdate_Operation int32
const ( RelationshipUpdate_OPERATION_UNSPECIFIED RelationshipUpdate_Operation = 0 RelationshipUpdate_OPERATION_CREATE RelationshipUpdate_Operation = 1 RelationshipUpdate_OPERATION_TOUCH RelationshipUpdate_Operation = 2 RelationshipUpdate_OPERATION_DELETE RelationshipUpdate_Operation = 3 )
func (RelationshipUpdate_Operation) Descriptor ¶
func (RelationshipUpdate_Operation) Descriptor() protoreflect.EnumDescriptor
func (RelationshipUpdate_Operation) Enum ¶
func (x RelationshipUpdate_Operation) Enum() *RelationshipUpdate_Operation
func (RelationshipUpdate_Operation) EnumDescriptor
deprecated
func (RelationshipUpdate_Operation) EnumDescriptor() ([]byte, []int)
Deprecated: Use RelationshipUpdate_Operation.Descriptor instead.
func (RelationshipUpdate_Operation) Number ¶
func (x RelationshipUpdate_Operation) Number() protoreflect.EnumNumber
func (RelationshipUpdate_Operation) String ¶
func (x RelationshipUpdate_Operation) String() string
func (RelationshipUpdate_Operation) Type ¶
func (RelationshipUpdate_Operation) Type() protoreflect.EnumType
type RelationshipValidationError ¶
type RelationshipValidationError struct {
// contains filtered or unexported fields
}
RelationshipValidationError is the validation error returned by Relationship.Validate if the designated constraints aren't met.
func (RelationshipValidationError) Cause ¶
func (e RelationshipValidationError) Cause() error
Cause function returns cause value.
func (RelationshipValidationError) Error ¶
func (e RelationshipValidationError) Error() string
Error satisfies the builtin error interface
func (RelationshipValidationError) ErrorName ¶
func (e RelationshipValidationError) ErrorName() string
ErrorName returns error name.
func (RelationshipValidationError) Field ¶
func (e RelationshipValidationError) Field() string
Field function returns field value.
func (RelationshipValidationError) Key ¶
func (e RelationshipValidationError) Key() bool
Key function returns key value.
func (RelationshipValidationError) Reason ¶
func (e RelationshipValidationError) Reason() string
Reason function returns reason value.
type SchemaServiceClient ¶
type SchemaServiceClient interface { // Read returns the current Object Definitions for a Permissions System. // // Errors include: // - INVALID_ARGUMENT: a provided value has failed to semantically validate // - NOT_FOUND: no schema has been defined ReadSchema(ctx context.Context, in *ReadSchemaRequest, opts ...grpc.CallOption) (*ReadSchemaResponse, error) // Write overwrites the current Object Definitions for a Permissions System. WriteSchema(ctx context.Context, in *WriteSchemaRequest, opts ...grpc.CallOption) (*WriteSchemaResponse, error) }
SchemaServiceClient is the client API for SchemaService 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 NewSchemaServiceClient ¶
func NewSchemaServiceClient(cc grpc.ClientConnInterface) SchemaServiceClient
type SchemaServiceServer ¶
type SchemaServiceServer interface { // Read returns the current Object Definitions for a Permissions System. // // Errors include: // - INVALID_ARGUMENT: a provided value has failed to semantically validate // - NOT_FOUND: no schema has been defined ReadSchema(context.Context, *ReadSchemaRequest) (*ReadSchemaResponse, error) // Write overwrites the current Object Definitions for a Permissions System. WriteSchema(context.Context, *WriteSchemaRequest) (*WriteSchemaResponse, error) // contains filtered or unexported methods }
SchemaServiceServer is the server API for SchemaService service. All implementations must embed UnimplementedSchemaServiceServer for forward compatibility
type SubjectFilter ¶
type SubjectFilter struct { SubjectType string `protobuf:"bytes,1,opt,name=subject_type,json=subjectType,proto3" json:"subject_type,omitempty"` OptionalSubjectId string `protobuf:"bytes,2,opt,name=optional_subject_id,json=optionalSubjectId,proto3" json:"optional_subject_id,omitempty"` OptionalRelation *SubjectFilter_RelationFilter `protobuf:"bytes,3,opt,name=optional_relation,json=optionalRelation,proto3" json:"optional_relation,omitempty"` // contains filtered or unexported fields }
SubjectFilter specifies a filter on the subject of a relationship.
subject_type is required and all other fields are optional, and will not impose any additional requirements if left unspecified.
func (*SubjectFilter) Descriptor
deprecated
func (*SubjectFilter) Descriptor() ([]byte, []int)
Deprecated: Use SubjectFilter.ProtoReflect.Descriptor instead.
func (*SubjectFilter) GetOptionalRelation ¶
func (x *SubjectFilter) GetOptionalRelation() *SubjectFilter_RelationFilter
func (*SubjectFilter) GetOptionalSubjectId ¶
func (x *SubjectFilter) GetOptionalSubjectId() string
func (*SubjectFilter) GetSubjectType ¶
func (x *SubjectFilter) GetSubjectType() string
func (*SubjectFilter) HandwrittenValidate ¶ added in v0.4.0
func (m *SubjectFilter) HandwrittenValidate() error
func (*SubjectFilter) ProtoMessage ¶
func (*SubjectFilter) ProtoMessage()
func (*SubjectFilter) ProtoReflect ¶
func (x *SubjectFilter) ProtoReflect() protoreflect.Message
func (*SubjectFilter) Reset ¶
func (x *SubjectFilter) Reset()
func (*SubjectFilter) String ¶
func (x *SubjectFilter) String() string
func (*SubjectFilter) Validate ¶
func (m *SubjectFilter) Validate() error
Validate checks the field values on SubjectFilter with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*SubjectFilter) ValidateAll ¶ added in v0.6.0
func (m *SubjectFilter) ValidateAll() error
ValidateAll checks the field values on SubjectFilter with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SubjectFilterMultiError, or nil if none found.
type SubjectFilterMultiError ¶ added in v0.6.0
type SubjectFilterMultiError []error
SubjectFilterMultiError is an error wrapping multiple validation errors returned by SubjectFilter.ValidateAll() if the designated constraints aren't met.
func (SubjectFilterMultiError) AllErrors ¶ added in v0.6.0
func (m SubjectFilterMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SubjectFilterMultiError) Error ¶ added in v0.6.0
func (m SubjectFilterMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SubjectFilterValidationError ¶
type SubjectFilterValidationError struct {
// contains filtered or unexported fields
}
SubjectFilterValidationError is the validation error returned by SubjectFilter.Validate if the designated constraints aren't met.
func (SubjectFilterValidationError) Cause ¶
func (e SubjectFilterValidationError) Cause() error
Cause function returns cause value.
func (SubjectFilterValidationError) Error ¶
func (e SubjectFilterValidationError) Error() string
Error satisfies the builtin error interface
func (SubjectFilterValidationError) ErrorName ¶
func (e SubjectFilterValidationError) ErrorName() string
ErrorName returns error name.
func (SubjectFilterValidationError) Field ¶
func (e SubjectFilterValidationError) Field() string
Field function returns field value.
func (SubjectFilterValidationError) Key ¶
func (e SubjectFilterValidationError) Key() bool
Key function returns key value.
func (SubjectFilterValidationError) Reason ¶
func (e SubjectFilterValidationError) Reason() string
Reason function returns reason value.
type SubjectFilter_RelationFilter ¶
type SubjectFilter_RelationFilter struct { Relation string `protobuf:"bytes,1,opt,name=relation,proto3" json:"relation,omitempty"` // contains filtered or unexported fields }
func (*SubjectFilter_RelationFilter) Descriptor
deprecated
func (*SubjectFilter_RelationFilter) Descriptor() ([]byte, []int)
Deprecated: Use SubjectFilter_RelationFilter.ProtoReflect.Descriptor instead.
func (*SubjectFilter_RelationFilter) GetRelation ¶
func (x *SubjectFilter_RelationFilter) GetRelation() string
func (*SubjectFilter_RelationFilter) ProtoMessage ¶
func (*SubjectFilter_RelationFilter) ProtoMessage()
func (*SubjectFilter_RelationFilter) ProtoReflect ¶
func (x *SubjectFilter_RelationFilter) ProtoReflect() protoreflect.Message
func (*SubjectFilter_RelationFilter) Reset ¶
func (x *SubjectFilter_RelationFilter) Reset()
func (*SubjectFilter_RelationFilter) String ¶
func (x *SubjectFilter_RelationFilter) String() string
func (*SubjectFilter_RelationFilter) Validate ¶
func (m *SubjectFilter_RelationFilter) Validate() error
Validate checks the field values on SubjectFilter_RelationFilter with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*SubjectFilter_RelationFilter) ValidateAll ¶ added in v0.6.0
func (m *SubjectFilter_RelationFilter) ValidateAll() error
ValidateAll checks the field values on SubjectFilter_RelationFilter with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SubjectFilter_RelationFilterMultiError, or nil if none found.
type SubjectFilter_RelationFilterMultiError ¶ added in v0.6.0
type SubjectFilter_RelationFilterMultiError []error
SubjectFilter_RelationFilterMultiError is an error wrapping multiple validation errors returned by SubjectFilter_RelationFilter.ValidateAll() if the designated constraints aren't met.
func (SubjectFilter_RelationFilterMultiError) AllErrors ¶ added in v0.6.0
func (m SubjectFilter_RelationFilterMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SubjectFilter_RelationFilterMultiError) Error ¶ added in v0.6.0
func (m SubjectFilter_RelationFilterMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SubjectFilter_RelationFilterValidationError ¶
type SubjectFilter_RelationFilterValidationError struct {
// contains filtered or unexported fields
}
SubjectFilter_RelationFilterValidationError is the validation error returned by SubjectFilter_RelationFilter.Validate if the designated constraints aren't met.
func (SubjectFilter_RelationFilterValidationError) Cause ¶
func (e SubjectFilter_RelationFilterValidationError) Cause() error
Cause function returns cause value.
func (SubjectFilter_RelationFilterValidationError) Error ¶
func (e SubjectFilter_RelationFilterValidationError) Error() string
Error satisfies the builtin error interface
func (SubjectFilter_RelationFilterValidationError) ErrorName ¶
func (e SubjectFilter_RelationFilterValidationError) ErrorName() string
ErrorName returns error name.
func (SubjectFilter_RelationFilterValidationError) Field ¶
func (e SubjectFilter_RelationFilterValidationError) Field() string
Field function returns field value.
func (SubjectFilter_RelationFilterValidationError) Key ¶
func (e SubjectFilter_RelationFilterValidationError) Key() bool
Key function returns key value.
func (SubjectFilter_RelationFilterValidationError) Reason ¶
func (e SubjectFilter_RelationFilterValidationError) Reason() string
Reason function returns reason value.
type SubjectReference ¶
type SubjectReference struct { Object *ObjectReference `protobuf:"bytes,1,opt,name=object,proto3" json:"object,omitempty"` OptionalRelation string `protobuf:"bytes,2,opt,name=optional_relation,json=optionalRelation,proto3" json:"optional_relation,omitempty"` // contains filtered or unexported fields }
SubjectReference is used for referring to the subject portion of a Relationship. The relation component is optional and is used for defining a sub-relation on the subject, e.g. group:123#members
func (*SubjectReference) Descriptor
deprecated
func (*SubjectReference) Descriptor() ([]byte, []int)
Deprecated: Use SubjectReference.ProtoReflect.Descriptor instead.
func (*SubjectReference) GetObject ¶
func (x *SubjectReference) GetObject() *ObjectReference
func (*SubjectReference) GetOptionalRelation ¶
func (x *SubjectReference) GetOptionalRelation() string
func (*SubjectReference) HandwrittenValidate ¶ added in v0.4.0
func (m *SubjectReference) HandwrittenValidate() error
func (*SubjectReference) ProtoMessage ¶
func (*SubjectReference) ProtoMessage()
func (*SubjectReference) ProtoReflect ¶
func (x *SubjectReference) ProtoReflect() protoreflect.Message
func (*SubjectReference) Reset ¶
func (x *SubjectReference) Reset()
func (*SubjectReference) String ¶
func (x *SubjectReference) String() string
func (*SubjectReference) Validate ¶
func (m *SubjectReference) Validate() error
Validate checks the field values on SubjectReference with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*SubjectReference) ValidateAll ¶ added in v0.6.0
func (m *SubjectReference) ValidateAll() error
ValidateAll checks the field values on SubjectReference with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SubjectReferenceMultiError, or nil if none found.
type SubjectReferenceMultiError ¶ added in v0.6.0
type SubjectReferenceMultiError []error
SubjectReferenceMultiError is an error wrapping multiple validation errors returned by SubjectReference.ValidateAll() if the designated constraints aren't met.
func (SubjectReferenceMultiError) AllErrors ¶ added in v0.6.0
func (m SubjectReferenceMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SubjectReferenceMultiError) Error ¶ added in v0.6.0
func (m SubjectReferenceMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SubjectReferenceValidationError ¶
type SubjectReferenceValidationError struct {
// contains filtered or unexported fields
}
SubjectReferenceValidationError is the validation error returned by SubjectReference.Validate if the designated constraints aren't met.
func (SubjectReferenceValidationError) Cause ¶
func (e SubjectReferenceValidationError) Cause() error
Cause function returns cause value.
func (SubjectReferenceValidationError) Error ¶
func (e SubjectReferenceValidationError) Error() string
Error satisfies the builtin error interface
func (SubjectReferenceValidationError) ErrorName ¶
func (e SubjectReferenceValidationError) ErrorName() string
ErrorName returns error name.
func (SubjectReferenceValidationError) Field ¶
func (e SubjectReferenceValidationError) Field() string
Field function returns field value.
func (SubjectReferenceValidationError) Key ¶
func (e SubjectReferenceValidationError) Key() bool
Key function returns key value.
func (SubjectReferenceValidationError) Reason ¶
func (e SubjectReferenceValidationError) Reason() string
Reason function returns reason value.
type UnimplementedPermissionsServiceServer ¶
type UnimplementedPermissionsServiceServer struct { }
UnimplementedPermissionsServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedPermissionsServiceServer) CheckPermission ¶
func (UnimplementedPermissionsServiceServer) CheckPermission(context.Context, *CheckPermissionRequest) (*CheckPermissionResponse, error)
func (UnimplementedPermissionsServiceServer) DeleteRelationships ¶
func (UnimplementedPermissionsServiceServer) DeleteRelationships(context.Context, *DeleteRelationshipsRequest) (*DeleteRelationshipsResponse, error)
func (UnimplementedPermissionsServiceServer) ExpandPermissionTree ¶
func (UnimplementedPermissionsServiceServer) ExpandPermissionTree(context.Context, *ExpandPermissionTreeRequest) (*ExpandPermissionTreeResponse, error)
func (UnimplementedPermissionsServiceServer) LookupResources ¶
func (UnimplementedPermissionsServiceServer) LookupResources(*LookupResourcesRequest, PermissionsService_LookupResourcesServer) error
func (UnimplementedPermissionsServiceServer) ReadRelationships ¶
func (UnimplementedPermissionsServiceServer) ReadRelationships(*ReadRelationshipsRequest, PermissionsService_ReadRelationshipsServer) error
func (UnimplementedPermissionsServiceServer) WriteRelationships ¶
func (UnimplementedPermissionsServiceServer) WriteRelationships(context.Context, *WriteRelationshipsRequest) (*WriteRelationshipsResponse, error)
type UnimplementedSchemaServiceServer ¶
type UnimplementedSchemaServiceServer struct { }
UnimplementedSchemaServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedSchemaServiceServer) ReadSchema ¶
func (UnimplementedSchemaServiceServer) ReadSchema(context.Context, *ReadSchemaRequest) (*ReadSchemaResponse, error)
func (UnimplementedSchemaServiceServer) WriteSchema ¶
func (UnimplementedSchemaServiceServer) WriteSchema(context.Context, *WriteSchemaRequest) (*WriteSchemaResponse, 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 UnsafePermissionsServiceServer ¶
type UnsafePermissionsServiceServer interface {
// contains filtered or unexported methods
}
UnsafePermissionsServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PermissionsServiceServer will result in compilation errors.
type UnsafeSchemaServiceServer ¶
type UnsafeSchemaServiceServer interface {
// contains filtered or unexported methods
}
UnsafeSchemaServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SchemaServiceServer 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 WatchRequest ¶
type WatchRequest struct { OptionalObjectTypes []string `protobuf:"bytes,1,rep,name=optional_object_types,json=optionalObjectTypes,proto3" json:"optional_object_types,omitempty"` OptionalStartCursor *ZedToken `protobuf:"bytes,2,opt,name=optional_start_cursor,json=optionalStartCursor,proto3" json:"optional_start_cursor,omitempty"` // contains filtered or unexported fields }
WatchRequest specifies the object definitions for which we want to start watching mutations, and an optional start snapshot for when to start watching.
func (*WatchRequest) Descriptor
deprecated
func (*WatchRequest) Descriptor() ([]byte, []int)
Deprecated: Use WatchRequest.ProtoReflect.Descriptor instead.
func (*WatchRequest) GetOptionalObjectTypes ¶ added in v0.4.0
func (x *WatchRequest) GetOptionalObjectTypes() []string
func (*WatchRequest) GetOptionalStartCursor ¶
func (x *WatchRequest) GetOptionalStartCursor() *ZedToken
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
func (*WatchRequest) Validate ¶
func (m *WatchRequest) Validate() error
Validate checks the field values on WatchRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*WatchRequest) ValidateAll ¶ added in v0.6.0
func (m *WatchRequest) ValidateAll() error
ValidateAll checks the field values on WatchRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in WatchRequestMultiError, or nil if none found.
type WatchRequestMultiError ¶ added in v0.6.0
type WatchRequestMultiError []error
WatchRequestMultiError is an error wrapping multiple validation errors returned by WatchRequest.ValidateAll() if the designated constraints aren't met.
func (WatchRequestMultiError) AllErrors ¶ added in v0.6.0
func (m WatchRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (WatchRequestMultiError) Error ¶ added in v0.6.0
func (m WatchRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type WatchRequestValidationError ¶
type WatchRequestValidationError struct {
// contains filtered or unexported fields
}
WatchRequestValidationError is the validation error returned by WatchRequest.Validate if the designated constraints aren't met.
func (WatchRequestValidationError) Cause ¶
func (e WatchRequestValidationError) Cause() error
Cause function returns cause value.
func (WatchRequestValidationError) Error ¶
func (e WatchRequestValidationError) Error() string
Error satisfies the builtin error interface
func (WatchRequestValidationError) ErrorName ¶
func (e WatchRequestValidationError) ErrorName() string
ErrorName returns error name.
func (WatchRequestValidationError) Field ¶
func (e WatchRequestValidationError) Field() string
Field function returns field value.
func (WatchRequestValidationError) Key ¶
func (e WatchRequestValidationError) Key() bool
Key function returns key value.
func (WatchRequestValidationError) Reason ¶
func (e WatchRequestValidationError) Reason() string
Reason function returns reason value.
type WatchResponse ¶
type WatchResponse struct { Updates []*RelationshipUpdate `protobuf:"bytes,1,rep,name=updates,proto3" json:"updates,omitempty"` ChangesThrough *ZedToken `protobuf:"bytes,2,opt,name=changes_through,json=changesThrough,proto3" json:"changes_through,omitempty"` // contains filtered or unexported fields }
WatchResponse contains all tuple modification events in ascending timestamp order, from the requested start snapshot to a snapshot encoded in the watch response. The client can use the snapshot to resume watching where the previous watch response left off.
func (*WatchResponse) Descriptor
deprecated
func (*WatchResponse) Descriptor() ([]byte, []int)
Deprecated: Use WatchResponse.ProtoReflect.Descriptor instead.
func (*WatchResponse) GetChangesThrough ¶
func (x *WatchResponse) GetChangesThrough() *ZedToken
func (*WatchResponse) GetUpdates ¶
func (x *WatchResponse) GetUpdates() []*RelationshipUpdate
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
func (*WatchResponse) Validate ¶
func (m *WatchResponse) Validate() error
Validate checks the field values on WatchResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*WatchResponse) ValidateAll ¶ added in v0.6.0
func (m *WatchResponse) ValidateAll() error
ValidateAll checks the field values on WatchResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in WatchResponseMultiError, or nil if none found.
type WatchResponseMultiError ¶ added in v0.6.0
type WatchResponseMultiError []error
WatchResponseMultiError is an error wrapping multiple validation errors returned by WatchResponse.ValidateAll() if the designated constraints aren't met.
func (WatchResponseMultiError) AllErrors ¶ added in v0.6.0
func (m WatchResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (WatchResponseMultiError) Error ¶ added in v0.6.0
func (m WatchResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type WatchResponseValidationError ¶
type WatchResponseValidationError struct {
// contains filtered or unexported fields
}
WatchResponseValidationError is the validation error returned by WatchResponse.Validate if the designated constraints aren't met.
func (WatchResponseValidationError) Cause ¶
func (e WatchResponseValidationError) Cause() error
Cause function returns cause value.
func (WatchResponseValidationError) Error ¶
func (e WatchResponseValidationError) Error() string
Error satisfies the builtin error interface
func (WatchResponseValidationError) ErrorName ¶
func (e WatchResponseValidationError) ErrorName() string
ErrorName returns error name.
func (WatchResponseValidationError) Field ¶
func (e WatchResponseValidationError) Field() string
Field function returns field value.
func (WatchResponseValidationError) Key ¶
func (e WatchResponseValidationError) Key() bool
Key function returns key value.
func (WatchResponseValidationError) Reason ¶
func (e WatchResponseValidationError) Reason() string
Reason function returns reason value.
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 WriteRelationshipsRequest ¶
type WriteRelationshipsRequest struct { Updates []*RelationshipUpdate `protobuf:"bytes,1,rep,name=updates,proto3" json:"updates,omitempty"` OptionalPreconditions []*Precondition `protobuf:"bytes,2,rep,name=optional_preconditions,json=optionalPreconditions,proto3" json:"optional_preconditions,omitempty"` // To be bounded by configuration // contains filtered or unexported fields }
WriteRelationshipsRequest contains a list of Relationship mutations that should be applied to the service. If the optional_preconditions parameter is included, all of the specified preconditions must also be satisfied before the write will be committed.
func (*WriteRelationshipsRequest) Descriptor
deprecated
func (*WriteRelationshipsRequest) Descriptor() ([]byte, []int)
Deprecated: Use WriteRelationshipsRequest.ProtoReflect.Descriptor instead.
func (*WriteRelationshipsRequest) GetOptionalPreconditions ¶
func (x *WriteRelationshipsRequest) GetOptionalPreconditions() []*Precondition
func (*WriteRelationshipsRequest) GetUpdates ¶
func (x *WriteRelationshipsRequest) GetUpdates() []*RelationshipUpdate
func (*WriteRelationshipsRequest) HandwrittenValidate ¶ added in v0.4.0
func (m *WriteRelationshipsRequest) HandwrittenValidate() error
func (*WriteRelationshipsRequest) ProtoMessage ¶
func (*WriteRelationshipsRequest) ProtoMessage()
func (*WriteRelationshipsRequest) ProtoReflect ¶
func (x *WriteRelationshipsRequest) ProtoReflect() protoreflect.Message
func (*WriteRelationshipsRequest) Reset ¶
func (x *WriteRelationshipsRequest) Reset()
func (*WriteRelationshipsRequest) String ¶
func (x *WriteRelationshipsRequest) String() string
func (*WriteRelationshipsRequest) Validate ¶
func (m *WriteRelationshipsRequest) Validate() error
Validate checks the field values on WriteRelationshipsRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*WriteRelationshipsRequest) ValidateAll ¶ added in v0.6.0
func (m *WriteRelationshipsRequest) ValidateAll() error
ValidateAll checks the field values on WriteRelationshipsRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in WriteRelationshipsRequestMultiError, or nil if none found.
type WriteRelationshipsRequestMultiError ¶ added in v0.6.0
type WriteRelationshipsRequestMultiError []error
WriteRelationshipsRequestMultiError is an error wrapping multiple validation errors returned by WriteRelationshipsRequest.ValidateAll() if the designated constraints aren't met.
func (WriteRelationshipsRequestMultiError) AllErrors ¶ added in v0.6.0
func (m WriteRelationshipsRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (WriteRelationshipsRequestMultiError) Error ¶ added in v0.6.0
func (m WriteRelationshipsRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type WriteRelationshipsRequestValidationError ¶
type WriteRelationshipsRequestValidationError struct {
// contains filtered or unexported fields
}
WriteRelationshipsRequestValidationError is the validation error returned by WriteRelationshipsRequest.Validate if the designated constraints aren't met.
func (WriteRelationshipsRequestValidationError) Cause ¶
func (e WriteRelationshipsRequestValidationError) Cause() error
Cause function returns cause value.
func (WriteRelationshipsRequestValidationError) Error ¶
func (e WriteRelationshipsRequestValidationError) Error() string
Error satisfies the builtin error interface
func (WriteRelationshipsRequestValidationError) ErrorName ¶
func (e WriteRelationshipsRequestValidationError) ErrorName() string
ErrorName returns error name.
func (WriteRelationshipsRequestValidationError) Field ¶
func (e WriteRelationshipsRequestValidationError) Field() string
Field function returns field value.
func (WriteRelationshipsRequestValidationError) Key ¶
func (e WriteRelationshipsRequestValidationError) Key() bool
Key function returns key value.
func (WriteRelationshipsRequestValidationError) Reason ¶
func (e WriteRelationshipsRequestValidationError) Reason() string
Reason function returns reason value.
type WriteRelationshipsResponse ¶
type WriteRelationshipsResponse struct { WrittenAt *ZedToken `protobuf:"bytes,1,opt,name=written_at,json=writtenAt,proto3" json:"written_at,omitempty"` // contains filtered or unexported fields }
func (*WriteRelationshipsResponse) Descriptor
deprecated
func (*WriteRelationshipsResponse) Descriptor() ([]byte, []int)
Deprecated: Use WriteRelationshipsResponse.ProtoReflect.Descriptor instead.
func (*WriteRelationshipsResponse) GetWrittenAt ¶
func (x *WriteRelationshipsResponse) GetWrittenAt() *ZedToken
func (*WriteRelationshipsResponse) ProtoMessage ¶
func (*WriteRelationshipsResponse) ProtoMessage()
func (*WriteRelationshipsResponse) ProtoReflect ¶
func (x *WriteRelationshipsResponse) ProtoReflect() protoreflect.Message
func (*WriteRelationshipsResponse) Reset ¶
func (x *WriteRelationshipsResponse) Reset()
func (*WriteRelationshipsResponse) String ¶
func (x *WriteRelationshipsResponse) String() string
func (*WriteRelationshipsResponse) Validate ¶
func (m *WriteRelationshipsResponse) Validate() error
Validate checks the field values on WriteRelationshipsResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*WriteRelationshipsResponse) ValidateAll ¶ added in v0.6.0
func (m *WriteRelationshipsResponse) ValidateAll() error
ValidateAll checks the field values on WriteRelationshipsResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in WriteRelationshipsResponseMultiError, or nil if none found.
type WriteRelationshipsResponseMultiError ¶ added in v0.6.0
type WriteRelationshipsResponseMultiError []error
WriteRelationshipsResponseMultiError is an error wrapping multiple validation errors returned by WriteRelationshipsResponse.ValidateAll() if the designated constraints aren't met.
func (WriteRelationshipsResponseMultiError) AllErrors ¶ added in v0.6.0
func (m WriteRelationshipsResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (WriteRelationshipsResponseMultiError) Error ¶ added in v0.6.0
func (m WriteRelationshipsResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type WriteRelationshipsResponseValidationError ¶
type WriteRelationshipsResponseValidationError struct {
// contains filtered or unexported fields
}
WriteRelationshipsResponseValidationError is the validation error returned by WriteRelationshipsResponse.Validate if the designated constraints aren't met.
func (WriteRelationshipsResponseValidationError) Cause ¶
func (e WriteRelationshipsResponseValidationError) Cause() error
Cause function returns cause value.
func (WriteRelationshipsResponseValidationError) Error ¶
func (e WriteRelationshipsResponseValidationError) Error() string
Error satisfies the builtin error interface
func (WriteRelationshipsResponseValidationError) ErrorName ¶
func (e WriteRelationshipsResponseValidationError) ErrorName() string
ErrorName returns error name.
func (WriteRelationshipsResponseValidationError) Field ¶
func (e WriteRelationshipsResponseValidationError) Field() string
Field function returns field value.
func (WriteRelationshipsResponseValidationError) Key ¶
func (e WriteRelationshipsResponseValidationError) Key() bool
Key function returns key value.
func (WriteRelationshipsResponseValidationError) Reason ¶
func (e WriteRelationshipsResponseValidationError) Reason() string
Reason function returns reason value.
type WriteSchemaRequest ¶
type WriteSchemaRequest struct { // The Schema containing one or more Object Definitions that will be written // to the Permissions System. Schema string `protobuf:"bytes,1,opt,name=schema,proto3" json:"schema,omitempty"` // 256KiB // contains filtered or unexported fields }
WriteSchemaRequest is the required data used to "upsert" the Schema of a Permissions System.
func (*WriteSchemaRequest) Descriptor
deprecated
func (*WriteSchemaRequest) Descriptor() ([]byte, []int)
Deprecated: Use WriteSchemaRequest.ProtoReflect.Descriptor instead.
func (*WriteSchemaRequest) GetSchema ¶
func (x *WriteSchemaRequest) GetSchema() string
func (*WriteSchemaRequest) ProtoMessage ¶
func (*WriteSchemaRequest) ProtoMessage()
func (*WriteSchemaRequest) ProtoReflect ¶
func (x *WriteSchemaRequest) ProtoReflect() protoreflect.Message
func (*WriteSchemaRequest) Reset ¶
func (x *WriteSchemaRequest) Reset()
func (*WriteSchemaRequest) String ¶
func (x *WriteSchemaRequest) String() string
func (*WriteSchemaRequest) Validate ¶
func (m *WriteSchemaRequest) Validate() error
Validate checks the field values on WriteSchemaRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*WriteSchemaRequest) ValidateAll ¶ added in v0.6.0
func (m *WriteSchemaRequest) ValidateAll() error
ValidateAll checks the field values on WriteSchemaRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in WriteSchemaRequestMultiError, or nil if none found.
type WriteSchemaRequestMultiError ¶ added in v0.6.0
type WriteSchemaRequestMultiError []error
WriteSchemaRequestMultiError is an error wrapping multiple validation errors returned by WriteSchemaRequest.ValidateAll() if the designated constraints aren't met.
func (WriteSchemaRequestMultiError) AllErrors ¶ added in v0.6.0
func (m WriteSchemaRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (WriteSchemaRequestMultiError) Error ¶ added in v0.6.0
func (m WriteSchemaRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type WriteSchemaRequestValidationError ¶
type WriteSchemaRequestValidationError struct {
// contains filtered or unexported fields
}
WriteSchemaRequestValidationError is the validation error returned by WriteSchemaRequest.Validate if the designated constraints aren't met.
func (WriteSchemaRequestValidationError) Cause ¶
func (e WriteSchemaRequestValidationError) Cause() error
Cause function returns cause value.
func (WriteSchemaRequestValidationError) Error ¶
func (e WriteSchemaRequestValidationError) Error() string
Error satisfies the builtin error interface
func (WriteSchemaRequestValidationError) ErrorName ¶
func (e WriteSchemaRequestValidationError) ErrorName() string
ErrorName returns error name.
func (WriteSchemaRequestValidationError) Field ¶
func (e WriteSchemaRequestValidationError) Field() string
Field function returns field value.
func (WriteSchemaRequestValidationError) Key ¶
func (e WriteSchemaRequestValidationError) Key() bool
Key function returns key value.
func (WriteSchemaRequestValidationError) Reason ¶
func (e WriteSchemaRequestValidationError) Reason() string
Reason function returns reason value.
type WriteSchemaResponse ¶
type WriteSchemaResponse struct {
// contains filtered or unexported fields
}
WriteSchemaResponse is the resulting data after having written a Schema to a Permissions System.
func (*WriteSchemaResponse) Descriptor
deprecated
func (*WriteSchemaResponse) Descriptor() ([]byte, []int)
Deprecated: Use WriteSchemaResponse.ProtoReflect.Descriptor instead.
func (*WriteSchemaResponse) ProtoMessage ¶
func (*WriteSchemaResponse) ProtoMessage()
func (*WriteSchemaResponse) ProtoReflect ¶
func (x *WriteSchemaResponse) ProtoReflect() protoreflect.Message
func (*WriteSchemaResponse) Reset ¶
func (x *WriteSchemaResponse) Reset()
func (*WriteSchemaResponse) String ¶
func (x *WriteSchemaResponse) String() string
func (*WriteSchemaResponse) Validate ¶
func (m *WriteSchemaResponse) Validate() error
Validate checks the field values on WriteSchemaResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*WriteSchemaResponse) ValidateAll ¶ added in v0.6.0
func (m *WriteSchemaResponse) ValidateAll() error
ValidateAll checks the field values on WriteSchemaResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in WriteSchemaResponseMultiError, or nil if none found.
type WriteSchemaResponseMultiError ¶ added in v0.6.0
type WriteSchemaResponseMultiError []error
WriteSchemaResponseMultiError is an error wrapping multiple validation errors returned by WriteSchemaResponse.ValidateAll() if the designated constraints aren't met.
func (WriteSchemaResponseMultiError) AllErrors ¶ added in v0.6.0
func (m WriteSchemaResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (WriteSchemaResponseMultiError) Error ¶ added in v0.6.0
func (m WriteSchemaResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type WriteSchemaResponseValidationError ¶
type WriteSchemaResponseValidationError struct {
// contains filtered or unexported fields
}
WriteSchemaResponseValidationError is the validation error returned by WriteSchemaResponse.Validate if the designated constraints aren't met.
func (WriteSchemaResponseValidationError) Cause ¶
func (e WriteSchemaResponseValidationError) Cause() error
Cause function returns cause value.
func (WriteSchemaResponseValidationError) Error ¶
func (e WriteSchemaResponseValidationError) Error() string
Error satisfies the builtin error interface
func (WriteSchemaResponseValidationError) ErrorName ¶
func (e WriteSchemaResponseValidationError) ErrorName() string
ErrorName returns error name.
func (WriteSchemaResponseValidationError) Field ¶
func (e WriteSchemaResponseValidationError) Field() string
Field function returns field value.
func (WriteSchemaResponseValidationError) Key ¶
func (e WriteSchemaResponseValidationError) Key() bool
Key function returns key value.
func (WriteSchemaResponseValidationError) Reason ¶
func (e WriteSchemaResponseValidationError) Reason() string
Reason function returns reason value.
type ZedToken ¶
type ZedToken struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
ZedToken is used to provide causality metadata between Write and Check requests.
See the authzed.api.v1.Consistency message for more information.
func (*ZedToken) Descriptor
deprecated
func (*ZedToken) ProtoMessage ¶
func (*ZedToken) ProtoMessage()
func (*ZedToken) ProtoReflect ¶
func (x *ZedToken) ProtoReflect() protoreflect.Message
func (*ZedToken) Validate ¶
Validate checks the field values on ZedToken with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ZedToken) ValidateAll ¶ added in v0.6.0
ValidateAll checks the field values on ZedToken with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ZedTokenMultiError, or nil if none found.
type ZedTokenMultiError ¶ added in v0.6.0
type ZedTokenMultiError []error
ZedTokenMultiError is an error wrapping multiple validation errors returned by ZedToken.ValidateAll() if the designated constraints aren't met.
func (ZedTokenMultiError) AllErrors ¶ added in v0.6.0
func (m ZedTokenMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ZedTokenMultiError) Error ¶ added in v0.6.0
func (m ZedTokenMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ZedTokenValidationError ¶
type ZedTokenValidationError struct {
// contains filtered or unexported fields
}
ZedTokenValidationError is the validation error returned by ZedToken.Validate if the designated constraints aren't met.
func (ZedTokenValidationError) Cause ¶
func (e ZedTokenValidationError) Cause() error
Cause function returns cause value.
func (ZedTokenValidationError) Error ¶
func (e ZedTokenValidationError) Error() string
Error satisfies the builtin error interface
func (ZedTokenValidationError) ErrorName ¶
func (e ZedTokenValidationError) ErrorName() string
ErrorName returns error name.
func (ZedTokenValidationError) Field ¶
func (e ZedTokenValidationError) Field() string
Field function returns field value.
func (ZedTokenValidationError) Key ¶
func (e ZedTokenValidationError) Key() bool
Key function returns key value.
func (ZedTokenValidationError) Reason ¶
func (e ZedTokenValidationError) Reason() string
Reason function returns reason value.
Source Files ¶
- 00_handwritten_validation.go
- core.pb.go
- core.pb.validate.go
- openapi.pb.go
- openapi.pb.validate.go
- permission_service.pb.go
- permission_service.pb.gw.go
- permission_service.pb.validate.go
- permission_service_grpc.pb.go
- schema_service.pb.go
- schema_service.pb.gw.go
- schema_service.pb.validate.go
- schema_service_grpc.pb.go
- watch_service.pb.go
- watch_service.pb.gw.go
- watch_service.pb.validate.go
- watch_service_grpc.pb.go