Documentation ¶
Index ¶
- Variables
- func RegisterDeveloperServiceServer(s grpc.ServiceRegistrar, srv DeveloperServiceServer)
- type DeveloperError
- func (*DeveloperError) Descriptor() ([]byte, []int)deprecated
- func (x *DeveloperError) GetColumn() uint32
- func (x *DeveloperError) GetContext() string
- func (x *DeveloperError) GetKind() DeveloperError_ErrorKind
- func (x *DeveloperError) GetLine() uint32
- func (x *DeveloperError) GetMessage() string
- func (x *DeveloperError) GetPath() []string
- func (x *DeveloperError) GetSource() DeveloperError_Source
- func (*DeveloperError) ProtoMessage()
- func (x *DeveloperError) ProtoReflect() protoreflect.Message
- func (x *DeveloperError) Reset()
- func (x *DeveloperError) String() string
- func (m *DeveloperError) Validate() error
- func (m *DeveloperError) ValidateAll() error
- type DeveloperErrorMultiError
- type DeveloperErrorValidationError
- func (e DeveloperErrorValidationError) Cause() error
- func (e DeveloperErrorValidationError) Error() string
- func (e DeveloperErrorValidationError) ErrorName() string
- func (e DeveloperErrorValidationError) Field() string
- func (e DeveloperErrorValidationError) Key() bool
- func (e DeveloperErrorValidationError) Reason() string
- type DeveloperError_ErrorKind
- func (DeveloperError_ErrorKind) Descriptor() protoreflect.EnumDescriptor
- func (x DeveloperError_ErrorKind) Enum() *DeveloperError_ErrorKind
- func (DeveloperError_ErrorKind) EnumDescriptor() ([]byte, []int)deprecated
- func (x DeveloperError_ErrorKind) Number() protoreflect.EnumNumber
- func (x DeveloperError_ErrorKind) String() string
- func (DeveloperError_ErrorKind) Type() protoreflect.EnumType
- type DeveloperError_Source
- func (DeveloperError_Source) Descriptor() protoreflect.EnumDescriptor
- func (x DeveloperError_Source) Enum() *DeveloperError_Source
- func (DeveloperError_Source) EnumDescriptor() ([]byte, []int)deprecated
- func (x DeveloperError_Source) Number() protoreflect.EnumNumber
- func (x DeveloperError_Source) String() string
- func (DeveloperError_Source) Type() protoreflect.EnumType
- type DeveloperServiceClient
- type DeveloperServiceServer
- type EditCheckRequest
- func (*EditCheckRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EditCheckRequest) GetCheckRelationships() []*RelationTuple
- func (x *EditCheckRequest) GetContext() *RequestContext
- func (*EditCheckRequest) ProtoMessage()
- func (x *EditCheckRequest) ProtoReflect() protoreflect.Message
- func (x *EditCheckRequest) Reset()
- func (x *EditCheckRequest) String() string
- func (m *EditCheckRequest) Validate() error
- func (m *EditCheckRequest) ValidateAll() error
- type EditCheckRequestMultiError
- type EditCheckRequestValidationError
- func (e EditCheckRequestValidationError) Cause() error
- func (e EditCheckRequestValidationError) Error() string
- func (e EditCheckRequestValidationError) ErrorName() string
- func (e EditCheckRequestValidationError) Field() string
- func (e EditCheckRequestValidationError) Key() bool
- func (e EditCheckRequestValidationError) Reason() string
- type EditCheckResponse
- func (*EditCheckResponse) Descriptor() ([]byte, []int)deprecated
- func (x *EditCheckResponse) GetCheckResults() []*EditCheckResult
- func (x *EditCheckResponse) GetRequestErrors() []*DeveloperError
- func (*EditCheckResponse) ProtoMessage()
- func (x *EditCheckResponse) ProtoReflect() protoreflect.Message
- func (x *EditCheckResponse) Reset()
- func (x *EditCheckResponse) String() string
- func (m *EditCheckResponse) Validate() error
- func (m *EditCheckResponse) ValidateAll() error
- type EditCheckResponseMultiError
- type EditCheckResponseValidationError
- func (e EditCheckResponseValidationError) Cause() error
- func (e EditCheckResponseValidationError) Error() string
- func (e EditCheckResponseValidationError) ErrorName() string
- func (e EditCheckResponseValidationError) Field() string
- func (e EditCheckResponseValidationError) Key() bool
- func (e EditCheckResponseValidationError) Reason() string
- type EditCheckResult
- func (*EditCheckResult) Descriptor() ([]byte, []int)deprecated
- func (x *EditCheckResult) GetError() *DeveloperError
- func (x *EditCheckResult) GetIsMember() bool
- func (x *EditCheckResult) GetRelationship() *RelationTuple
- func (*EditCheckResult) ProtoMessage()
- func (x *EditCheckResult) ProtoReflect() protoreflect.Message
- func (x *EditCheckResult) Reset()
- func (x *EditCheckResult) String() string
- func (m *EditCheckResult) Validate() error
- func (m *EditCheckResult) ValidateAll() error
- type EditCheckResultMultiError
- type EditCheckResultValidationError
- func (e EditCheckResultValidationError) Cause() error
- func (e EditCheckResultValidationError) Error() string
- func (e EditCheckResultValidationError) ErrorName() string
- func (e EditCheckResultValidationError) Field() string
- func (e EditCheckResultValidationError) Key() bool
- func (e EditCheckResultValidationError) Reason() string
- type FormatSchemaRequest
- func (*FormatSchemaRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FormatSchemaRequest) GetSchema() string
- func (*FormatSchemaRequest) ProtoMessage()
- func (x *FormatSchemaRequest) ProtoReflect() protoreflect.Message
- func (x *FormatSchemaRequest) Reset()
- func (x *FormatSchemaRequest) String() string
- func (m *FormatSchemaRequest) Validate() error
- func (m *FormatSchemaRequest) ValidateAll() error
- type FormatSchemaRequestMultiError
- type FormatSchemaRequestValidationError
- func (e FormatSchemaRequestValidationError) Cause() error
- func (e FormatSchemaRequestValidationError) Error() string
- func (e FormatSchemaRequestValidationError) ErrorName() string
- func (e FormatSchemaRequestValidationError) Field() string
- func (e FormatSchemaRequestValidationError) Key() bool
- func (e FormatSchemaRequestValidationError) Reason() string
- type FormatSchemaResponse
- func (*FormatSchemaResponse) Descriptor() ([]byte, []int)deprecated
- func (x *FormatSchemaResponse) GetError() *DeveloperError
- func (x *FormatSchemaResponse) GetFormattedSchema() string
- func (*FormatSchemaResponse) ProtoMessage()
- func (x *FormatSchemaResponse) ProtoReflect() protoreflect.Message
- func (x *FormatSchemaResponse) Reset()
- func (x *FormatSchemaResponse) String() string
- func (m *FormatSchemaResponse) Validate() error
- func (m *FormatSchemaResponse) ValidateAll() error
- type FormatSchemaResponseMultiError
- type FormatSchemaResponseValidationError
- func (e FormatSchemaResponseValidationError) Cause() error
- func (e FormatSchemaResponseValidationError) Error() string
- func (e FormatSchemaResponseValidationError) ErrorName() string
- func (e FormatSchemaResponseValidationError) Field() string
- func (e FormatSchemaResponseValidationError) Key() bool
- func (e FormatSchemaResponseValidationError) Reason() string
- type LookupShareRequest
- func (*LookupShareRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LookupShareRequest) GetShareReference() string
- func (*LookupShareRequest) ProtoMessage()
- func (x *LookupShareRequest) ProtoReflect() protoreflect.Message
- func (x *LookupShareRequest) Reset()
- func (x *LookupShareRequest) String() string
- func (m *LookupShareRequest) Validate() error
- func (m *LookupShareRequest) ValidateAll() error
- type LookupShareRequestMultiError
- type LookupShareRequestValidationError
- func (e LookupShareRequestValidationError) Cause() error
- func (e LookupShareRequestValidationError) Error() string
- func (e LookupShareRequestValidationError) ErrorName() string
- func (e LookupShareRequestValidationError) Field() string
- func (e LookupShareRequestValidationError) Key() bool
- func (e LookupShareRequestValidationError) Reason() string
- type LookupShareResponse
- func (*LookupShareResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LookupShareResponse) GetAssertionsYaml() string
- func (x *LookupShareResponse) GetRelationshipsYaml() string
- func (x *LookupShareResponse) GetSchema() string
- func (x *LookupShareResponse) GetStatus() LookupShareResponse_LookupStatus
- func (x *LookupShareResponse) GetValidationYaml() string
- func (*LookupShareResponse) ProtoMessage()
- func (x *LookupShareResponse) ProtoReflect() protoreflect.Message
- func (x *LookupShareResponse) Reset()
- func (x *LookupShareResponse) String() string
- func (m *LookupShareResponse) Validate() error
- func (m *LookupShareResponse) ValidateAll() error
- type LookupShareResponseMultiError
- type LookupShareResponseValidationError
- func (e LookupShareResponseValidationError) Cause() error
- func (e LookupShareResponseValidationError) Error() string
- func (e LookupShareResponseValidationError) ErrorName() string
- func (e LookupShareResponseValidationError) Field() string
- func (e LookupShareResponseValidationError) Key() bool
- func (e LookupShareResponseValidationError) Reason() string
- type LookupShareResponse_LookupStatus
- func (LookupShareResponse_LookupStatus) Descriptor() protoreflect.EnumDescriptor
- func (x LookupShareResponse_LookupStatus) Enum() *LookupShareResponse_LookupStatus
- func (LookupShareResponse_LookupStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x LookupShareResponse_LookupStatus) Number() protoreflect.EnumNumber
- func (x LookupShareResponse_LookupStatus) String() string
- func (LookupShareResponse_LookupStatus) Type() protoreflect.EnumType
- type ObjectAndRelation
- func (*ObjectAndRelation) Descriptor() ([]byte, []int)deprecated
- func (x *ObjectAndRelation) GetNamespace() string
- func (x *ObjectAndRelation) GetObjectId() string
- func (x *ObjectAndRelation) GetRelation() string
- func (*ObjectAndRelation) ProtoMessage()
- func (x *ObjectAndRelation) ProtoReflect() protoreflect.Message
- func (x *ObjectAndRelation) Reset()
- func (x *ObjectAndRelation) String() string
- func (m *ObjectAndRelation) Validate() error
- func (m *ObjectAndRelation) ValidateAll() error
- type ObjectAndRelationMultiError
- type ObjectAndRelationValidationError
- func (e ObjectAndRelationValidationError) Cause() error
- func (e ObjectAndRelationValidationError) Error() string
- func (e ObjectAndRelationValidationError) ErrorName() string
- func (e ObjectAndRelationValidationError) Field() string
- func (e ObjectAndRelationValidationError) Key() bool
- func (e ObjectAndRelationValidationError) Reason() string
- type RelationReference
- func (*RelationReference) Descriptor() ([]byte, []int)deprecated
- func (x *RelationReference) GetNamespace() string
- func (x *RelationReference) GetRelation() string
- func (*RelationReference) ProtoMessage()
- func (x *RelationReference) ProtoReflect() protoreflect.Message
- func (x *RelationReference) Reset()
- func (x *RelationReference) String() string
- func (m *RelationReference) Validate() error
- func (m *RelationReference) ValidateAll() error
- type RelationReferenceMultiError
- type RelationReferenceValidationError
- func (e RelationReferenceValidationError) Cause() error
- func (e RelationReferenceValidationError) Error() string
- func (e RelationReferenceValidationError) ErrorName() string
- func (e RelationReferenceValidationError) Field() string
- func (e RelationReferenceValidationError) Key() bool
- func (e RelationReferenceValidationError) Reason() string
- type RelationTuple
- func (*RelationTuple) Descriptor() ([]byte, []int)deprecated
- func (x *RelationTuple) GetObjectAndRelation() *ObjectAndRelation
- func (x *RelationTuple) GetUser() *User
- func (m *RelationTuple) HandwrittenValidate() error
- func (*RelationTuple) ProtoMessage()
- func (x *RelationTuple) ProtoReflect() protoreflect.Message
- func (x *RelationTuple) Reset()
- func (x *RelationTuple) String() string
- func (m *RelationTuple) Validate() error
- func (m *RelationTuple) ValidateAll() error
- type RelationTupleMultiError
- type RelationTupleValidationError
- func (e RelationTupleValidationError) Cause() error
- func (e RelationTupleValidationError) Error() string
- func (e RelationTupleValidationError) ErrorName() string
- func (e RelationTupleValidationError) Field() string
- func (e RelationTupleValidationError) Key() bool
- func (e RelationTupleValidationError) Reason() string
- type RequestContext
- func (*RequestContext) Descriptor() ([]byte, []int)deprecated
- func (x *RequestContext) GetRelationships() []*RelationTuple
- func (x *RequestContext) GetSchema() string
- func (*RequestContext) ProtoMessage()
- func (x *RequestContext) ProtoReflect() protoreflect.Message
- func (x *RequestContext) Reset()
- func (x *RequestContext) String() string
- func (m *RequestContext) Validate() error
- func (m *RequestContext) ValidateAll() error
- type RequestContextMultiError
- type RequestContextValidationError
- func (e RequestContextValidationError) Cause() error
- func (e RequestContextValidationError) Error() string
- func (e RequestContextValidationError) ErrorName() string
- func (e RequestContextValidationError) Field() string
- func (e RequestContextValidationError) Key() bool
- func (e RequestContextValidationError) Reason() string
- type ShareRequest
- func (*ShareRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ShareRequest) GetAssertionsYaml() string
- func (x *ShareRequest) GetRelationshipsYaml() string
- func (x *ShareRequest) GetSchema() string
- func (x *ShareRequest) GetValidationYaml() string
- func (*ShareRequest) ProtoMessage()
- func (x *ShareRequest) ProtoReflect() protoreflect.Message
- func (x *ShareRequest) Reset()
- func (x *ShareRequest) String() string
- func (m *ShareRequest) Validate() error
- func (m *ShareRequest) ValidateAll() error
- type ShareRequestMultiError
- type ShareRequestValidationError
- func (e ShareRequestValidationError) Cause() error
- func (e ShareRequestValidationError) Error() string
- func (e ShareRequestValidationError) ErrorName() string
- func (e ShareRequestValidationError) Field() string
- func (e ShareRequestValidationError) Key() bool
- func (e ShareRequestValidationError) Reason() string
- type ShareResponse
- func (*ShareResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ShareResponse) GetShareReference() string
- func (*ShareResponse) ProtoMessage()
- func (x *ShareResponse) ProtoReflect() protoreflect.Message
- func (x *ShareResponse) Reset()
- func (x *ShareResponse) String() string
- func (m *ShareResponse) Validate() error
- func (m *ShareResponse) ValidateAll() error
- type ShareResponseMultiError
- type ShareResponseValidationError
- func (e ShareResponseValidationError) Cause() error
- func (e ShareResponseValidationError) Error() string
- func (e ShareResponseValidationError) ErrorName() string
- func (e ShareResponseValidationError) Field() string
- func (e ShareResponseValidationError) Key() bool
- func (e ShareResponseValidationError) Reason() string
- type UnimplementedDeveloperServiceServer
- func (UnimplementedDeveloperServiceServer) EditCheck(context.Context, *EditCheckRequest) (*EditCheckResponse, error)
- func (UnimplementedDeveloperServiceServer) FormatSchema(context.Context, *FormatSchemaRequest) (*FormatSchemaResponse, error)
- func (UnimplementedDeveloperServiceServer) LookupShared(context.Context, *LookupShareRequest) (*LookupShareResponse, error)
- func (UnimplementedDeveloperServiceServer) Share(context.Context, *ShareRequest) (*ShareResponse, error)
- func (UnimplementedDeveloperServiceServer) UpgradeSchema(context.Context, *UpgradeSchemaRequest) (*UpgradeSchemaResponse, error)
- func (UnimplementedDeveloperServiceServer) Validate(context.Context, *ValidateRequest) (*ValidateResponse, error)
- type UnsafeDeveloperServiceServer
- type UpgradeSchemaRequest
- func (*UpgradeSchemaRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpgradeSchemaRequest) GetNamespaceConfigs() []string
- func (*UpgradeSchemaRequest) ProtoMessage()
- func (x *UpgradeSchemaRequest) ProtoReflect() protoreflect.Message
- func (x *UpgradeSchemaRequest) Reset()
- func (x *UpgradeSchemaRequest) String() string
- func (m *UpgradeSchemaRequest) Validate() error
- func (m *UpgradeSchemaRequest) ValidateAll() error
- type UpgradeSchemaRequestMultiError
- type UpgradeSchemaRequestValidationError
- func (e UpgradeSchemaRequestValidationError) Cause() error
- func (e UpgradeSchemaRequestValidationError) Error() string
- func (e UpgradeSchemaRequestValidationError) ErrorName() string
- func (e UpgradeSchemaRequestValidationError) Field() string
- func (e UpgradeSchemaRequestValidationError) Key() bool
- func (e UpgradeSchemaRequestValidationError) Reason() string
- type UpgradeSchemaResponse
- func (*UpgradeSchemaResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpgradeSchemaResponse) GetError() *DeveloperError
- func (x *UpgradeSchemaResponse) GetUpgradedSchema() string
- func (*UpgradeSchemaResponse) ProtoMessage()
- func (x *UpgradeSchemaResponse) ProtoReflect() protoreflect.Message
- func (x *UpgradeSchemaResponse) Reset()
- func (x *UpgradeSchemaResponse) String() string
- func (m *UpgradeSchemaResponse) Validate() error
- func (m *UpgradeSchemaResponse) ValidateAll() error
- type UpgradeSchemaResponseMultiError
- type UpgradeSchemaResponseValidationError
- func (e UpgradeSchemaResponseValidationError) Cause() error
- func (e UpgradeSchemaResponseValidationError) Error() string
- func (e UpgradeSchemaResponseValidationError) ErrorName() string
- func (e UpgradeSchemaResponseValidationError) Field() string
- func (e UpgradeSchemaResponseValidationError) Key() bool
- func (e UpgradeSchemaResponseValidationError) Reason() string
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (m *User) GetUserOneof() isUser_UserOneof
- func (x *User) GetUserset() *ObjectAndRelation
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
- func (m *User) Validate() error
- func (m *User) ValidateAll() error
- type UserMultiError
- type UserValidationError
- type User_Userset
- type ValidateRequest
- func (*ValidateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ValidateRequest) GetAssertionsYaml() string
- func (x *ValidateRequest) GetContext() *RequestContext
- func (x *ValidateRequest) GetUpdateValidationYaml() bool
- func (x *ValidateRequest) GetValidationYaml() string
- func (*ValidateRequest) ProtoMessage()
- func (x *ValidateRequest) ProtoReflect() protoreflect.Message
- func (x *ValidateRequest) Reset()
- func (x *ValidateRequest) String() string
- func (m *ValidateRequest) Validate() error
- func (m *ValidateRequest) ValidateAll() error
- type ValidateRequestMultiError
- type ValidateRequestValidationError
- func (e ValidateRequestValidationError) Cause() error
- func (e ValidateRequestValidationError) Error() string
- func (e ValidateRequestValidationError) ErrorName() string
- func (e ValidateRequestValidationError) Field() string
- func (e ValidateRequestValidationError) Key() bool
- func (e ValidateRequestValidationError) Reason() string
- type ValidateResponse
- func (*ValidateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ValidateResponse) GetRequestErrors() []*DeveloperError
- func (x *ValidateResponse) GetUpdatedValidationYaml() string
- func (x *ValidateResponse) GetValidationErrors() []*DeveloperError
- func (*ValidateResponse) ProtoMessage()
- func (x *ValidateResponse) ProtoReflect() protoreflect.Message
- func (x *ValidateResponse) Reset()
- func (x *ValidateResponse) String() string
- func (m *ValidateResponse) Validate() error
- func (m *ValidateResponse) ValidateAll() error
- type ValidateResponseMultiError
- type ValidateResponseValidationError
- func (e ValidateResponseValidationError) Cause() error
- func (e ValidateResponseValidationError) Error() string
- func (e ValidateResponseValidationError) ErrorName() string
- func (e ValidateResponseValidationError) Field() string
- func (e ValidateResponseValidationError) Key() bool
- func (e ValidateResponseValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var (0: "UNKNOWN_REFERENCE", 1: "FAILED_TO_LOOKUP", 2: "VALID_REFERENCE", 3: "UPGRADED_REFERENCE", } "UNKNOWN_REFERENCE": 0, "FAILED_TO_LOOKUP": 1, "VALID_REFERENCE": 2, "UPGRADED_REFERENCE": 3, } )
Enum value maps for LookupShareResponse_LookupStatus.
var ( DeveloperError_Source_name = map[int32]string{ 0: "UNKNOWN_SOURCE", 1: "SCHEMA", 2: "RELATIONSHIP", 3: "VALIDATION_YAML", 4: "CHECK_WATCH", 5: "ASSERTION", } DeveloperError_Source_value = map[string]int32{ "UNKNOWN_SOURCE": 0, "SCHEMA": 1, "RELATIONSHIP": 2, "VALIDATION_YAML": 3, "CHECK_WATCH": 4, "ASSERTION": 5, } )
Enum value maps for DeveloperError_Source.
var ( DeveloperError_ErrorKind_name = map[int32]string{ 0: "UNKNOWN_KIND", 1: "PARSE_ERROR", 2: "SCHEMA_ISSUE", 3: "DUPLICATE_RELATIONSHIP", 4: "MISSING_EXPECTED_RELATIONSHIP", 5: "EXTRA_RELATIONSHIP_FOUND", 6: "UNKNOWN_OBJECT_TYPE", 7: "UNKNOWN_RELATION", 8: "MAXIMUM_RECURSION", 9: "ASSERTION_FAILED", } DeveloperError_ErrorKind_value = map[string]int32{ "UNKNOWN_KIND": 0, "PARSE_ERROR": 1, "SCHEMA_ISSUE": 2, "DUPLICATE_RELATIONSHIP": 3, "MISSING_EXPECTED_RELATIONSHIP": 4, "EXTRA_RELATIONSHIP_FOUND": 5, "UNKNOWN_OBJECT_TYPE": 6, "UNKNOWN_RELATION": 7, "MAXIMUM_RECURSION": 8, "ASSERTION_FAILED": 9, } )
Enum value maps for DeveloperError_ErrorKind.
var DeveloperService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "authzed.api.v0.DeveloperService", HandlerType: (*DeveloperServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "EditCheck", Handler: _DeveloperService_EditCheck_Handler, }, { MethodName: "Validate", Handler: _DeveloperService_Validate_Handler, }, { MethodName: "Share", Handler: _DeveloperService_Share_Handler, }, { MethodName: "LookupShared", Handler: _DeveloperService_LookupShared_Handler, }, { MethodName: "UpgradeSchema", Handler: _DeveloperService_UpgradeSchema_Handler, }, { MethodName: "FormatSchema", Handler: _DeveloperService_FormatSchema_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "authzed/api/v0/developer.proto", }
DeveloperService_ServiceDesc is the grpc.ServiceDesc for DeveloperService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_authzed_api_v0_core_proto protoreflect.FileDescriptor
var File_authzed_api_v0_developer_proto protoreflect.FileDescriptor
Functions ¶
func RegisterDeveloperServiceServer ¶
func RegisterDeveloperServiceServer(s grpc.ServiceRegistrar, srv DeveloperServiceServer)
Types ¶
type DeveloperError ¶
type DeveloperError struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` Line uint32 `protobuf:"varint,2,opt,name=line,proto3" json:"line,omitempty"` Column uint32 `protobuf:"varint,3,opt,name=column,proto3" json:"column,omitempty"` Source DeveloperError_Source `protobuf:"varint,4,opt,name=source,proto3,enum=authzed.api.v0.DeveloperError_Source" json:"source,omitempty"` Kind DeveloperError_ErrorKind `protobuf:"varint,5,opt,name=kind,proto3,enum=authzed.api.v0.DeveloperError_ErrorKind" json:"kind,omitempty"` Path []string `protobuf:"bytes,6,rep,name=path,proto3" json:"path,omitempty"` // context holds the context for the error. For schema issues, this will be the // name of the object type. For relationship issues, the full relationship string. Context string `protobuf:"bytes,7,opt,name=context,proto3" json:"context,omitempty"` // contains filtered or unexported fields }
func (*DeveloperError) Descriptor
deprecated
func (*DeveloperError) Descriptor() ([]byte, []int)
Deprecated: Use DeveloperError.ProtoReflect.Descriptor instead.
func (*DeveloperError) GetColumn ¶
func (x *DeveloperError) GetColumn() uint32
func (*DeveloperError) GetContext ¶
func (x *DeveloperError) GetContext() string
func (*DeveloperError) GetKind ¶
func (x *DeveloperError) GetKind() DeveloperError_ErrorKind
func (*DeveloperError) GetLine ¶
func (x *DeveloperError) GetLine() uint32
func (*DeveloperError) GetMessage ¶
func (x *DeveloperError) GetMessage() string
func (*DeveloperError) GetPath ¶
func (x *DeveloperError) GetPath() []string
func (*DeveloperError) GetSource ¶
func (x *DeveloperError) GetSource() DeveloperError_Source
func (*DeveloperError) ProtoMessage ¶
func (*DeveloperError) ProtoMessage()
func (*DeveloperError) ProtoReflect ¶
func (x *DeveloperError) ProtoReflect() protoreflect.Message
func (*DeveloperError) Reset ¶
func (x *DeveloperError) Reset()
func (*DeveloperError) String ¶
func (x *DeveloperError) String() string
func (*DeveloperError) Validate ¶
func (m *DeveloperError) Validate() error
Validate checks the field values on DeveloperError 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 (*DeveloperError) ValidateAll ¶ added in v0.6.0
func (m *DeveloperError) ValidateAll() error
ValidateAll checks the field values on DeveloperError 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 DeveloperErrorMultiError, or nil if none found.
type DeveloperErrorMultiError ¶ added in v0.6.0
type DeveloperErrorMultiError []error
DeveloperErrorMultiError is an error wrapping multiple validation errors returned by DeveloperError.ValidateAll() if the designated constraints aren't met.
func (DeveloperErrorMultiError) AllErrors ¶ added in v0.6.0
func (m DeveloperErrorMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeveloperErrorMultiError) Error ¶ added in v0.6.0
func (m DeveloperErrorMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeveloperErrorValidationError ¶
type DeveloperErrorValidationError struct {
// contains filtered or unexported fields
}
DeveloperErrorValidationError is the validation error returned by DeveloperError.Validate if the designated constraints aren't met.
func (DeveloperErrorValidationError) Cause ¶
func (e DeveloperErrorValidationError) Cause() error
Cause function returns cause value.
func (DeveloperErrorValidationError) Error ¶
func (e DeveloperErrorValidationError) Error() string
Error satisfies the builtin error interface
func (DeveloperErrorValidationError) ErrorName ¶
func (e DeveloperErrorValidationError) ErrorName() string
ErrorName returns error name.
func (DeveloperErrorValidationError) Field ¶
func (e DeveloperErrorValidationError) Field() string
Field function returns field value.
func (DeveloperErrorValidationError) Key ¶
func (e DeveloperErrorValidationError) Key() bool
Key function returns key value.
func (DeveloperErrorValidationError) Reason ¶
func (e DeveloperErrorValidationError) Reason() string
Reason function returns reason value.
type DeveloperError_ErrorKind ¶
type DeveloperError_ErrorKind int32
const ( DeveloperError_UNKNOWN_KIND DeveloperError_ErrorKind = 0 DeveloperError_PARSE_ERROR DeveloperError_ErrorKind = 1 DeveloperError_SCHEMA_ISSUE DeveloperError_ErrorKind = 2 DeveloperError_DUPLICATE_RELATIONSHIP DeveloperError_ErrorKind = 3 DeveloperError_MISSING_EXPECTED_RELATIONSHIP DeveloperError_ErrorKind = 4 DeveloperError_EXTRA_RELATIONSHIP_FOUND DeveloperError_ErrorKind = 5 DeveloperError_UNKNOWN_OBJECT_TYPE DeveloperError_ErrorKind = 6 DeveloperError_UNKNOWN_RELATION DeveloperError_ErrorKind = 7 DeveloperError_MAXIMUM_RECURSION DeveloperError_ErrorKind = 8 DeveloperError_ASSERTION_FAILED DeveloperError_ErrorKind = 9 )
func (DeveloperError_ErrorKind) Descriptor ¶
func (DeveloperError_ErrorKind) Descriptor() protoreflect.EnumDescriptor
func (DeveloperError_ErrorKind) Enum ¶
func (x DeveloperError_ErrorKind) Enum() *DeveloperError_ErrorKind
func (DeveloperError_ErrorKind) EnumDescriptor
deprecated
func (DeveloperError_ErrorKind) EnumDescriptor() ([]byte, []int)
Deprecated: Use DeveloperError_ErrorKind.Descriptor instead.
func (DeveloperError_ErrorKind) Number ¶
func (x DeveloperError_ErrorKind) Number() protoreflect.EnumNumber
func (DeveloperError_ErrorKind) String ¶
func (x DeveloperError_ErrorKind) String() string
func (DeveloperError_ErrorKind) Type ¶
func (DeveloperError_ErrorKind) Type() protoreflect.EnumType
type DeveloperError_Source ¶
type DeveloperError_Source int32
const ( DeveloperError_UNKNOWN_SOURCE DeveloperError_Source = 0 DeveloperError_SCHEMA DeveloperError_Source = 1 DeveloperError_RELATIONSHIP DeveloperError_Source = 2 DeveloperError_VALIDATION_YAML DeveloperError_Source = 3 DeveloperError_CHECK_WATCH DeveloperError_Source = 4 DeveloperError_ASSERTION DeveloperError_Source = 5 )
func (DeveloperError_Source) Descriptor ¶
func (DeveloperError_Source) Descriptor() protoreflect.EnumDescriptor
func (DeveloperError_Source) Enum ¶
func (x DeveloperError_Source) Enum() *DeveloperError_Source
func (DeveloperError_Source) EnumDescriptor
deprecated
func (DeveloperError_Source) EnumDescriptor() ([]byte, []int)
Deprecated: Use DeveloperError_Source.Descriptor instead.
func (DeveloperError_Source) Number ¶
func (x DeveloperError_Source) Number() protoreflect.EnumNumber
func (DeveloperError_Source) String ¶
func (x DeveloperError_Source) String() string
func (DeveloperError_Source) Type ¶
func (DeveloperError_Source) Type() protoreflect.EnumType
type DeveloperServiceClient ¶
type DeveloperServiceClient interface { EditCheck(ctx context.Context, in *EditCheckRequest, opts ...grpc.CallOption) (*EditCheckResponse, error) Validate(ctx context.Context, in *ValidateRequest, opts ...grpc.CallOption) (*ValidateResponse, error) UpgradeSchema(ctx context.Context, in *UpgradeSchemaRequest, opts ...grpc.CallOption) (*UpgradeSchemaResponse, error) FormatSchema(ctx context.Context, in *FormatSchemaRequest, opts ...grpc.CallOption) (*FormatSchemaResponse, error) }
DeveloperServiceClient is the client API for DeveloperService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewDeveloperServiceClient ¶
func NewDeveloperServiceClient(cc grpc.ClientConnInterface) DeveloperServiceClient
type DeveloperServiceServer ¶
type DeveloperServiceServer interface { EditCheck(context.Context, *EditCheckRequest) (*EditCheckResponse, error) Validate(context.Context, *ValidateRequest) (*ValidateResponse, error) UpgradeSchema(context.Context, *UpgradeSchemaRequest) (*UpgradeSchemaResponse, error) FormatSchema(context.Context, *FormatSchemaRequest) (*FormatSchemaResponse, error) // contains filtered or unexported methods }
DeveloperServiceServer is the server API for DeveloperService service. All implementations must embed UnimplementedDeveloperServiceServer for forward compatibility
type EditCheckRequest ¶
type EditCheckRequest struct { Context *RequestContext `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` CheckRelationships []*RelationTuple `protobuf:"bytes,2,rep,name=check_relationships,json=checkRelationships,proto3" json:"check_relationships,omitempty"` // contains filtered or unexported fields }
func (*EditCheckRequest) Descriptor
deprecated
func (*EditCheckRequest) Descriptor() ([]byte, []int)
Deprecated: Use EditCheckRequest.ProtoReflect.Descriptor instead.
func (*EditCheckRequest) GetCheckRelationships ¶
func (x *EditCheckRequest) GetCheckRelationships() []*RelationTuple
func (*EditCheckRequest) GetContext ¶
func (x *EditCheckRequest) GetContext() *RequestContext
func (*EditCheckRequest) ProtoMessage ¶
func (*EditCheckRequest) ProtoMessage()
func (*EditCheckRequest) ProtoReflect ¶
func (x *EditCheckRequest) ProtoReflect() protoreflect.Message
func (*EditCheckRequest) Reset ¶
func (x *EditCheckRequest) Reset()
func (*EditCheckRequest) String ¶
func (x *EditCheckRequest) String() string
func (*EditCheckRequest) Validate ¶
func (m *EditCheckRequest) Validate() error
Validate checks the field values on EditCheckRequest 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 (*EditCheckRequest) ValidateAll ¶ added in v0.6.0
func (m *EditCheckRequest) ValidateAll() error
ValidateAll checks the field values on EditCheckRequest 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 EditCheckRequestMultiError, or nil if none found.
type EditCheckRequestMultiError ¶ added in v0.6.0
type EditCheckRequestMultiError []error
EditCheckRequestMultiError is an error wrapping multiple validation errors returned by EditCheckRequest.ValidateAll() if the designated constraints aren't met.
func (EditCheckRequestMultiError) AllErrors ¶ added in v0.6.0
func (m EditCheckRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (EditCheckRequestMultiError) Error ¶ added in v0.6.0
func (m EditCheckRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type EditCheckRequestValidationError ¶
type EditCheckRequestValidationError struct {
// contains filtered or unexported fields
}
EditCheckRequestValidationError is the validation error returned by EditCheckRequest.Validate if the designated constraints aren't met.
func (EditCheckRequestValidationError) Cause ¶
func (e EditCheckRequestValidationError) Cause() error
Cause function returns cause value.
func (EditCheckRequestValidationError) Error ¶
func (e EditCheckRequestValidationError) Error() string
Error satisfies the builtin error interface
func (EditCheckRequestValidationError) ErrorName ¶
func (e EditCheckRequestValidationError) ErrorName() string
ErrorName returns error name.
func (EditCheckRequestValidationError) Field ¶
func (e EditCheckRequestValidationError) Field() string
Field function returns field value.
func (EditCheckRequestValidationError) Key ¶
func (e EditCheckRequestValidationError) Key() bool
Key function returns key value.
func (EditCheckRequestValidationError) Reason ¶
func (e EditCheckRequestValidationError) Reason() string
Reason function returns reason value.
type EditCheckResponse ¶
type EditCheckResponse struct { RequestErrors []*DeveloperError `protobuf:"bytes,1,rep,name=request_errors,json=requestErrors,proto3" json:"request_errors,omitempty"` CheckResults []*EditCheckResult `protobuf:"bytes,2,rep,name=check_results,json=checkResults,proto3" json:"check_results,omitempty"` // contains filtered or unexported fields }
func (*EditCheckResponse) Descriptor
deprecated
func (*EditCheckResponse) Descriptor() ([]byte, []int)
Deprecated: Use EditCheckResponse.ProtoReflect.Descriptor instead.
func (*EditCheckResponse) GetCheckResults ¶
func (x *EditCheckResponse) GetCheckResults() []*EditCheckResult
func (*EditCheckResponse) GetRequestErrors ¶
func (x *EditCheckResponse) GetRequestErrors() []*DeveloperError
func (*EditCheckResponse) ProtoMessage ¶
func (*EditCheckResponse) ProtoMessage()
func (*EditCheckResponse) ProtoReflect ¶
func (x *EditCheckResponse) ProtoReflect() protoreflect.Message
func (*EditCheckResponse) Reset ¶
func (x *EditCheckResponse) Reset()
func (*EditCheckResponse) String ¶
func (x *EditCheckResponse) String() string
func (*EditCheckResponse) Validate ¶
func (m *EditCheckResponse) Validate() error
Validate checks the field values on EditCheckResponse 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 (*EditCheckResponse) ValidateAll ¶ added in v0.6.0
func (m *EditCheckResponse) ValidateAll() error
ValidateAll checks the field values on EditCheckResponse 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 EditCheckResponseMultiError, or nil if none found.
type EditCheckResponseMultiError ¶ added in v0.6.0
type EditCheckResponseMultiError []error
EditCheckResponseMultiError is an error wrapping multiple validation errors returned by EditCheckResponse.ValidateAll() if the designated constraints aren't met.
func (EditCheckResponseMultiError) AllErrors ¶ added in v0.6.0
func (m EditCheckResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (EditCheckResponseMultiError) Error ¶ added in v0.6.0
func (m EditCheckResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type EditCheckResponseValidationError ¶
type EditCheckResponseValidationError struct {
// contains filtered or unexported fields
}
EditCheckResponseValidationError is the validation error returned by EditCheckResponse.Validate if the designated constraints aren't met.
func (EditCheckResponseValidationError) Cause ¶
func (e EditCheckResponseValidationError) Cause() error
Cause function returns cause value.
func (EditCheckResponseValidationError) Error ¶
func (e EditCheckResponseValidationError) Error() string
Error satisfies the builtin error interface
func (EditCheckResponseValidationError) ErrorName ¶
func (e EditCheckResponseValidationError) ErrorName() string
ErrorName returns error name.
func (EditCheckResponseValidationError) Field ¶
func (e EditCheckResponseValidationError) Field() string
Field function returns field value.
func (EditCheckResponseValidationError) Key ¶
func (e EditCheckResponseValidationError) Key() bool
Key function returns key value.
func (EditCheckResponseValidationError) Reason ¶
func (e EditCheckResponseValidationError) Reason() string
Reason function returns reason value.
type EditCheckResult ¶
type EditCheckResult struct { Relationship *RelationTuple `protobuf:"bytes,1,opt,name=relationship,proto3" json:"relationship,omitempty"` IsMember bool `protobuf:"varint,2,opt,name=is_member,json=isMember,proto3" json:"is_member,omitempty"` Error *DeveloperError `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` // contains filtered or unexported fields }
func (*EditCheckResult) Descriptor
deprecated
func (*EditCheckResult) Descriptor() ([]byte, []int)
Deprecated: Use EditCheckResult.ProtoReflect.Descriptor instead.
func (*EditCheckResult) GetError ¶
func (x *EditCheckResult) GetError() *DeveloperError
func (*EditCheckResult) GetIsMember ¶
func (x *EditCheckResult) GetIsMember() bool
func (*EditCheckResult) GetRelationship ¶
func (x *EditCheckResult) GetRelationship() *RelationTuple
func (*EditCheckResult) ProtoMessage ¶
func (*EditCheckResult) ProtoMessage()
func (*EditCheckResult) ProtoReflect ¶
func (x *EditCheckResult) ProtoReflect() protoreflect.Message
func (*EditCheckResult) Reset ¶
func (x *EditCheckResult) Reset()
func (*EditCheckResult) String ¶
func (x *EditCheckResult) String() string
func (*EditCheckResult) Validate ¶
func (m *EditCheckResult) Validate() error
Validate checks the field values on EditCheckResult 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 (*EditCheckResult) ValidateAll ¶ added in v0.6.0
func (m *EditCheckResult) ValidateAll() error
ValidateAll checks the field values on EditCheckResult 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 EditCheckResultMultiError, or nil if none found.
type EditCheckResultMultiError ¶ added in v0.6.0
type EditCheckResultMultiError []error
EditCheckResultMultiError is an error wrapping multiple validation errors returned by EditCheckResult.ValidateAll() if the designated constraints aren't met.
func (EditCheckResultMultiError) AllErrors ¶ added in v0.6.0
func (m EditCheckResultMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (EditCheckResultMultiError) Error ¶ added in v0.6.0
func (m EditCheckResultMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type EditCheckResultValidationError ¶
type EditCheckResultValidationError struct {
// contains filtered or unexported fields
}
EditCheckResultValidationError is the validation error returned by EditCheckResult.Validate if the designated constraints aren't met.
func (EditCheckResultValidationError) Cause ¶
func (e EditCheckResultValidationError) Cause() error
Cause function returns cause value.
func (EditCheckResultValidationError) Error ¶
func (e EditCheckResultValidationError) Error() string
Error satisfies the builtin error interface
func (EditCheckResultValidationError) ErrorName ¶
func (e EditCheckResultValidationError) ErrorName() string
ErrorName returns error name.
func (EditCheckResultValidationError) Field ¶
func (e EditCheckResultValidationError) Field() string
Field function returns field value.
func (EditCheckResultValidationError) Key ¶
func (e EditCheckResultValidationError) Key() bool
Key function returns key value.
func (EditCheckResultValidationError) Reason ¶
func (e EditCheckResultValidationError) Reason() string
Reason function returns reason value.
type FormatSchemaRequest ¶ added in v0.1.0
type FormatSchemaRequest struct { Schema string `protobuf:"bytes,1,opt,name=schema,proto3" json:"schema,omitempty"` // contains filtered or unexported fields }
func (*FormatSchemaRequest) Descriptor
deprecated
added in
v0.1.0
func (*FormatSchemaRequest) Descriptor() ([]byte, []int)
Deprecated: Use FormatSchemaRequest.ProtoReflect.Descriptor instead.
func (*FormatSchemaRequest) GetSchema ¶ added in v0.1.0
func (x *FormatSchemaRequest) GetSchema() string
func (*FormatSchemaRequest) ProtoMessage ¶ added in v0.1.0
func (*FormatSchemaRequest) ProtoMessage()
func (*FormatSchemaRequest) ProtoReflect ¶ added in v0.1.0
func (x *FormatSchemaRequest) ProtoReflect() protoreflect.Message
func (*FormatSchemaRequest) Reset ¶ added in v0.1.0
func (x *FormatSchemaRequest) Reset()
func (*FormatSchemaRequest) String ¶ added in v0.1.0
func (x *FormatSchemaRequest) String() string
func (*FormatSchemaRequest) Validate ¶ added in v0.1.0
func (m *FormatSchemaRequest) Validate() error
Validate checks the field values on FormatSchemaRequest 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 (*FormatSchemaRequest) ValidateAll ¶ added in v0.6.0
func (m *FormatSchemaRequest) ValidateAll() error
ValidateAll checks the field values on FormatSchemaRequest 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 FormatSchemaRequestMultiError, or nil if none found.
type FormatSchemaRequestMultiError ¶ added in v0.6.0
type FormatSchemaRequestMultiError []error
FormatSchemaRequestMultiError is an error wrapping multiple validation errors returned by FormatSchemaRequest.ValidateAll() if the designated constraints aren't met.
func (FormatSchemaRequestMultiError) AllErrors ¶ added in v0.6.0
func (m FormatSchemaRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (FormatSchemaRequestMultiError) Error ¶ added in v0.6.0
func (m FormatSchemaRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type FormatSchemaRequestValidationError ¶ added in v0.1.0
type FormatSchemaRequestValidationError struct {
// contains filtered or unexported fields
}
FormatSchemaRequestValidationError is the validation error returned by FormatSchemaRequest.Validate if the designated constraints aren't met.
func (FormatSchemaRequestValidationError) Cause ¶ added in v0.1.0
func (e FormatSchemaRequestValidationError) Cause() error
Cause function returns cause value.
func (FormatSchemaRequestValidationError) Error ¶ added in v0.1.0
func (e FormatSchemaRequestValidationError) Error() string
Error satisfies the builtin error interface
func (FormatSchemaRequestValidationError) ErrorName ¶ added in v0.1.0
func (e FormatSchemaRequestValidationError) ErrorName() string
ErrorName returns error name.
func (FormatSchemaRequestValidationError) Field ¶ added in v0.1.0
func (e FormatSchemaRequestValidationError) Field() string
Field function returns field value.
func (FormatSchemaRequestValidationError) Key ¶ added in v0.1.0
func (e FormatSchemaRequestValidationError) Key() bool
Key function returns key value.
func (FormatSchemaRequestValidationError) Reason ¶ added in v0.1.0
func (e FormatSchemaRequestValidationError) Reason() string
Reason function returns reason value.
type FormatSchemaResponse ¶ added in v0.1.0
type FormatSchemaResponse struct { Error *DeveloperError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` FormattedSchema string `protobuf:"bytes,2,opt,name=formatted_schema,json=formattedSchema,proto3" json:"formatted_schema,omitempty"` // contains filtered or unexported fields }
func (*FormatSchemaResponse) Descriptor
deprecated
added in
v0.1.0
func (*FormatSchemaResponse) Descriptor() ([]byte, []int)
Deprecated: Use FormatSchemaResponse.ProtoReflect.Descriptor instead.
func (*FormatSchemaResponse) GetError ¶ added in v0.1.0
func (x *FormatSchemaResponse) GetError() *DeveloperError
func (*FormatSchemaResponse) GetFormattedSchema ¶ added in v0.1.0
func (x *FormatSchemaResponse) GetFormattedSchema() string
func (*FormatSchemaResponse) ProtoMessage ¶ added in v0.1.0
func (*FormatSchemaResponse) ProtoMessage()
func (*FormatSchemaResponse) ProtoReflect ¶ added in v0.1.0
func (x *FormatSchemaResponse) ProtoReflect() protoreflect.Message
func (*FormatSchemaResponse) Reset ¶ added in v0.1.0
func (x *FormatSchemaResponse) Reset()
func (*FormatSchemaResponse) String ¶ added in v0.1.0
func (x *FormatSchemaResponse) String() string
func (*FormatSchemaResponse) Validate ¶ added in v0.1.0
func (m *FormatSchemaResponse) Validate() error
Validate checks the field values on FormatSchemaResponse 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 (*FormatSchemaResponse) ValidateAll ¶ added in v0.6.0
func (m *FormatSchemaResponse) ValidateAll() error
ValidateAll checks the field values on FormatSchemaResponse 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 FormatSchemaResponseMultiError, or nil if none found.
type FormatSchemaResponseMultiError ¶ added in v0.6.0
type FormatSchemaResponseMultiError []error
FormatSchemaResponseMultiError is an error wrapping multiple validation errors returned by FormatSchemaResponse.ValidateAll() if the designated constraints aren't met.
func (FormatSchemaResponseMultiError) AllErrors ¶ added in v0.6.0
func (m FormatSchemaResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (FormatSchemaResponseMultiError) Error ¶ added in v0.6.0
func (m FormatSchemaResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type FormatSchemaResponseValidationError ¶ added in v0.1.0
type FormatSchemaResponseValidationError struct {
// contains filtered or unexported fields
}
FormatSchemaResponseValidationError is the validation error returned by FormatSchemaResponse.Validate if the designated constraints aren't met.
func (FormatSchemaResponseValidationError) Cause ¶ added in v0.1.0
func (e FormatSchemaResponseValidationError) Cause() error
Cause function returns cause value.
func (FormatSchemaResponseValidationError) Error ¶ added in v0.1.0
func (e FormatSchemaResponseValidationError) Error() string
Error satisfies the builtin error interface
func (FormatSchemaResponseValidationError) ErrorName ¶ added in v0.1.0
func (e FormatSchemaResponseValidationError) ErrorName() string
ErrorName returns error name.
func (FormatSchemaResponseValidationError) Field ¶ added in v0.1.0
func (e FormatSchemaResponseValidationError) Field() string
Field function returns field value.
func (FormatSchemaResponseValidationError) Key ¶ added in v0.1.0
func (e FormatSchemaResponseValidationError) Key() bool
Key function returns key value.
func (FormatSchemaResponseValidationError) Reason ¶ added in v0.1.0
func (e FormatSchemaResponseValidationError) Reason() string
Reason function returns reason value.
type LookupShareRequest ¶
type LookupShareRequest struct { // contains filtered or unexported fields }
func (*LookupShareRequest) Descriptor
deprecated
func (*LookupShareRequest) Descriptor() ([]byte, []int)
Deprecated: Use LookupShareRequest.ProtoReflect.Descriptor instead.
func (*LookupShareRequest) GetShareReference ¶
func (x *LookupShareRequest) GetShareReference() string
func (*LookupShareRequest) ProtoMessage ¶
func (*LookupShareRequest) ProtoMessage()
func (*LookupShareRequest) ProtoReflect ¶
func (x *LookupShareRequest) ProtoReflect() protoreflect.Message
func (*LookupShareRequest) Reset ¶
func (x *LookupShareRequest) Reset()
func (*LookupShareRequest) String ¶
func (x *LookupShareRequest) String() string
func (*LookupShareRequest) Validate ¶
func (m *LookupShareRequest) Validate() error
Validate checks the field values on LookupShareRequest 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 (*LookupShareRequest) ValidateAll ¶ added in v0.6.0
func (m *LookupShareRequest) ValidateAll() error
ValidateAll checks the field values on LookupShareRequest 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 LookupShareRequestMultiError, or nil if none found.
type LookupShareRequestMultiError ¶ added in v0.6.0
type LookupShareRequestMultiError []error
LookupShareRequestMultiError is an error wrapping multiple validation errors returned by LookupShareRequest.ValidateAll() if the designated constraints aren't met.
func (LookupShareRequestMultiError) AllErrors ¶ added in v0.6.0
func (m LookupShareRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LookupShareRequestMultiError) Error ¶ added in v0.6.0
func (m LookupShareRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LookupShareRequestValidationError ¶
type LookupShareRequestValidationError struct {
// contains filtered or unexported fields
}
LookupShareRequestValidationError is the validation error returned by LookupShareRequest.Validate if the designated constraints aren't met.
func (LookupShareRequestValidationError) Cause ¶
func (e LookupShareRequestValidationError) Cause() error
Cause function returns cause value.
func (LookupShareRequestValidationError) Error ¶
func (e LookupShareRequestValidationError) Error() string
Error satisfies the builtin error interface
func (LookupShareRequestValidationError) ErrorName ¶
func (e LookupShareRequestValidationError) ErrorName() string
ErrorName returns error name.
func (LookupShareRequestValidationError) Field ¶
func (e LookupShareRequestValidationError) Field() string
Field function returns field value.
func (LookupShareRequestValidationError) Key ¶
func (e LookupShareRequestValidationError) Key() bool
Key function returns key value.
func (LookupShareRequestValidationError) Reason ¶
func (e LookupShareRequestValidationError) Reason() string
Reason function returns reason value.
type LookupShareResponse ¶
type LookupShareResponse struct { // contains filtered or unexported fields }
func (*LookupShareResponse) Descriptor
deprecated
func (*LookupShareResponse) Descriptor() ([]byte, []int)
Deprecated: Use LookupShareResponse.ProtoReflect.Descriptor instead.
func (*LookupShareResponse) GetAssertionsYaml ¶
func (x *LookupShareResponse) GetAssertionsYaml() string
func (*LookupShareResponse) GetRelationshipsYaml ¶
func (x *LookupShareResponse) GetRelationshipsYaml() string
func (*LookupShareResponse) GetSchema ¶
func (x *LookupShareResponse) GetSchema() string
func (*LookupShareResponse) GetStatus ¶
func (x *LookupShareResponse) GetStatus() LookupShareResponse_LookupStatus
func (*LookupShareResponse) GetValidationYaml ¶
func (x *LookupShareResponse) GetValidationYaml() string
func (*LookupShareResponse) ProtoMessage ¶
func (*LookupShareResponse) ProtoMessage()
func (*LookupShareResponse) ProtoReflect ¶
func (x *LookupShareResponse) ProtoReflect() protoreflect.Message
func (*LookupShareResponse) Reset ¶
func (x *LookupShareResponse) Reset()
func (*LookupShareResponse) String ¶
func (x *LookupShareResponse) String() string
func (*LookupShareResponse) Validate ¶
func (m *LookupShareResponse) Validate() error
Validate checks the field values on LookupShareResponse 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 (*LookupShareResponse) ValidateAll ¶ added in v0.6.0
func (m *LookupShareResponse) ValidateAll() error
ValidateAll checks the field values on LookupShareResponse 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 LookupShareResponseMultiError, or nil if none found.
type LookupShareResponseMultiError ¶ added in v0.6.0
type LookupShareResponseMultiError []error
LookupShareResponseMultiError is an error wrapping multiple validation errors returned by LookupShareResponse.ValidateAll() if the designated constraints aren't met.
func (LookupShareResponseMultiError) AllErrors ¶ added in v0.6.0
func (m LookupShareResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LookupShareResponseMultiError) Error ¶ added in v0.6.0
func (m LookupShareResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LookupShareResponseValidationError ¶
type LookupShareResponseValidationError struct {
// contains filtered or unexported fields
}
LookupShareResponseValidationError is the validation error returned by LookupShareResponse.Validate if the designated constraints aren't met.
func (LookupShareResponseValidationError) Cause ¶
func (e LookupShareResponseValidationError) Cause() error
Cause function returns cause value.
func (LookupShareResponseValidationError) Error ¶
func (e LookupShareResponseValidationError) Error() string
Error satisfies the builtin error interface
func (LookupShareResponseValidationError) ErrorName ¶
func (e LookupShareResponseValidationError) ErrorName() string
ErrorName returns error name.
func (LookupShareResponseValidationError) Field ¶
func (e LookupShareResponseValidationError) Field() string
Field function returns field value.
func (LookupShareResponseValidationError) Key ¶
func (e LookupShareResponseValidationError) Key() bool
Key function returns key value.
func (LookupShareResponseValidationError) Reason ¶
func (e LookupShareResponseValidationError) Reason() string
Reason function returns reason value.
type LookupShareResponse_LookupStatus ¶
type LookupShareResponse_LookupStatus int32
const ()
func (LookupShareResponse_LookupStatus) Descriptor ¶
func (LookupShareResponse_LookupStatus) Descriptor() protoreflect.EnumDescriptor
func (LookupShareResponse_LookupStatus) Enum ¶
func (x LookupShareResponse_LookupStatus) Enum() *LookupShareResponse_LookupStatus
func (LookupShareResponse_LookupStatus) EnumDescriptor
deprecated
func (LookupShareResponse_LookupStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use LookupShareResponse_LookupStatus.Descriptor instead.
func (LookupShareResponse_LookupStatus) Number ¶
func (x LookupShareResponse_LookupStatus) Number() protoreflect.EnumNumber
func (LookupShareResponse_LookupStatus) String ¶
func (x LookupShareResponse_LookupStatus) String() string
func (LookupShareResponse_LookupStatus) Type ¶
func (LookupShareResponse_LookupStatus) Type() protoreflect.EnumType
type ObjectAndRelation ¶
type ObjectAndRelation struct { Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` ObjectId string `protobuf:"bytes,2,opt,name=object_id,json=objectId,proto3" json:"object_id,omitempty"` Relation string `protobuf:"bytes,3,opt,name=relation,proto3" json:"relation,omitempty"` // contains filtered or unexported fields }
func (*ObjectAndRelation) Descriptor
deprecated
func (*ObjectAndRelation) Descriptor() ([]byte, []int)
Deprecated: Use ObjectAndRelation.ProtoReflect.Descriptor instead.
func (*ObjectAndRelation) GetNamespace ¶
func (x *ObjectAndRelation) GetNamespace() string
func (*ObjectAndRelation) GetObjectId ¶
func (x *ObjectAndRelation) GetObjectId() string
func (*ObjectAndRelation) GetRelation ¶
func (x *ObjectAndRelation) GetRelation() string
func (*ObjectAndRelation) ProtoMessage ¶
func (*ObjectAndRelation) ProtoMessage()
func (*ObjectAndRelation) ProtoReflect ¶
func (x *ObjectAndRelation) ProtoReflect() protoreflect.Message
func (*ObjectAndRelation) Reset ¶
func (x *ObjectAndRelation) Reset()
func (*ObjectAndRelation) String ¶
func (x *ObjectAndRelation) String() string
func (*ObjectAndRelation) Validate ¶
func (m *ObjectAndRelation) Validate() error
Validate checks the field values on ObjectAndRelation 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 (*ObjectAndRelation) ValidateAll ¶ added in v0.6.0
func (m *ObjectAndRelation) ValidateAll() error
ValidateAll checks the field values on ObjectAndRelation 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 ObjectAndRelationMultiError, or nil if none found.
type ObjectAndRelationMultiError ¶ added in v0.6.0
type ObjectAndRelationMultiError []error
ObjectAndRelationMultiError is an error wrapping multiple validation errors returned by ObjectAndRelation.ValidateAll() if the designated constraints aren't met.
func (ObjectAndRelationMultiError) AllErrors ¶ added in v0.6.0
func (m ObjectAndRelationMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ObjectAndRelationMultiError) Error ¶ added in v0.6.0
func (m ObjectAndRelationMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ObjectAndRelationValidationError ¶
type ObjectAndRelationValidationError struct {
// contains filtered or unexported fields
}
ObjectAndRelationValidationError is the validation error returned by ObjectAndRelation.Validate if the designated constraints aren't met.
func (ObjectAndRelationValidationError) Cause ¶
func (e ObjectAndRelationValidationError) Cause() error
Cause function returns cause value.
func (ObjectAndRelationValidationError) Error ¶
func (e ObjectAndRelationValidationError) Error() string
Error satisfies the builtin error interface
func (ObjectAndRelationValidationError) ErrorName ¶
func (e ObjectAndRelationValidationError) ErrorName() string
ErrorName returns error name.
func (ObjectAndRelationValidationError) Field ¶
func (e ObjectAndRelationValidationError) Field() string
Field function returns field value.
func (ObjectAndRelationValidationError) Key ¶
func (e ObjectAndRelationValidationError) Key() bool
Key function returns key value.
func (ObjectAndRelationValidationError) Reason ¶
func (e ObjectAndRelationValidationError) Reason() string
Reason function returns reason value.
type RelationReference ¶
type RelationReference struct { Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` Relation string `protobuf:"bytes,3,opt,name=relation,proto3" json:"relation,omitempty"` // contains filtered or unexported fields }
func (*RelationReference) Descriptor
deprecated
func (*RelationReference) Descriptor() ([]byte, []int)
Deprecated: Use RelationReference.ProtoReflect.Descriptor instead.
func (*RelationReference) GetNamespace ¶
func (x *RelationReference) GetNamespace() string
func (*RelationReference) GetRelation ¶
func (x *RelationReference) GetRelation() string
func (*RelationReference) ProtoMessage ¶
func (*RelationReference) ProtoMessage()
func (*RelationReference) ProtoReflect ¶
func (x *RelationReference) ProtoReflect() protoreflect.Message
func (*RelationReference) Reset ¶
func (x *RelationReference) Reset()
func (*RelationReference) String ¶
func (x *RelationReference) String() string
func (*RelationReference) Validate ¶
func (m *RelationReference) Validate() error
Validate checks the field values on RelationReference with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*RelationReference) ValidateAll ¶ added in v0.6.0
func (m *RelationReference) ValidateAll() error
ValidateAll checks the field values on RelationReference with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RelationReferenceMultiError, or nil if none found.
type RelationReferenceMultiError ¶ added in v0.6.0
type RelationReferenceMultiError []error
RelationReferenceMultiError is an error wrapping multiple validation errors returned by RelationReference.ValidateAll() if the designated constraints aren't met.
func (RelationReferenceMultiError) AllErrors ¶ added in v0.6.0
func (m RelationReferenceMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RelationReferenceMultiError) Error ¶ added in v0.6.0
func (m RelationReferenceMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RelationReferenceValidationError ¶
type RelationReferenceValidationError struct {
// contains filtered or unexported fields
}
RelationReferenceValidationError is the validation error returned by RelationReference.Validate if the designated constraints aren't met.
func (RelationReferenceValidationError) Cause ¶
func (e RelationReferenceValidationError) Cause() error
Cause function returns cause value.
func (RelationReferenceValidationError) Error ¶
func (e RelationReferenceValidationError) Error() string
Error satisfies the builtin error interface
func (RelationReferenceValidationError) ErrorName ¶
func (e RelationReferenceValidationError) ErrorName() string
ErrorName returns error name.
func (RelationReferenceValidationError) Field ¶
func (e RelationReferenceValidationError) Field() string
Field function returns field value.
func (RelationReferenceValidationError) Key ¶
func (e RelationReferenceValidationError) Key() bool
Key function returns key value.
func (RelationReferenceValidationError) Reason ¶
func (e RelationReferenceValidationError) Reason() string
Reason function returns reason value.
type RelationTuple ¶
type RelationTuple struct { // Each tupleset specifies keys of a set of relation tuples. The set can // include a single tuple key, or all tuples with a given object ID or // userset in a namespace, optionally constrained by a relation name. // // examples: // doc:readme#viewer@group:eng#member (fully specified) // doc:*#*#group:eng#member (all tuples that this userset relates to) // doc:12345#*#* (all tuples with a direct relationship to a document) // doc:12345#writer#* (all tuples with direct write relationship with the // document) doc:#writer#group:eng#member (all tuples that eng group has write // relationship) ObjectAndRelation *ObjectAndRelation `protobuf:"bytes,1,opt,name=object_and_relation,json=objectAndRelation,proto3" json:"object_and_relation,omitempty"` User *User `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
func (*RelationTuple) Descriptor
deprecated
func (*RelationTuple) Descriptor() ([]byte, []int)
Deprecated: Use RelationTuple.ProtoReflect.Descriptor instead.
func (*RelationTuple) GetObjectAndRelation ¶
func (x *RelationTuple) GetObjectAndRelation() *ObjectAndRelation
func (*RelationTuple) GetUser ¶
func (x *RelationTuple) GetUser() *User
func (*RelationTuple) HandwrittenValidate ¶ added in v0.4.0
func (m *RelationTuple) HandwrittenValidate() error
func (*RelationTuple) ProtoMessage ¶
func (*RelationTuple) ProtoMessage()
func (*RelationTuple) ProtoReflect ¶
func (x *RelationTuple) ProtoReflect() protoreflect.Message
func (*RelationTuple) Reset ¶
func (x *RelationTuple) Reset()
func (*RelationTuple) String ¶
func (x *RelationTuple) String() string
func (*RelationTuple) Validate ¶
func (m *RelationTuple) Validate() error
Validate checks the field values on RelationTuple 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 (*RelationTuple) ValidateAll ¶ added in v0.6.0
func (m *RelationTuple) ValidateAll() error
ValidateAll checks the field values on RelationTuple 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 RelationTupleMultiError, or nil if none found.
type RelationTupleMultiError ¶ added in v0.6.0
type RelationTupleMultiError []error
RelationTupleMultiError is an error wrapping multiple validation errors returned by RelationTuple.ValidateAll() if the designated constraints aren't met.
func (RelationTupleMultiError) AllErrors ¶ added in v0.6.0
func (m RelationTupleMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RelationTupleMultiError) Error ¶ added in v0.6.0
func (m RelationTupleMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RelationTupleValidationError ¶
type RelationTupleValidationError struct {
// contains filtered or unexported fields
}
RelationTupleValidationError is the validation error returned by RelationTuple.Validate if the designated constraints aren't met.
func (RelationTupleValidationError) Cause ¶
func (e RelationTupleValidationError) Cause() error
Cause function returns cause value.
func (RelationTupleValidationError) Error ¶
func (e RelationTupleValidationError) Error() string
Error satisfies the builtin error interface
func (RelationTupleValidationError) ErrorName ¶
func (e RelationTupleValidationError) ErrorName() string
ErrorName returns error name.
func (RelationTupleValidationError) Field ¶
func (e RelationTupleValidationError) Field() string
Field function returns field value.
func (RelationTupleValidationError) Key ¶
func (e RelationTupleValidationError) Key() bool
Key function returns key value.
func (RelationTupleValidationError) Reason ¶
func (e RelationTupleValidationError) Reason() string
Reason function returns reason value.
type RequestContext ¶
type RequestContext struct { Schema string `protobuf:"bytes,1,opt,name=schema,proto3" json:"schema,omitempty"` Relationships []*RelationTuple `protobuf:"bytes,2,rep,name=relationships,proto3" json:"relationships,omitempty"` // contains filtered or unexported fields }
func (*RequestContext) Descriptor
deprecated
func (*RequestContext) Descriptor() ([]byte, []int)
Deprecated: Use RequestContext.ProtoReflect.Descriptor instead.
func (*RequestContext) GetRelationships ¶
func (x *RequestContext) GetRelationships() []*RelationTuple
func (*RequestContext) GetSchema ¶
func (x *RequestContext) GetSchema() string
func (*RequestContext) ProtoMessage ¶
func (*RequestContext) ProtoMessage()
func (*RequestContext) ProtoReflect ¶
func (x *RequestContext) ProtoReflect() protoreflect.Message
func (*RequestContext) Reset ¶
func (x *RequestContext) Reset()
func (*RequestContext) String ¶
func (x *RequestContext) String() string
func (*RequestContext) Validate ¶
func (m *RequestContext) Validate() error
Validate checks the field values on RequestContext 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 (*RequestContext) ValidateAll ¶ added in v0.6.0
func (m *RequestContext) ValidateAll() error
ValidateAll checks the field values on RequestContext 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 RequestContextMultiError, or nil if none found.
type RequestContextMultiError ¶ added in v0.6.0
type RequestContextMultiError []error
RequestContextMultiError is an error wrapping multiple validation errors returned by RequestContext.ValidateAll() if the designated constraints aren't met.
func (RequestContextMultiError) AllErrors ¶ added in v0.6.0
func (m RequestContextMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RequestContextMultiError) Error ¶ added in v0.6.0
func (m RequestContextMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RequestContextValidationError ¶
type RequestContextValidationError struct {
// contains filtered or unexported fields
}
RequestContextValidationError is the validation error returned by RequestContext.Validate if the designated constraints aren't met.
func (RequestContextValidationError) Cause ¶
func (e RequestContextValidationError) Cause() error
Cause function returns cause value.
func (RequestContextValidationError) Error ¶
func (e RequestContextValidationError) Error() string
Error satisfies the builtin error interface
func (RequestContextValidationError) ErrorName ¶
func (e RequestContextValidationError) ErrorName() string
ErrorName returns error name.
func (RequestContextValidationError) Field ¶
func (e RequestContextValidationError) Field() string
Field function returns field value.
func (RequestContextValidationError) Key ¶
func (e RequestContextValidationError) Key() bool
Key function returns key value.
func (RequestContextValidationError) Reason ¶
func (e RequestContextValidationError) Reason() string
Reason function returns reason value.
type ShareRequest ¶
type ShareRequest struct { // contains filtered or unexported fields }
func (*ShareRequest) Descriptor
deprecated
func (*ShareRequest) Descriptor() ([]byte, []int)
Deprecated: Use ShareRequest.ProtoReflect.Descriptor instead.
func (*ShareRequest) GetAssertionsYaml ¶
func (x *ShareRequest) GetAssertionsYaml() string
func (*ShareRequest) GetRelationshipsYaml ¶
func (x *ShareRequest) GetRelationshipsYaml() string
func (*ShareRequest) GetSchema ¶
func (x *ShareRequest) GetSchema() string
func (*ShareRequest) GetValidationYaml ¶
func (x *ShareRequest) GetValidationYaml() string
func (*ShareRequest) ProtoMessage ¶
func (*ShareRequest) ProtoMessage()
func (*ShareRequest) ProtoReflect ¶
func (x *ShareRequest) ProtoReflect() protoreflect.Message
func (*ShareRequest) Reset ¶
func (x *ShareRequest) Reset()
func (*ShareRequest) String ¶
func (x *ShareRequest) String() string
func (*ShareRequest) Validate ¶
func (m *ShareRequest) Validate() error
Validate checks the field values on ShareRequest 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 (*ShareRequest) ValidateAll ¶ added in v0.6.0
func (m *ShareRequest) ValidateAll() error
ValidateAll checks the field values on ShareRequest 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 ShareRequestMultiError, or nil if none found.
type ShareRequestMultiError ¶ added in v0.6.0
type ShareRequestMultiError []error
ShareRequestMultiError is an error wrapping multiple validation errors returned by ShareRequest.ValidateAll() if the designated constraints aren't met.
func (ShareRequestMultiError) AllErrors ¶ added in v0.6.0
func (m ShareRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ShareRequestMultiError) Error ¶ added in v0.6.0
func (m ShareRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ShareRequestValidationError ¶
type ShareRequestValidationError struct {
// contains filtered or unexported fields
}
ShareRequestValidationError is the validation error returned by ShareRequest.Validate if the designated constraints aren't met.
func (ShareRequestValidationError) Cause ¶
func (e ShareRequestValidationError) Cause() error
Cause function returns cause value.
func (ShareRequestValidationError) Error ¶
func (e ShareRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ShareRequestValidationError) ErrorName ¶
func (e ShareRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ShareRequestValidationError) Field ¶
func (e ShareRequestValidationError) Field() string
Field function returns field value.
func (ShareRequestValidationError) Key ¶
func (e ShareRequestValidationError) Key() bool
Key function returns key value.
func (ShareRequestValidationError) Reason ¶
func (e ShareRequestValidationError) Reason() string
Reason function returns reason value.
type ShareResponse ¶
type ShareResponse struct { // contains filtered or unexported fields }
func (*ShareResponse) Descriptor
deprecated
func (*ShareResponse) Descriptor() ([]byte, []int)
Deprecated: Use ShareResponse.ProtoReflect.Descriptor instead.
func (*ShareResponse) GetShareReference ¶
func (x *ShareResponse) GetShareReference() string
func (*ShareResponse) ProtoMessage ¶
func (*ShareResponse) ProtoMessage()
func (*ShareResponse) ProtoReflect ¶
func (x *ShareResponse) ProtoReflect() protoreflect.Message
func (*ShareResponse) Reset ¶
func (x *ShareResponse) Reset()
func (*ShareResponse) String ¶
func (x *ShareResponse) String() string
func (*ShareResponse) Validate ¶
func (m *ShareResponse) Validate() error
Validate checks the field values on ShareResponse 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 (*ShareResponse) ValidateAll ¶ added in v0.6.0
func (m *ShareResponse) ValidateAll() error
ValidateAll checks the field values on ShareResponse 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 ShareResponseMultiError, or nil if none found.
type ShareResponseMultiError ¶ added in v0.6.0
type ShareResponseMultiError []error
ShareResponseMultiError is an error wrapping multiple validation errors returned by ShareResponse.ValidateAll() if the designated constraints aren't met.
func (ShareResponseMultiError) AllErrors ¶ added in v0.6.0
func (m ShareResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ShareResponseMultiError) Error ¶ added in v0.6.0
func (m ShareResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ShareResponseValidationError ¶
type ShareResponseValidationError struct {
// contains filtered or unexported fields
}
ShareResponseValidationError is the validation error returned by ShareResponse.Validate if the designated constraints aren't met.
func (ShareResponseValidationError) Cause ¶
func (e ShareResponseValidationError) Cause() error
Cause function returns cause value.
func (ShareResponseValidationError) Error ¶
func (e ShareResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ShareResponseValidationError) ErrorName ¶
func (e ShareResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ShareResponseValidationError) Field ¶
func (e ShareResponseValidationError) Field() string
Field function returns field value.
func (ShareResponseValidationError) Key ¶
func (e ShareResponseValidationError) Key() bool
Key function returns key value.
func (ShareResponseValidationError) Reason ¶
func (e ShareResponseValidationError) Reason() string
Reason function returns reason value.
type UnimplementedDeveloperServiceServer ¶
type UnimplementedDeveloperServiceServer struct { }
UnimplementedDeveloperServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedDeveloperServiceServer) EditCheck ¶
func (UnimplementedDeveloperServiceServer) EditCheck(context.Context, *EditCheckRequest) (*EditCheckResponse, error)
func (UnimplementedDeveloperServiceServer) FormatSchema ¶ added in v0.1.0
func (UnimplementedDeveloperServiceServer) FormatSchema(context.Context, *FormatSchemaRequest) (*FormatSchemaResponse, error)
func (UnimplementedDeveloperServiceServer) LookupShared ¶
func (UnimplementedDeveloperServiceServer) LookupShared(context.Context, *LookupShareRequest) (*LookupShareResponse, error)
func (UnimplementedDeveloperServiceServer) Share ¶
func (UnimplementedDeveloperServiceServer) Share(context.Context, *ShareRequest) (*ShareResponse, error)
func (UnimplementedDeveloperServiceServer) UpgradeSchema ¶
func (UnimplementedDeveloperServiceServer) UpgradeSchema(context.Context, *UpgradeSchemaRequest) (*UpgradeSchemaResponse, error)
func (UnimplementedDeveloperServiceServer) Validate ¶
func (UnimplementedDeveloperServiceServer) Validate(context.Context, *ValidateRequest) (*ValidateResponse, error)
type UnsafeDeveloperServiceServer ¶
type UnsafeDeveloperServiceServer interface {
// contains filtered or unexported methods
}
UnsafeDeveloperServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DeveloperServiceServer will result in compilation errors.
type UpgradeSchemaRequest ¶
type UpgradeSchemaRequest struct { NamespaceConfigs []string `protobuf:"bytes,1,rep,name=namespace_configs,json=namespaceConfigs,proto3" json:"namespace_configs,omitempty"` // contains filtered or unexported fields }
func (*UpgradeSchemaRequest) Descriptor
deprecated
func (*UpgradeSchemaRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpgradeSchemaRequest.ProtoReflect.Descriptor instead.
func (*UpgradeSchemaRequest) GetNamespaceConfigs ¶
func (x *UpgradeSchemaRequest) GetNamespaceConfigs() []string
func (*UpgradeSchemaRequest) ProtoMessage ¶
func (*UpgradeSchemaRequest) ProtoMessage()
func (*UpgradeSchemaRequest) ProtoReflect ¶
func (x *UpgradeSchemaRequest) ProtoReflect() protoreflect.Message
func (*UpgradeSchemaRequest) Reset ¶
func (x *UpgradeSchemaRequest) Reset()
func (*UpgradeSchemaRequest) String ¶
func (x *UpgradeSchemaRequest) String() string
func (*UpgradeSchemaRequest) Validate ¶
func (m *UpgradeSchemaRequest) Validate() error
Validate checks the field values on UpgradeSchemaRequest 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 (*UpgradeSchemaRequest) ValidateAll ¶ added in v0.6.0
func (m *UpgradeSchemaRequest) ValidateAll() error
ValidateAll checks the field values on UpgradeSchemaRequest 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 UpgradeSchemaRequestMultiError, or nil if none found.
type UpgradeSchemaRequestMultiError ¶ added in v0.6.0
type UpgradeSchemaRequestMultiError []error
UpgradeSchemaRequestMultiError is an error wrapping multiple validation errors returned by UpgradeSchemaRequest.ValidateAll() if the designated constraints aren't met.
func (UpgradeSchemaRequestMultiError) AllErrors ¶ added in v0.6.0
func (m UpgradeSchemaRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpgradeSchemaRequestMultiError) Error ¶ added in v0.6.0
func (m UpgradeSchemaRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpgradeSchemaRequestValidationError ¶
type UpgradeSchemaRequestValidationError struct {
// contains filtered or unexported fields
}
UpgradeSchemaRequestValidationError is the validation error returned by UpgradeSchemaRequest.Validate if the designated constraints aren't met.
func (UpgradeSchemaRequestValidationError) Cause ¶
func (e UpgradeSchemaRequestValidationError) Cause() error
Cause function returns cause value.
func (UpgradeSchemaRequestValidationError) Error ¶
func (e UpgradeSchemaRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpgradeSchemaRequestValidationError) ErrorName ¶
func (e UpgradeSchemaRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpgradeSchemaRequestValidationError) Field ¶
func (e UpgradeSchemaRequestValidationError) Field() string
Field function returns field value.
func (UpgradeSchemaRequestValidationError) Key ¶
func (e UpgradeSchemaRequestValidationError) Key() bool
Key function returns key value.
func (UpgradeSchemaRequestValidationError) Reason ¶
func (e UpgradeSchemaRequestValidationError) Reason() string
Reason function returns reason value.
type UpgradeSchemaResponse ¶
type UpgradeSchemaResponse struct { Error *DeveloperError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` UpgradedSchema string `protobuf:"bytes,2,opt,name=upgraded_schema,json=upgradedSchema,proto3" json:"upgraded_schema,omitempty"` // contains filtered or unexported fields }
func (*UpgradeSchemaResponse) Descriptor
deprecated
func (*UpgradeSchemaResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpgradeSchemaResponse.ProtoReflect.Descriptor instead.
func (*UpgradeSchemaResponse) GetError ¶
func (x *UpgradeSchemaResponse) GetError() *DeveloperError
func (*UpgradeSchemaResponse) GetUpgradedSchema ¶
func (x *UpgradeSchemaResponse) GetUpgradedSchema() string
func (*UpgradeSchemaResponse) ProtoMessage ¶
func (*UpgradeSchemaResponse) ProtoMessage()
func (*UpgradeSchemaResponse) ProtoReflect ¶
func (x *UpgradeSchemaResponse) ProtoReflect() protoreflect.Message
func (*UpgradeSchemaResponse) Reset ¶
func (x *UpgradeSchemaResponse) Reset()
func (*UpgradeSchemaResponse) String ¶
func (x *UpgradeSchemaResponse) String() string
func (*UpgradeSchemaResponse) Validate ¶
func (m *UpgradeSchemaResponse) Validate() error
Validate checks the field values on UpgradeSchemaResponse 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 (*UpgradeSchemaResponse) ValidateAll ¶ added in v0.6.0
func (m *UpgradeSchemaResponse) ValidateAll() error
ValidateAll checks the field values on UpgradeSchemaResponse 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 UpgradeSchemaResponseMultiError, or nil if none found.
type UpgradeSchemaResponseMultiError ¶ added in v0.6.0
type UpgradeSchemaResponseMultiError []error
UpgradeSchemaResponseMultiError is an error wrapping multiple validation errors returned by UpgradeSchemaResponse.ValidateAll() if the designated constraints aren't met.
func (UpgradeSchemaResponseMultiError) AllErrors ¶ added in v0.6.0
func (m UpgradeSchemaResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpgradeSchemaResponseMultiError) Error ¶ added in v0.6.0
func (m UpgradeSchemaResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpgradeSchemaResponseValidationError ¶
type UpgradeSchemaResponseValidationError struct {
// contains filtered or unexported fields
}
UpgradeSchemaResponseValidationError is the validation error returned by UpgradeSchemaResponse.Validate if the designated constraints aren't met.
func (UpgradeSchemaResponseValidationError) Cause ¶
func (e UpgradeSchemaResponseValidationError) Cause() error
Cause function returns cause value.
func (UpgradeSchemaResponseValidationError) Error ¶
func (e UpgradeSchemaResponseValidationError) Error() string
Error satisfies the builtin error interface
func (UpgradeSchemaResponseValidationError) ErrorName ¶
func (e UpgradeSchemaResponseValidationError) ErrorName() string
ErrorName returns error name.
func (UpgradeSchemaResponseValidationError) Field ¶
func (e UpgradeSchemaResponseValidationError) Field() string
Field function returns field value.
func (UpgradeSchemaResponseValidationError) Key ¶
func (e UpgradeSchemaResponseValidationError) Key() bool
Key function returns key value.
func (UpgradeSchemaResponseValidationError) Reason ¶
func (e UpgradeSchemaResponseValidationError) Reason() string
Reason function returns reason value.
type User ¶
type User struct { // Types that are assignable to UserOneof: // // *User_Userset UserOneof isUser_UserOneof `protobuf_oneof:"user_oneof"` // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
func (*User) GetUserOneof ¶
func (m *User) GetUserOneof() isUser_UserOneof
func (*User) GetUserset ¶
func (x *User) GetUserset() *ObjectAndRelation
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
func (*User) Validate ¶
Validate checks the field values on User 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 (*User) ValidateAll ¶ added in v0.6.0
ValidateAll checks the field values on User 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 UserMultiError, or nil if none found.
type UserMultiError ¶ added in v0.6.0
type UserMultiError []error
UserMultiError is an error wrapping multiple validation errors returned by User.ValidateAll() if the designated constraints aren't met.
func (UserMultiError) AllErrors ¶ added in v0.6.0
func (m UserMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserMultiError) Error ¶ added in v0.6.0
func (m UserMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserValidationError ¶
type UserValidationError struct {
// contains filtered or unexported fields
}
UserValidationError is the validation error returned by User.Validate if the designated constraints aren't met.
func (UserValidationError) Cause ¶
func (e UserValidationError) Cause() error
Cause function returns cause value.
func (UserValidationError) Error ¶
func (e UserValidationError) Error() string
Error satisfies the builtin error interface
func (UserValidationError) ErrorName ¶
func (e UserValidationError) ErrorName() string
ErrorName returns error name.
func (UserValidationError) Field ¶
func (e UserValidationError) Field() string
Field function returns field value.
func (UserValidationError) Key ¶
func (e UserValidationError) Key() bool
Key function returns key value.
func (UserValidationError) Reason ¶
func (e UserValidationError) Reason() string
Reason function returns reason value.
type User_Userset ¶
type User_Userset struct {
Userset *ObjectAndRelation `protobuf:"bytes,2,opt,name=userset,proto3,oneof"`
}
type ValidateRequest ¶
type ValidateRequest struct { Context *RequestContext `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` ValidationYaml string `protobuf:"bytes,3,opt,name=validation_yaml,json=validationYaml,proto3" json:"validation_yaml,omitempty"` UpdateValidationYaml bool `protobuf:"varint,4,opt,name=update_validation_yaml,json=updateValidationYaml,proto3" json:"update_validation_yaml,omitempty"` AssertionsYaml string `protobuf:"bytes,5,opt,name=assertions_yaml,json=assertionsYaml,proto3" json:"assertions_yaml,omitempty"` // contains filtered or unexported fields }
func (*ValidateRequest) Descriptor
deprecated
func (*ValidateRequest) Descriptor() ([]byte, []int)
Deprecated: Use ValidateRequest.ProtoReflect.Descriptor instead.
func (*ValidateRequest) GetAssertionsYaml ¶
func (x *ValidateRequest) GetAssertionsYaml() string
func (*ValidateRequest) GetContext ¶
func (x *ValidateRequest) GetContext() *RequestContext
func (*ValidateRequest) GetUpdateValidationYaml ¶
func (x *ValidateRequest) GetUpdateValidationYaml() bool
func (*ValidateRequest) GetValidationYaml ¶
func (x *ValidateRequest) GetValidationYaml() string
func (*ValidateRequest) ProtoMessage ¶
func (*ValidateRequest) ProtoMessage()
func (*ValidateRequest) ProtoReflect ¶
func (x *ValidateRequest) ProtoReflect() protoreflect.Message
func (*ValidateRequest) Reset ¶
func (x *ValidateRequest) Reset()
func (*ValidateRequest) String ¶
func (x *ValidateRequest) String() string
func (*ValidateRequest) Validate ¶
func (m *ValidateRequest) Validate() error
Validate checks the field values on ValidateRequest 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 (*ValidateRequest) ValidateAll ¶ added in v0.6.0
func (m *ValidateRequest) ValidateAll() error
ValidateAll checks the field values on ValidateRequest 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 ValidateRequestMultiError, or nil if none found.
type ValidateRequestMultiError ¶ added in v0.6.0
type ValidateRequestMultiError []error
ValidateRequestMultiError is an error wrapping multiple validation errors returned by ValidateRequest.ValidateAll() if the designated constraints aren't met.
func (ValidateRequestMultiError) AllErrors ¶ added in v0.6.0
func (m ValidateRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ValidateRequestMultiError) Error ¶ added in v0.6.0
func (m ValidateRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ValidateRequestValidationError ¶
type ValidateRequestValidationError struct {
// contains filtered or unexported fields
}
ValidateRequestValidationError is the validation error returned by ValidateRequest.Validate if the designated constraints aren't met.
func (ValidateRequestValidationError) Cause ¶
func (e ValidateRequestValidationError) Cause() error
Cause function returns cause value.
func (ValidateRequestValidationError) Error ¶
func (e ValidateRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ValidateRequestValidationError) ErrorName ¶
func (e ValidateRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ValidateRequestValidationError) Field ¶
func (e ValidateRequestValidationError) Field() string
Field function returns field value.
func (ValidateRequestValidationError) Key ¶
func (e ValidateRequestValidationError) Key() bool
Key function returns key value.
func (ValidateRequestValidationError) Reason ¶
func (e ValidateRequestValidationError) Reason() string
Reason function returns reason value.
type ValidateResponse ¶
type ValidateResponse struct { RequestErrors []*DeveloperError `protobuf:"bytes,1,rep,name=request_errors,json=requestErrors,proto3" json:"request_errors,omitempty"` ValidationErrors []*DeveloperError `protobuf:"bytes,2,rep,name=validation_errors,json=validationErrors,proto3" json:"validation_errors,omitempty"` UpdatedValidationYaml string `` /* 126-byte string literal not displayed */ // contains filtered or unexported fields }
func (*ValidateResponse) Descriptor
deprecated
func (*ValidateResponse) Descriptor() ([]byte, []int)
Deprecated: Use ValidateResponse.ProtoReflect.Descriptor instead.
func (*ValidateResponse) GetRequestErrors ¶
func (x *ValidateResponse) GetRequestErrors() []*DeveloperError
func (*ValidateResponse) GetUpdatedValidationYaml ¶
func (x *ValidateResponse) GetUpdatedValidationYaml() string
func (*ValidateResponse) GetValidationErrors ¶
func (x *ValidateResponse) GetValidationErrors() []*DeveloperError
func (*ValidateResponse) ProtoMessage ¶
func (*ValidateResponse) ProtoMessage()
func (*ValidateResponse) ProtoReflect ¶
func (x *ValidateResponse) ProtoReflect() protoreflect.Message
func (*ValidateResponse) Reset ¶
func (x *ValidateResponse) Reset()
func (*ValidateResponse) String ¶
func (x *ValidateResponse) String() string
func (*ValidateResponse) Validate ¶
func (m *ValidateResponse) Validate() error
Validate checks the field values on ValidateResponse 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 (*ValidateResponse) ValidateAll ¶ added in v0.6.0
func (m *ValidateResponse) ValidateAll() error
ValidateAll checks the field values on ValidateResponse 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 ValidateResponseMultiError, or nil if none found.
type ValidateResponseMultiError ¶ added in v0.6.0
type ValidateResponseMultiError []error
ValidateResponseMultiError is an error wrapping multiple validation errors returned by ValidateResponse.ValidateAll() if the designated constraints aren't met.
func (ValidateResponseMultiError) AllErrors ¶ added in v0.6.0
func (m ValidateResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ValidateResponseMultiError) Error ¶ added in v0.6.0
func (m ValidateResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ValidateResponseValidationError ¶
type ValidateResponseValidationError struct {
// contains filtered or unexported fields
}
ValidateResponseValidationError is the validation error returned by ValidateResponse.Validate if the designated constraints aren't met.
func (ValidateResponseValidationError) Cause ¶
func (e ValidateResponseValidationError) Cause() error
Cause function returns cause value.
func (ValidateResponseValidationError) Error ¶
func (e ValidateResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ValidateResponseValidationError) ErrorName ¶
func (e ValidateResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ValidateResponseValidationError) Field ¶
func (e ValidateResponseValidationError) Field() string
Field function returns field value.
func (ValidateResponseValidationError) Key ¶
func (e ValidateResponseValidationError) Key() bool
Key function returns key value.
func (ValidateResponseValidationError) Reason ¶
func (e ValidateResponseValidationError) Reason() string
Reason function returns reason value.