basev1

package
v0.0.0-...-839bc5d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 16, 2023 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Overview

Package basev1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorCode_name = map[int32]string{
		0:    "ERROR_CODE_UNSPECIFIED",
		1001: "ERROR_CODE_MISSING_BEARER_TOKEN",
		1002: "ERROR_CODE_UNAUTHENTICATED",
		1003: "ERROR_CODE_MISSING_TENANT_ID",
		2000: "ERROR_CODE_VALIDATION",
		2002: "ERROR_CODE_UNDEFINED_CHILD_TYPE",
		2003: "ERROR_CODE_UNDEFINED_CHILD_KIND",
		2006: "ERROR_CODE_UNDEFINED_RELATION_REFERENCE",
		2007: "ERROR_CODE_NOT_SUPPORTED_RELATION_WALK",
		2008: "ERROR_CODE_ENTITY_AND_SUBJECT_CANNOT_BE_EQUAL",
		2009: "ERROR_CODE_DEPTH_NOT_ENOUGH",
		2010: "ERROR_CODE_RELATION_REFERENCE_NOT_FOUND_IN_ENTITY_REFERENCES",
		2011: "ERROR_CODE_RELATION_REFERENCE_MUST_HAVE_ONE_ENTITY_REFERENCE",
		2012: "ERROR_CODE_DUPLICATED_ENTITY_REFERENCE",
		2013: "ERROR_CODE_DUPLICATED_RELATION_REFERENCE",
		2014: "ERROR_CODE_DUPLICATED_ACTION_REFERENCE",
		2015: "ERROR_CODE_SCHEMA_PARSE",
		2016: "ERROR_CODE_SCHEMA_COMPILE",
		2017: "ERROR_CODE_SUBJECT_RELATION_MUST_BE_EMPTY",
		2018: "ERROR_CODE_SUBJECT_RELATION_CANNOT_BE_EMPTY",
		2019: "ERROR_CODE_SCHEMA_MUST_HAVE_USER_ENTITY_DEFINITION",
		2020: "ERROR_CODE_UNIQUE_CONSTRAINT",
		4000: "ERROR_CODE_NOT_FOUND",
		4001: "ERROR_CODE_ENTITY_TYPE_NOT_FOUND",
		4002: "ERROR_CODE_ACTION_NOT_FOUND",
		4003: "ERROR_CODE_SCHEMA_NOT_FOUND",
		4004: "ERROR_CODE_SUBJECT_TYPE_NOT_FOUND",
		4005: "ERROR_CODE_ENTITY_DEFINITION_NOT_FOUND",
		4006: "ERROR_CODE_ACTION_DEFINITION_NOT_FOUND",
		4007: "ERROR_CODE_RELATION_DEFINITION_NOT_FOUND",
		4008: "ERROR_CODE_RECORD_NOT_FOUND",
		4009: "ERROR_CODE_TENANT_NOT_FOUND",
		4010: "ERROR_CODE_INVALID_CONTINUOUS_TOKEN",
		5000: "ERROR_CODE_INTERNAL",
		5001: "ERROR_CODE_CANCELLED",
		5002: "ERROR_CODE_SQL_BUILDER",
		5003: "ERROR_CODE_CIRCUIT_BREAKER",
		5005: "ERROR_CODE_EXECUTION",
		5006: "ERROR_CODE_SCAN",
		5007: "ERROR_CODE_MIGRATION",
		5008: "ERROR_CODE_TYPE_CONVERSATION",
		5009: "ERROR_CODE_ERROR_MAX_RETRIES",
		5010: "ERROR_CODE_ROLLBACK",
	}
	ErrorCode_value = map[string]int32{
		"ERROR_CODE_UNSPECIFIED":                                       0,
		"ERROR_CODE_MISSING_BEARER_TOKEN":                              1001,
		"ERROR_CODE_UNAUTHENTICATED":                                   1002,
		"ERROR_CODE_MISSING_TENANT_ID":                                 1003,
		"ERROR_CODE_VALIDATION":                                        2000,
		"ERROR_CODE_UNDEFINED_CHILD_TYPE":                              2002,
		"ERROR_CODE_UNDEFINED_CHILD_KIND":                              2003,
		"ERROR_CODE_UNDEFINED_RELATION_REFERENCE":                      2006,
		"ERROR_CODE_NOT_SUPPORTED_RELATION_WALK":                       2007,
		"ERROR_CODE_ENTITY_AND_SUBJECT_CANNOT_BE_EQUAL":                2008,
		"ERROR_CODE_DEPTH_NOT_ENOUGH":                                  2009,
		"ERROR_CODE_RELATION_REFERENCE_NOT_FOUND_IN_ENTITY_REFERENCES": 2010,
		"ERROR_CODE_RELATION_REFERENCE_MUST_HAVE_ONE_ENTITY_REFERENCE": 2011,
		"ERROR_CODE_DUPLICATED_ENTITY_REFERENCE":                       2012,
		"ERROR_CODE_DUPLICATED_RELATION_REFERENCE":                     2013,
		"ERROR_CODE_DUPLICATED_ACTION_REFERENCE":                       2014,
		"ERROR_CODE_SCHEMA_PARSE":                                      2015,
		"ERROR_CODE_SCHEMA_COMPILE":                                    2016,
		"ERROR_CODE_SUBJECT_RELATION_MUST_BE_EMPTY":                    2017,
		"ERROR_CODE_SUBJECT_RELATION_CANNOT_BE_EMPTY":                  2018,
		"ERROR_CODE_SCHEMA_MUST_HAVE_USER_ENTITY_DEFINITION":           2019,
		"ERROR_CODE_UNIQUE_CONSTRAINT":                                 2020,
		"ERROR_CODE_NOT_FOUND":                                         4000,
		"ERROR_CODE_ENTITY_TYPE_NOT_FOUND":                             4001,
		"ERROR_CODE_ACTION_NOT_FOUND":                                  4002,
		"ERROR_CODE_SCHEMA_NOT_FOUND":                                  4003,
		"ERROR_CODE_SUBJECT_TYPE_NOT_FOUND":                            4004,
		"ERROR_CODE_ENTITY_DEFINITION_NOT_FOUND":                       4005,
		"ERROR_CODE_ACTION_DEFINITION_NOT_FOUND":                       4006,
		"ERROR_CODE_RELATION_DEFINITION_NOT_FOUND":                     4007,
		"ERROR_CODE_RECORD_NOT_FOUND":                                  4008,
		"ERROR_CODE_TENANT_NOT_FOUND":                                  4009,
		"ERROR_CODE_INVALID_CONTINUOUS_TOKEN":                          4010,
		"ERROR_CODE_INTERNAL":                                          5000,
		"ERROR_CODE_CANCELLED":                                         5001,
		"ERROR_CODE_SQL_BUILDER":                                       5002,
		"ERROR_CODE_CIRCUIT_BREAKER":                                   5003,
		"ERROR_CODE_EXECUTION":                                         5005,
		"ERROR_CODE_SCAN":                                              5006,
		"ERROR_CODE_MIGRATION":                                         5007,
		"ERROR_CODE_TYPE_CONVERSATION":                                 5008,
		"ERROR_CODE_ERROR_MAX_RETRIES":                                 5009,
		"ERROR_CODE_ROLLBACK":                                          5010,
	}
)

Enum value maps for ErrorCode.

View Source
var (
	Rewrite_Operation_name = map[int32]string{
		0: "OPERATION_UNSPECIFIED",
		1: "OPERATION_UNION",
		2: "OPERATION_INTERSECTION",
	}
	Rewrite_Operation_value = map[string]int32{
		"OPERATION_UNSPECIFIED":  0,
		"OPERATION_UNION":        1,
		"OPERATION_INTERSECTION": 2,
	}
)

Enum value maps for Rewrite_Operation.

View Source
var (
	EntityDefinition_RelationalReference_name = map[int32]string{
		0: "RELATIONAL_REFERENCE_UNSPECIFIED",
		1: "RELATIONAL_REFERENCE_RELATION",
		2: "RELATIONAL_REFERENCE_ACTION",
	}
	EntityDefinition_RelationalReference_value = map[string]int32{
		"RELATIONAL_REFERENCE_UNSPECIFIED": 0,
		"RELATIONAL_REFERENCE_RELATION":    1,
		"RELATIONAL_REFERENCE_ACTION":      2,
	}
)

Enum value maps for EntityDefinition_RelationalReference.

View Source
var (
	PermissionCheckResponse_Result_name = map[int32]string{
		0: "RESULT_UNKNOWN",
		1: "RESULT_ALLOWED",
		2: "RESULT_DENIED",
	}
	PermissionCheckResponse_Result_value = map[string]int32{
		"RESULT_UNKNOWN": 0,
		"RESULT_ALLOWED": 1,
		"RESULT_DENIED":  2,
	}
)

Enum value maps for PermissionCheckResponse_Result.

View Source
var (
	ExpandTreeNode_Operation_name = map[int32]string{
		0: "OPERATION_UNSPECIFIED",
		1: "OPERATION_UNION",
		2: "OPERATION_INTERSECTION",
	}
	ExpandTreeNode_Operation_value = map[string]int32{
		"OPERATION_UNSPECIFIED":  0,
		"OPERATION_UNION":        1,
		"OPERATION_INTERSECTION": 2,
	}
)

Enum value maps for ExpandTreeNode_Operation.

View Source
var File_base_v1_errors_proto protoreflect.FileDescriptor
View Source
var File_base_v1_openapi_proto protoreflect.FileDescriptor
View Source
var File_base_v1_schema_proto protoreflect.FileDescriptor
View Source
var File_base_v1_service_proto protoreflect.FileDescriptor
View Source
var File_base_v1_tuple_proto protoreflect.FileDescriptor
View Source
var Permission_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "base.v1.Permission",
	HandlerType: (*PermissionServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Check",
			Handler:    _Permission_Check_Handler,
		},
		{
			MethodName: "Expand",
			Handler:    _Permission_Expand_Handler,
		},
		{
			MethodName: "LookupSchema",
			Handler:    _Permission_LookupSchema_Handler,
		},
		{
			MethodName: "LookupEntity",
			Handler:    _Permission_LookupEntity_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "LookupEntityStream",
			Handler:       _Permission_LookupEntityStream_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "base/v1/service.proto",
}

Permission_ServiceDesc is the grpc.ServiceDesc for Permission service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var Relationship_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "base.v1.Relationship",
	HandlerType: (*RelationshipServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Write",
			Handler:    _Relationship_Write_Handler,
		},
		{
			MethodName: "Read",
			Handler:    _Relationship_Read_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _Relationship_Delete_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "base/v1/service.proto",
}

Relationship_ServiceDesc is the grpc.ServiceDesc for Relationship service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var Schema_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "base.v1.Schema",
	HandlerType: (*SchemaServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Write",
			Handler:    _Schema_Write_Handler,
		},
		{
			MethodName: "Read",
			Handler:    _Schema_Read_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "base/v1/service.proto",
}

Schema_ServiceDesc is the grpc.ServiceDesc for Schema service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var Tenancy_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "base.v1.Tenancy",
	HandlerType: (*TenancyServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Create",
			Handler:    _Tenancy_Create_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _Tenancy_Delete_Handler,
		},
		{
			MethodName: "List",
			Handler:    _Tenancy_List_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "base/v1/service.proto",
}

Tenancy_ServiceDesc is the grpc.ServiceDesc for Tenancy service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var Welcome_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "base.v1.Welcome",
	HandlerType: (*WelcomeServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Hello",
			Handler:    _Welcome_Hello_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "base/v1/service.proto",
}

Welcome_ServiceDesc is the grpc.ServiceDesc for Welcome service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterPermissionHandler

func RegisterPermissionHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterPermissionHandler registers the http handlers for service Permission to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterPermissionHandlerClient

func RegisterPermissionHandlerClient(ctx context.Context, mux *runtime.ServeMux, client PermissionClient) error

RegisterPermissionHandlerClient registers the http handlers for service Permission to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "PermissionClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "PermissionClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "PermissionClient" to call the correct interceptors.

func RegisterPermissionHandlerFromEndpoint

func RegisterPermissionHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterPermissionHandlerFromEndpoint is same as RegisterPermissionHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterPermissionHandlerServer

func RegisterPermissionHandlerServer(ctx context.Context, mux *runtime.ServeMux, server PermissionServer) error

RegisterPermissionHandlerServer registers the http handlers for service Permission to "mux". UnaryRPC :call PermissionServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterPermissionHandlerFromEndpoint instead.

func RegisterPermissionServer

func RegisterPermissionServer(s grpc.ServiceRegistrar, srv PermissionServer)

func RegisterRelationshipHandler

func RegisterRelationshipHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterRelationshipHandler registers the http handlers for service Relationship to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterRelationshipHandlerClient

func RegisterRelationshipHandlerClient(ctx context.Context, mux *runtime.ServeMux, client RelationshipClient) error

RegisterRelationshipHandlerClient registers the http handlers for service Relationship to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "RelationshipClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "RelationshipClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "RelationshipClient" to call the correct interceptors.

func RegisterRelationshipHandlerFromEndpoint

func RegisterRelationshipHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterRelationshipHandlerFromEndpoint is same as RegisterRelationshipHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterRelationshipHandlerServer

func RegisterRelationshipHandlerServer(ctx context.Context, mux *runtime.ServeMux, server RelationshipServer) error

RegisterRelationshipHandlerServer registers the http handlers for service Relationship to "mux". UnaryRPC :call RelationshipServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterRelationshipHandlerFromEndpoint instead.

func RegisterRelationshipServer

func RegisterRelationshipServer(s grpc.ServiceRegistrar, srv RelationshipServer)

func RegisterSchemaHandler

func RegisterSchemaHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterSchemaHandler registers the http handlers for service Schema to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterSchemaHandlerClient

func RegisterSchemaHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SchemaClient) error

RegisterSchemaHandlerClient registers the http handlers for service Schema to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "SchemaClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "SchemaClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "SchemaClient" to call the correct interceptors.

func RegisterSchemaHandlerFromEndpoint

func RegisterSchemaHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterSchemaHandlerFromEndpoint is same as RegisterSchemaHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterSchemaHandlerServer

func RegisterSchemaHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SchemaServer) error

RegisterSchemaHandlerServer registers the http handlers for service Schema to "mux". UnaryRPC :call SchemaServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterSchemaHandlerFromEndpoint instead.

func RegisterSchemaServer

func RegisterSchemaServer(s grpc.ServiceRegistrar, srv SchemaServer)

func RegisterTenancyHandler

func RegisterTenancyHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterTenancyHandler registers the http handlers for service Tenancy to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterTenancyHandlerClient

func RegisterTenancyHandlerClient(ctx context.Context, mux *runtime.ServeMux, client TenancyClient) error

RegisterTenancyHandlerClient registers the http handlers for service Tenancy to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "TenancyClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "TenancyClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "TenancyClient" to call the correct interceptors.

func RegisterTenancyHandlerFromEndpoint

func RegisterTenancyHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterTenancyHandlerFromEndpoint is same as RegisterTenancyHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterTenancyHandlerServer

func RegisterTenancyHandlerServer(ctx context.Context, mux *runtime.ServeMux, server TenancyServer) error

RegisterTenancyHandlerServer registers the http handlers for service Tenancy to "mux". UnaryRPC :call TenancyServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterTenancyHandlerFromEndpoint instead.

func RegisterTenancyServer

func RegisterTenancyServer(s grpc.ServiceRegistrar, srv TenancyServer)

func RegisterWelcomeHandler

func RegisterWelcomeHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterWelcomeHandler registers the http handlers for service Welcome to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterWelcomeHandlerClient

func RegisterWelcomeHandlerClient(ctx context.Context, mux *runtime.ServeMux, client WelcomeClient) error

RegisterWelcomeHandlerClient registers the http handlers for service Welcome to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "WelcomeClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "WelcomeClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "WelcomeClient" to call the correct interceptors.

func RegisterWelcomeHandlerFromEndpoint

func RegisterWelcomeHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterWelcomeHandlerFromEndpoint is same as RegisterWelcomeHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterWelcomeHandlerServer

func RegisterWelcomeHandlerServer(ctx context.Context, mux *runtime.ServeMux, server WelcomeServer) error

RegisterWelcomeHandlerServer registers the http handlers for service Welcome to "mux". UnaryRPC :call WelcomeServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterWelcomeHandlerFromEndpoint instead.

func RegisterWelcomeServer

func RegisterWelcomeServer(s grpc.ServiceRegistrar, srv WelcomeServer)

Types

type ActionDefinition

type ActionDefinition struct {
	Name  string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Child *Child `protobuf:"bytes,2,opt,name=child,proto3" json:"child,omitempty"`
	// contains filtered or unexported fields
}

ActionDefinition

func (*ActionDefinition) Descriptor deprecated

func (*ActionDefinition) Descriptor() ([]byte, []int)

Deprecated: Use ActionDefinition.ProtoReflect.Descriptor instead.

func (*ActionDefinition) GetChild

func (x *ActionDefinition) GetChild() *Child

func (*ActionDefinition) GetName

func (x *ActionDefinition) GetName() string

func (*ActionDefinition) ProtoMessage

func (*ActionDefinition) ProtoMessage()

func (*ActionDefinition) ProtoReflect

func (x *ActionDefinition) ProtoReflect() protoreflect.Message

func (*ActionDefinition) Reset

func (x *ActionDefinition) Reset()

func (*ActionDefinition) String

func (x *ActionDefinition) String() string

func (*ActionDefinition) Validate

func (m *ActionDefinition) Validate() error

Validate checks the field values on ActionDefinition with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ActionDefinition) ValidateAll

func (m *ActionDefinition) ValidateAll() error

ValidateAll checks the field values on ActionDefinition with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ActionDefinitionMultiError, or nil if none found.

type ActionDefinitionMultiError

type ActionDefinitionMultiError []error

ActionDefinitionMultiError is an error wrapping multiple validation errors returned by ActionDefinition.ValidateAll() if the designated constraints aren't met.

func (ActionDefinitionMultiError) AllErrors

func (m ActionDefinitionMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ActionDefinitionMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ActionDefinitionValidationError

type ActionDefinitionValidationError struct {
	// contains filtered or unexported fields
}

ActionDefinitionValidationError is the validation error returned by ActionDefinition.Validate if the designated constraints aren't met.

func (ActionDefinitionValidationError) Cause

Cause function returns cause value.

func (ActionDefinitionValidationError) Error

Error satisfies the builtin error interface

func (ActionDefinitionValidationError) ErrorName

ErrorName returns error name.

func (ActionDefinitionValidationError) Field

Field function returns field value.

func (ActionDefinitionValidationError) Key

Key function returns key value.

func (ActionDefinitionValidationError) Reason

Reason function returns reason value.

type Child

type Child struct {

	// Types that are assignable to Type:
	//	*Child_Leaf
	//	*Child_Rewrite
	Type isChild_Type `protobuf_oneof:"type"`
	// contains filtered or unexported fields
}

Child

func (*Child) Descriptor deprecated

func (*Child) Descriptor() ([]byte, []int)

Deprecated: Use Child.ProtoReflect.Descriptor instead.

func (*Child) GetLeaf

func (x *Child) GetLeaf() *Leaf

func (*Child) GetRewrite

func (x *Child) GetRewrite() *Rewrite

func (*Child) GetType

func (m *Child) GetType() isChild_Type

func (*Child) ProtoMessage

func (*Child) ProtoMessage()

func (*Child) ProtoReflect

func (x *Child) ProtoReflect() protoreflect.Message

func (*Child) Reset

func (x *Child) Reset()

func (*Child) String

func (x *Child) String() string

func (*Child) Validate

func (m *Child) Validate() error

Validate checks the field values on Child with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Child) ValidateAll

func (m *Child) ValidateAll() error

ValidateAll checks the field values on Child with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ChildMultiError, or nil if none found.

type ChildMultiError

type ChildMultiError []error

ChildMultiError is an error wrapping multiple validation errors returned by Child.ValidateAll() if the designated constraints aren't met.

func (ChildMultiError) AllErrors

func (m ChildMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ChildMultiError) Error

func (m ChildMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ChildValidationError

type ChildValidationError struct {
	// contains filtered or unexported fields
}

ChildValidationError is the validation error returned by Child.Validate if the designated constraints aren't met.

func (ChildValidationError) Cause

func (e ChildValidationError) Cause() error

Cause function returns cause value.

func (ChildValidationError) Error

func (e ChildValidationError) Error() string

Error satisfies the builtin error interface

func (ChildValidationError) ErrorName

func (e ChildValidationError) ErrorName() string

ErrorName returns error name.

func (ChildValidationError) Field

func (e ChildValidationError) Field() string

Field function returns field value.

func (ChildValidationError) Key

func (e ChildValidationError) Key() bool

Key function returns key value.

func (ChildValidationError) Reason

func (e ChildValidationError) Reason() string

Reason function returns reason value.

type Child_Leaf

type Child_Leaf struct {
	Leaf *Leaf `protobuf:"bytes,1,opt,name=leaf,proto3,oneof"`
}

type Child_Rewrite

type Child_Rewrite struct {
	Rewrite *Rewrite `protobuf:"bytes,2,opt,name=rewrite,proto3,oneof"`
}

type ComputedUserSet

type ComputedUserSet struct {
	Relation string `protobuf:"bytes,1,opt,name=relation,proto3" json:"relation,omitempty"`
	// contains filtered or unexported fields
}

ComputedUserSet

func (*ComputedUserSet) Descriptor deprecated

func (*ComputedUserSet) Descriptor() ([]byte, []int)

Deprecated: Use ComputedUserSet.ProtoReflect.Descriptor instead.

func (*ComputedUserSet) GetRelation

func (x *ComputedUserSet) GetRelation() string

func (*ComputedUserSet) ProtoMessage

func (*ComputedUserSet) ProtoMessage()

func (*ComputedUserSet) ProtoReflect

func (x *ComputedUserSet) ProtoReflect() protoreflect.Message

func (*ComputedUserSet) Reset

func (x *ComputedUserSet) Reset()

func (*ComputedUserSet) String

func (x *ComputedUserSet) String() string

func (*ComputedUserSet) Validate

func (m *ComputedUserSet) Validate() error

Validate checks the field values on ComputedUserSet with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ComputedUserSet) ValidateAll

func (m *ComputedUserSet) ValidateAll() error

ValidateAll checks the field values on ComputedUserSet with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ComputedUserSetMultiError, or nil if none found.

type ComputedUserSetMultiError

type ComputedUserSetMultiError []error

ComputedUserSetMultiError is an error wrapping multiple validation errors returned by ComputedUserSet.ValidateAll() if the designated constraints aren't met.

func (ComputedUserSetMultiError) AllErrors

func (m ComputedUserSetMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ComputedUserSetMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ComputedUserSetValidationError

type ComputedUserSetValidationError struct {
	// contains filtered or unexported fields
}

ComputedUserSetValidationError is the validation error returned by ComputedUserSet.Validate if the designated constraints aren't met.

func (ComputedUserSetValidationError) Cause

Cause function returns cause value.

func (ComputedUserSetValidationError) Error

Error satisfies the builtin error interface

func (ComputedUserSetValidationError) ErrorName

func (e ComputedUserSetValidationError) ErrorName() string

ErrorName returns error name.

func (ComputedUserSetValidationError) Field

Field function returns field value.

func (ComputedUserSetValidationError) Key

Key function returns key value.

func (ComputedUserSetValidationError) Reason

Reason function returns reason value.

type Entity

type Entity struct {
	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Id   string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

Entity

func (*Entity) Descriptor deprecated

func (*Entity) Descriptor() ([]byte, []int)

Deprecated: Use Entity.ProtoReflect.Descriptor instead.

func (*Entity) GetId

func (x *Entity) GetId() string

func (*Entity) GetType

func (x *Entity) GetType() string

func (*Entity) ProtoMessage

func (*Entity) ProtoMessage()

func (*Entity) ProtoReflect

func (x *Entity) ProtoReflect() protoreflect.Message

func (*Entity) Reset

func (x *Entity) Reset()

func (*Entity) String

func (x *Entity) String() string

func (*Entity) Validate

func (m *Entity) Validate() error

Validate checks the field values on Entity with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Entity) ValidateAll

func (m *Entity) ValidateAll() error

ValidateAll checks the field values on Entity with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in EntityMultiError, or nil if none found.

type EntityAndRelation

type EntityAndRelation struct {
	Entity   *Entity `protobuf:"bytes,1,opt,name=entity,proto3" json:"entity,omitempty"`
	Relation string  `protobuf:"bytes,2,opt,name=relation,proto3" json:"relation,omitempty"`
	// contains filtered or unexported fields
}

func (*EntityAndRelation) Descriptor deprecated

func (*EntityAndRelation) Descriptor() ([]byte, []int)

Deprecated: Use EntityAndRelation.ProtoReflect.Descriptor instead.

func (*EntityAndRelation) GetEntity

func (x *EntityAndRelation) GetEntity() *Entity

func (*EntityAndRelation) GetRelation

func (x *EntityAndRelation) GetRelation() string

func (*EntityAndRelation) ProtoMessage

func (*EntityAndRelation) ProtoMessage()

func (*EntityAndRelation) ProtoReflect

func (x *EntityAndRelation) ProtoReflect() protoreflect.Message

func (*EntityAndRelation) Reset

func (x *EntityAndRelation) Reset()

func (*EntityAndRelation) String

func (x *EntityAndRelation) String() string

func (*EntityAndRelation) Validate

func (m *EntityAndRelation) Validate() error

Validate checks the field values on EntityAndRelation with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*EntityAndRelation) ValidateAll

func (m *EntityAndRelation) ValidateAll() error

ValidateAll checks the field values on EntityAndRelation with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in EntityAndRelationMultiError, or nil if none found.

type EntityAndRelationFilter

type EntityAndRelationFilter struct {
	Entity   *EntityFilter `protobuf:"bytes,1,opt,name=entity,proto3" json:"entity,omitempty"`
	Relation string        `protobuf:"bytes,2,opt,name=relation,proto3" json:"relation,omitempty"`
	// contains filtered or unexported fields
}

EntityAndRelationFilter is used to filter entities and relations

func (*EntityAndRelationFilter) Descriptor deprecated

func (*EntityAndRelationFilter) Descriptor() ([]byte, []int)

Deprecated: Use EntityAndRelationFilter.ProtoReflect.Descriptor instead.

func (*EntityAndRelationFilter) GetEntity

func (x *EntityAndRelationFilter) GetEntity() *EntityFilter

func (*EntityAndRelationFilter) GetRelation

func (x *EntityAndRelationFilter) GetRelation() string

func (*EntityAndRelationFilter) ProtoMessage

func (*EntityAndRelationFilter) ProtoMessage()

func (*EntityAndRelationFilter) ProtoReflect

func (x *EntityAndRelationFilter) ProtoReflect() protoreflect.Message

func (*EntityAndRelationFilter) Reset

func (x *EntityAndRelationFilter) Reset()

func (*EntityAndRelationFilter) String

func (x *EntityAndRelationFilter) String() string

func (*EntityAndRelationFilter) Validate

func (m *EntityAndRelationFilter) Validate() error

Validate checks the field values on EntityAndRelationFilter 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 (*EntityAndRelationFilter) ValidateAll

func (m *EntityAndRelationFilter) ValidateAll() error

ValidateAll checks the field values on EntityAndRelationFilter 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 EntityAndRelationFilterMultiError, or nil if none found.

type EntityAndRelationFilterMultiError

type EntityAndRelationFilterMultiError []error

EntityAndRelationFilterMultiError is an error wrapping multiple validation errors returned by EntityAndRelationFilter.ValidateAll() if the designated constraints aren't met.

func (EntityAndRelationFilterMultiError) AllErrors

func (m EntityAndRelationFilterMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (EntityAndRelationFilterMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type EntityAndRelationFilterValidationError

type EntityAndRelationFilterValidationError struct {
	// contains filtered or unexported fields
}

EntityAndRelationFilterValidationError is the validation error returned by EntityAndRelationFilter.Validate if the designated constraints aren't met.

func (EntityAndRelationFilterValidationError) Cause

Cause function returns cause value.

func (EntityAndRelationFilterValidationError) Error

Error satisfies the builtin error interface

func (EntityAndRelationFilterValidationError) ErrorName

ErrorName returns error name.

func (EntityAndRelationFilterValidationError) Field

Field function returns field value.

func (EntityAndRelationFilterValidationError) Key

Key function returns key value.

func (EntityAndRelationFilterValidationError) Reason

Reason function returns reason value.

type EntityAndRelationMultiError

type EntityAndRelationMultiError []error

EntityAndRelationMultiError is an error wrapping multiple validation errors returned by EntityAndRelation.ValidateAll() if the designated constraints aren't met.

func (EntityAndRelationMultiError) AllErrors

func (m EntityAndRelationMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (EntityAndRelationMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type EntityAndRelationValidationError

type EntityAndRelationValidationError struct {
	// contains filtered or unexported fields
}

EntityAndRelationValidationError is the validation error returned by EntityAndRelation.Validate if the designated constraints aren't met.

func (EntityAndRelationValidationError) Cause

Cause function returns cause value.

func (EntityAndRelationValidationError) Error

Error satisfies the builtin error interface

func (EntityAndRelationValidationError) ErrorName

ErrorName returns error name.

func (EntityAndRelationValidationError) Field

Field function returns field value.

func (EntityAndRelationValidationError) Key

Key function returns key value.

func (EntityAndRelationValidationError) Reason

Reason function returns reason value.

type EntityDefinition

type EntityDefinition struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// ["relation_name"] => RelationDefinition
	Relations map[string]*RelationDefinition `` /* 159-byte string literal not displayed */
	// ["action_name"] => ActionDefinition
	Actions map[string]*ActionDefinition `` /* 155-byte string literal not displayed */
	// ["relation_name or action_name"] => RelationalReference
	References map[string]EntityDefinition_RelationalReference `` /* 212-byte string literal not displayed */
	// contains filtered or unexported fields
}

EntityDefinition

func (*EntityDefinition) Descriptor deprecated

func (*EntityDefinition) Descriptor() ([]byte, []int)

Deprecated: Use EntityDefinition.ProtoReflect.Descriptor instead.

func (*EntityDefinition) GetActions

func (x *EntityDefinition) GetActions() map[string]*ActionDefinition

func (*EntityDefinition) GetName

func (x *EntityDefinition) GetName() string

func (*EntityDefinition) GetReferences

func (*EntityDefinition) GetRelations

func (x *EntityDefinition) GetRelations() map[string]*RelationDefinition

func (*EntityDefinition) ProtoMessage

func (*EntityDefinition) ProtoMessage()

func (*EntityDefinition) ProtoReflect

func (x *EntityDefinition) ProtoReflect() protoreflect.Message

func (*EntityDefinition) Reset

func (x *EntityDefinition) Reset()

func (*EntityDefinition) String

func (x *EntityDefinition) String() string

func (*EntityDefinition) Validate

func (m *EntityDefinition) Validate() error

Validate checks the field values on EntityDefinition with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*EntityDefinition) ValidateAll

func (m *EntityDefinition) ValidateAll() error

ValidateAll checks the field values on EntityDefinition with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in EntityDefinitionMultiError, or nil if none found.

type EntityDefinitionMultiError

type EntityDefinitionMultiError []error

EntityDefinitionMultiError is an error wrapping multiple validation errors returned by EntityDefinition.ValidateAll() if the designated constraints aren't met.

func (EntityDefinitionMultiError) AllErrors

func (m EntityDefinitionMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (EntityDefinitionMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type EntityDefinitionValidationError

type EntityDefinitionValidationError struct {
	// contains filtered or unexported fields
}

EntityDefinitionValidationError is the validation error returned by EntityDefinition.Validate if the designated constraints aren't met.

func (EntityDefinitionValidationError) Cause

Cause function returns cause value.

func (EntityDefinitionValidationError) Error

Error satisfies the builtin error interface

func (EntityDefinitionValidationError) ErrorName

ErrorName returns error name.

func (EntityDefinitionValidationError) Field

Field function returns field value.

func (EntityDefinitionValidationError) Key

Key function returns key value.

func (EntityDefinitionValidationError) Reason

Reason function returns reason value.

type EntityDefinition_RelationalReference

type EntityDefinition_RelationalReference int32

RelationalReference

const (
	EntityDefinition_RELATIONAL_REFERENCE_UNSPECIFIED EntityDefinition_RelationalReference = 0
	EntityDefinition_RELATIONAL_REFERENCE_RELATION    EntityDefinition_RelationalReference = 1
	EntityDefinition_RELATIONAL_REFERENCE_ACTION      EntityDefinition_RelationalReference = 2
)

func (EntityDefinition_RelationalReference) Descriptor

func (EntityDefinition_RelationalReference) Enum

func (EntityDefinition_RelationalReference) EnumDescriptor deprecated

func (EntityDefinition_RelationalReference) EnumDescriptor() ([]byte, []int)

Deprecated: Use EntityDefinition_RelationalReference.Descriptor instead.

func (EntityDefinition_RelationalReference) Number

func (EntityDefinition_RelationalReference) String

func (EntityDefinition_RelationalReference) Type

type EntityFilter

type EntityFilter struct {
	Type string   `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Ids  []string `protobuf:"bytes,2,rep,name=ids,proto3" json:"ids,omitempty"`
	// contains filtered or unexported fields
}

EntityFilter is used to filter entities

func (*EntityFilter) Descriptor deprecated

func (*EntityFilter) Descriptor() ([]byte, []int)

Deprecated: Use EntityFilter.ProtoReflect.Descriptor instead.

func (*EntityFilter) GetIds

func (x *EntityFilter) GetIds() []string

func (*EntityFilter) GetType

func (x *EntityFilter) GetType() string

func (*EntityFilter) ProtoMessage

func (*EntityFilter) ProtoMessage()

func (*EntityFilter) ProtoReflect

func (x *EntityFilter) ProtoReflect() protoreflect.Message

func (*EntityFilter) Reset

func (x *EntityFilter) Reset()

func (*EntityFilter) String

func (x *EntityFilter) String() string

func (*EntityFilter) Validate

func (m *EntityFilter) Validate() error

Validate checks the field values on EntityFilter with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*EntityFilter) ValidateAll

func (m *EntityFilter) ValidateAll() error

ValidateAll checks the field values on EntityFilter with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in EntityFilterMultiError, or nil if none found.

type EntityFilterMultiError

type EntityFilterMultiError []error

EntityFilterMultiError is an error wrapping multiple validation errors returned by EntityFilter.ValidateAll() if the designated constraints aren't met.

func (EntityFilterMultiError) AllErrors

func (m EntityFilterMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (EntityFilterMultiError) Error

func (m EntityFilterMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type EntityFilterValidationError

type EntityFilterValidationError struct {
	// contains filtered or unexported fields
}

EntityFilterValidationError is the validation error returned by EntityFilter.Validate if the designated constraints aren't met.

func (EntityFilterValidationError) Cause

Cause function returns cause value.

func (EntityFilterValidationError) Error

Error satisfies the builtin error interface

func (EntityFilterValidationError) ErrorName

func (e EntityFilterValidationError) ErrorName() string

ErrorName returns error name.

func (EntityFilterValidationError) Field

Field function returns field value.

func (EntityFilterValidationError) Key

Key function returns key value.

func (EntityFilterValidationError) Reason

Reason function returns reason value.

type EntityMultiError

type EntityMultiError []error

EntityMultiError is an error wrapping multiple validation errors returned by Entity.ValidateAll() if the designated constraints aren't met.

func (EntityMultiError) AllErrors

func (m EntityMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (EntityMultiError) Error

func (m EntityMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type EntityValidationError

type EntityValidationError struct {
	// contains filtered or unexported fields
}

EntityValidationError is the validation error returned by Entity.Validate if the designated constraints aren't met.

func (EntityValidationError) Cause

func (e EntityValidationError) Cause() error

Cause function returns cause value.

func (EntityValidationError) Error

func (e EntityValidationError) Error() string

Error satisfies the builtin error interface

func (EntityValidationError) ErrorName

func (e EntityValidationError) ErrorName() string

ErrorName returns error name.

func (EntityValidationError) Field

func (e EntityValidationError) Field() string

Field function returns field value.

func (EntityValidationError) Key

func (e EntityValidationError) Key() bool

Key function returns key value.

func (EntityValidationError) Reason

func (e EntityValidationError) Reason() string

Reason function returns reason value.

type ErrorCode

type ErrorCode int32
const (
	ErrorCode_ERROR_CODE_UNSPECIFIED ErrorCode = 0
	// authn
	ErrorCode_ERROR_CODE_MISSING_BEARER_TOKEN ErrorCode = 1001
	ErrorCode_ERROR_CODE_UNAUTHENTICATED      ErrorCode = 1002
	ErrorCode_ERROR_CODE_MISSING_TENANT_ID    ErrorCode = 1003
	// validation
	ErrorCode_ERROR_CODE_VALIDATION                                        ErrorCode = 2000
	ErrorCode_ERROR_CODE_UNDEFINED_CHILD_TYPE                              ErrorCode = 2002
	ErrorCode_ERROR_CODE_UNDEFINED_CHILD_KIND                              ErrorCode = 2003
	ErrorCode_ERROR_CODE_UNDEFINED_RELATION_REFERENCE                      ErrorCode = 2006
	ErrorCode_ERROR_CODE_NOT_SUPPORTED_RELATION_WALK                       ErrorCode = 2007
	ErrorCode_ERROR_CODE_ENTITY_AND_SUBJECT_CANNOT_BE_EQUAL                ErrorCode = 2008
	ErrorCode_ERROR_CODE_DEPTH_NOT_ENOUGH                                  ErrorCode = 2009
	ErrorCode_ERROR_CODE_RELATION_REFERENCE_NOT_FOUND_IN_ENTITY_REFERENCES ErrorCode = 2010
	ErrorCode_ERROR_CODE_RELATION_REFERENCE_MUST_HAVE_ONE_ENTITY_REFERENCE ErrorCode = 2011
	ErrorCode_ERROR_CODE_DUPLICATED_ENTITY_REFERENCE                       ErrorCode = 2012
	ErrorCode_ERROR_CODE_DUPLICATED_RELATION_REFERENCE                     ErrorCode = 2013
	ErrorCode_ERROR_CODE_DUPLICATED_ACTION_REFERENCE                       ErrorCode = 2014
	ErrorCode_ERROR_CODE_SCHEMA_PARSE                                      ErrorCode = 2015
	ErrorCode_ERROR_CODE_SCHEMA_COMPILE                                    ErrorCode = 2016
	ErrorCode_ERROR_CODE_SUBJECT_RELATION_MUST_BE_EMPTY                    ErrorCode = 2017
	ErrorCode_ERROR_CODE_SUBJECT_RELATION_CANNOT_BE_EMPTY                  ErrorCode = 2018
	ErrorCode_ERROR_CODE_SCHEMA_MUST_HAVE_USER_ENTITY_DEFINITION           ErrorCode = 2019
	ErrorCode_ERROR_CODE_UNIQUE_CONSTRAINT                                 ErrorCode = 2020
	// not found
	ErrorCode_ERROR_CODE_NOT_FOUND                     ErrorCode = 4000
	ErrorCode_ERROR_CODE_ENTITY_TYPE_NOT_FOUND         ErrorCode = 4001
	ErrorCode_ERROR_CODE_ACTION_NOT_FOUND              ErrorCode = 4002
	ErrorCode_ERROR_CODE_SCHEMA_NOT_FOUND              ErrorCode = 4003
	ErrorCode_ERROR_CODE_SUBJECT_TYPE_NOT_FOUND        ErrorCode = 4004
	ErrorCode_ERROR_CODE_ENTITY_DEFINITION_NOT_FOUND   ErrorCode = 4005
	ErrorCode_ERROR_CODE_ACTION_DEFINITION_NOT_FOUND   ErrorCode = 4006
	ErrorCode_ERROR_CODE_RELATION_DEFINITION_NOT_FOUND ErrorCode = 4007
	ErrorCode_ERROR_CODE_RECORD_NOT_FOUND              ErrorCode = 4008
	ErrorCode_ERROR_CODE_TENANT_NOT_FOUND              ErrorCode = 4009
	ErrorCode_ERROR_CODE_INVALID_CONTINUOUS_TOKEN      ErrorCode = 4010
	// internal
	ErrorCode_ERROR_CODE_INTERNAL          ErrorCode = 5000
	ErrorCode_ERROR_CODE_CANCELLED         ErrorCode = 5001
	ErrorCode_ERROR_CODE_SQL_BUILDER       ErrorCode = 5002
	ErrorCode_ERROR_CODE_CIRCUIT_BREAKER   ErrorCode = 5003
	ErrorCode_ERROR_CODE_EXECUTION         ErrorCode = 5005
	ErrorCode_ERROR_CODE_SCAN              ErrorCode = 5006
	ErrorCode_ERROR_CODE_MIGRATION         ErrorCode = 5007
	ErrorCode_ERROR_CODE_TYPE_CONVERSATION ErrorCode = 5008
	ErrorCode_ERROR_CODE_ERROR_MAX_RETRIES ErrorCode = 5009
	ErrorCode_ERROR_CODE_ROLLBACK          ErrorCode = 5010
)

func (ErrorCode) Descriptor

func (ErrorCode) Descriptor() protoreflect.EnumDescriptor

func (ErrorCode) Enum

func (x ErrorCode) Enum() *ErrorCode

func (ErrorCode) EnumDescriptor deprecated

func (ErrorCode) EnumDescriptor() ([]byte, []int)

Deprecated: Use ErrorCode.Descriptor instead.

func (ErrorCode) Number

func (x ErrorCode) Number() protoreflect.EnumNumber

func (ErrorCode) String

func (x ErrorCode) String() string

func (ErrorCode) Type

type ErrorResponse

type ErrorResponse struct {
	Code    ErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=base.v1.ErrorCode" json:"code,omitempty"`
	Message string    `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

ErrorResponse

func (*ErrorResponse) Descriptor deprecated

func (*ErrorResponse) Descriptor() ([]byte, []int)

Deprecated: Use ErrorResponse.ProtoReflect.Descriptor instead.

func (*ErrorResponse) GetCode

func (x *ErrorResponse) GetCode() ErrorCode

func (*ErrorResponse) GetMessage

func (x *ErrorResponse) GetMessage() string

func (*ErrorResponse) ProtoMessage

func (*ErrorResponse) ProtoMessage()

func (*ErrorResponse) ProtoReflect

func (x *ErrorResponse) ProtoReflect() protoreflect.Message

func (*ErrorResponse) Reset

func (x *ErrorResponse) Reset()

func (*ErrorResponse) String

func (x *ErrorResponse) String() string

func (*ErrorResponse) Validate

func (m *ErrorResponse) Validate() error

Validate checks the field values on ErrorResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ErrorResponse) ValidateAll

func (m *ErrorResponse) ValidateAll() error

ValidateAll checks the field values on ErrorResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ErrorResponseMultiError, or nil if none found.

type ErrorResponseMultiError

type ErrorResponseMultiError []error

ErrorResponseMultiError is an error wrapping multiple validation errors returned by ErrorResponse.ValidateAll() if the designated constraints aren't met.

func (ErrorResponseMultiError) AllErrors

func (m ErrorResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ErrorResponseMultiError) Error

func (m ErrorResponseMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ErrorResponseValidationError

type ErrorResponseValidationError struct {
	// contains filtered or unexported fields
}

ErrorResponseValidationError is the validation error returned by ErrorResponse.Validate if the designated constraints aren't met.

func (ErrorResponseValidationError) Cause

Cause function returns cause value.

func (ErrorResponseValidationError) Error

Error satisfies the builtin error interface

func (ErrorResponseValidationError) ErrorName

func (e ErrorResponseValidationError) ErrorName() string

ErrorName returns error name.

func (ErrorResponseValidationError) Field

Field function returns field value.

func (ErrorResponseValidationError) Key

Key function returns key value.

func (ErrorResponseValidationError) Reason

Reason function returns reason value.

type Expand

type Expand struct {

	// Types that are assignable to Node:
	//	*Expand_Expand
	//	*Expand_Leaf
	Node isExpand_Node `protobuf_oneof:"node"`
	// contains filtered or unexported fields
}

Expand

func (*Expand) Descriptor deprecated

func (*Expand) Descriptor() ([]byte, []int)

Deprecated: Use Expand.ProtoReflect.Descriptor instead.

func (*Expand) GetExpand

func (x *Expand) GetExpand() *ExpandTreeNode

func (*Expand) GetLeaf

func (x *Expand) GetLeaf() *Result

func (*Expand) GetNode

func (m *Expand) GetNode() isExpand_Node

func (*Expand) ProtoMessage

func (*Expand) ProtoMessage()

func (*Expand) ProtoReflect

func (x *Expand) ProtoReflect() protoreflect.Message

func (*Expand) Reset

func (x *Expand) Reset()

func (*Expand) String

func (x *Expand) String() string

func (*Expand) Validate

func (m *Expand) Validate() error

Validate checks the field values on Expand with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Expand) ValidateAll

func (m *Expand) ValidateAll() error

ValidateAll checks the field values on Expand with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ExpandMultiError, or nil if none found.

type ExpandMultiError

type ExpandMultiError []error

ExpandMultiError is an error wrapping multiple validation errors returned by Expand.ValidateAll() if the designated constraints aren't met.

func (ExpandMultiError) AllErrors

func (m ExpandMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ExpandMultiError) Error

func (m ExpandMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ExpandTreeNode

type ExpandTreeNode struct {
	Operation ExpandTreeNode_Operation `protobuf:"varint,1,opt,name=operation,proto3,enum=base.v1.ExpandTreeNode_Operation" json:"operation,omitempty"`
	Children  []*Expand                `protobuf:"bytes,2,rep,name=children,proto3" json:"children,omitempty"`
	// contains filtered or unexported fields
}

ExpandTreeNode

func (*ExpandTreeNode) Descriptor deprecated

func (*ExpandTreeNode) Descriptor() ([]byte, []int)

Deprecated: Use ExpandTreeNode.ProtoReflect.Descriptor instead.

func (*ExpandTreeNode) GetChildren

func (x *ExpandTreeNode) GetChildren() []*Expand

func (*ExpandTreeNode) GetOperation

func (x *ExpandTreeNode) GetOperation() ExpandTreeNode_Operation

func (*ExpandTreeNode) ProtoMessage

func (*ExpandTreeNode) ProtoMessage()

func (*ExpandTreeNode) ProtoReflect

func (x *ExpandTreeNode) ProtoReflect() protoreflect.Message

func (*ExpandTreeNode) Reset

func (x *ExpandTreeNode) Reset()

func (*ExpandTreeNode) String

func (x *ExpandTreeNode) String() string

func (*ExpandTreeNode) Validate

func (m *ExpandTreeNode) Validate() error

Validate checks the field values on ExpandTreeNode with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ExpandTreeNode) ValidateAll

func (m *ExpandTreeNode) ValidateAll() error

ValidateAll checks the field values on ExpandTreeNode with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ExpandTreeNodeMultiError, or nil if none found.

type ExpandTreeNodeMultiError

type ExpandTreeNodeMultiError []error

ExpandTreeNodeMultiError is an error wrapping multiple validation errors returned by ExpandTreeNode.ValidateAll() if the designated constraints aren't met.

func (ExpandTreeNodeMultiError) AllErrors

func (m ExpandTreeNodeMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ExpandTreeNodeMultiError) Error

func (m ExpandTreeNodeMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ExpandTreeNodeValidationError

type ExpandTreeNodeValidationError struct {
	// contains filtered or unexported fields
}

ExpandTreeNodeValidationError is the validation error returned by ExpandTreeNode.Validate if the designated constraints aren't met.

func (ExpandTreeNodeValidationError) Cause

Cause function returns cause value.

func (ExpandTreeNodeValidationError) Error

Error satisfies the builtin error interface

func (ExpandTreeNodeValidationError) ErrorName

func (e ExpandTreeNodeValidationError) ErrorName() string

ErrorName returns error name.

func (ExpandTreeNodeValidationError) Field

Field function returns field value.

func (ExpandTreeNodeValidationError) Key

Key function returns key value.

func (ExpandTreeNodeValidationError) Reason

Reason function returns reason value.

type ExpandTreeNode_Operation

type ExpandTreeNode_Operation int32

Operation

const (
	ExpandTreeNode_OPERATION_UNSPECIFIED  ExpandTreeNode_Operation = 0
	ExpandTreeNode_OPERATION_UNION        ExpandTreeNode_Operation = 1
	ExpandTreeNode_OPERATION_INTERSECTION ExpandTreeNode_Operation = 2
)

func (ExpandTreeNode_Operation) Descriptor

func (ExpandTreeNode_Operation) Enum

func (ExpandTreeNode_Operation) EnumDescriptor deprecated

func (ExpandTreeNode_Operation) EnumDescriptor() ([]byte, []int)

Deprecated: Use ExpandTreeNode_Operation.Descriptor instead.

func (ExpandTreeNode_Operation) Number

func (ExpandTreeNode_Operation) String

func (x ExpandTreeNode_Operation) String() string

func (ExpandTreeNode_Operation) Type

type ExpandValidationError

type ExpandValidationError struct {
	// contains filtered or unexported fields
}

ExpandValidationError is the validation error returned by Expand.Validate if the designated constraints aren't met.

func (ExpandValidationError) Cause

func (e ExpandValidationError) Cause() error

Cause function returns cause value.

func (ExpandValidationError) Error

func (e ExpandValidationError) Error() string

Error satisfies the builtin error interface

func (ExpandValidationError) ErrorName

func (e ExpandValidationError) ErrorName() string

ErrorName returns error name.

func (ExpandValidationError) Field

func (e ExpandValidationError) Field() string

Field function returns field value.

func (ExpandValidationError) Key

func (e ExpandValidationError) Key() bool

Key function returns key value.

func (ExpandValidationError) Reason

func (e ExpandValidationError) Reason() string

Reason function returns reason value.

type Expand_Expand

type Expand_Expand struct {
	Expand *ExpandTreeNode `protobuf:"bytes,1,opt,name=expand,proto3,oneof"`
}

type Expand_Leaf

type Expand_Leaf struct {
	Leaf *Result `protobuf:"bytes,2,opt,name=leaf,proto3,oneof"`
}

type Leaf

type Leaf struct {
	Exclusion bool `protobuf:"varint,1,opt,name=exclusion,proto3" json:"exclusion,omitempty"`
	// Types that are assignable to Type:
	//	*Leaf_ComputedUserSet
	//	*Leaf_TupleToUserSet
	Type isLeaf_Type `protobuf_oneof:"type"`
	// contains filtered or unexported fields
}

Leaf

func (*Leaf) Descriptor deprecated

func (*Leaf) Descriptor() ([]byte, []int)

Deprecated: Use Leaf.ProtoReflect.Descriptor instead.

func (*Leaf) GetComputedUserSet

func (x *Leaf) GetComputedUserSet() *ComputedUserSet

func (*Leaf) GetExclusion

func (x *Leaf) GetExclusion() bool

func (*Leaf) GetTupleToUserSet

func (x *Leaf) GetTupleToUserSet() *TupleToUserSet

func (*Leaf) GetType

func (m *Leaf) GetType() isLeaf_Type

func (*Leaf) ProtoMessage

func (*Leaf) ProtoMessage()

func (*Leaf) ProtoReflect

func (x *Leaf) ProtoReflect() protoreflect.Message

func (*Leaf) Reset

func (x *Leaf) Reset()

func (*Leaf) String

func (x *Leaf) String() string

func (*Leaf) Validate

func (m *Leaf) Validate() error

Validate checks the field values on Leaf with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Leaf) ValidateAll

func (m *Leaf) ValidateAll() error

ValidateAll checks the field values on Leaf with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LeafMultiError, or nil if none found.

type LeafMultiError

type LeafMultiError []error

LeafMultiError is an error wrapping multiple validation errors returned by Leaf.ValidateAll() if the designated constraints aren't met.

func (LeafMultiError) AllErrors

func (m LeafMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (LeafMultiError) Error

func (m LeafMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type LeafValidationError

type LeafValidationError struct {
	// contains filtered or unexported fields
}

LeafValidationError is the validation error returned by Leaf.Validate if the designated constraints aren't met.

func (LeafValidationError) Cause

func (e LeafValidationError) Cause() error

Cause function returns cause value.

func (LeafValidationError) Error

func (e LeafValidationError) Error() string

Error satisfies the builtin error interface

func (LeafValidationError) ErrorName

func (e LeafValidationError) ErrorName() string

ErrorName returns error name.

func (LeafValidationError) Field

func (e LeafValidationError) Field() string

Field function returns field value.

func (LeafValidationError) Key

func (e LeafValidationError) Key() bool

Key function returns key value.

func (LeafValidationError) Reason

func (e LeafValidationError) Reason() string

Reason function returns reason value.

type Leaf_ComputedUserSet

type Leaf_ComputedUserSet struct {
	ComputedUserSet *ComputedUserSet `protobuf:"bytes,2,opt,name=computed_user_set,json=computedUserSet,proto3,oneof"`
}

type Leaf_TupleToUserSet

type Leaf_TupleToUserSet struct {
	TupleToUserSet *TupleToUserSet `protobuf:"bytes,3,opt,name=tuple_to_user_set,json=tupleToUserSet,proto3,oneof"`
}

type PermissionCheckRequest

type PermissionCheckRequest struct {
	TenantId string                          `protobuf:"bytes,1,opt,name=tenant_id,proto3" json:"tenant_id,omitempty"`
	Metadata *PermissionCheckRequestMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"`
	Entity   *Entity                         `protobuf:"bytes,3,opt,name=entity,proto3" json:"entity,omitempty"`
	// its can be action or relation
	Permission string   `protobuf:"bytes,4,opt,name=permission,proto3" json:"permission,omitempty"`
	Subject    *Subject `protobuf:"bytes,5,opt,name=subject,proto3" json:"subject,omitempty"`
	// contains filtered or unexported fields
}

PermissionCheckRequest

func (*PermissionCheckRequest) Descriptor deprecated

func (*PermissionCheckRequest) Descriptor() ([]byte, []int)

Deprecated: Use PermissionCheckRequest.ProtoReflect.Descriptor instead.

func (*PermissionCheckRequest) GetEntity

func (x *PermissionCheckRequest) GetEntity() *Entity

func (*PermissionCheckRequest) GetMetadata

func (*PermissionCheckRequest) GetPermission

func (x *PermissionCheckRequest) GetPermission() string

func (*PermissionCheckRequest) GetSubject

func (x *PermissionCheckRequest) GetSubject() *Subject

func (*PermissionCheckRequest) GetTenantId

func (x *PermissionCheckRequest) GetTenantId() string

func (*PermissionCheckRequest) ProtoMessage

func (*PermissionCheckRequest) ProtoMessage()

func (*PermissionCheckRequest) ProtoReflect

func (x *PermissionCheckRequest) ProtoReflect() protoreflect.Message

func (*PermissionCheckRequest) Reset

func (x *PermissionCheckRequest) Reset()

func (*PermissionCheckRequest) String

func (x *PermissionCheckRequest) String() string

func (*PermissionCheckRequest) Validate

func (m *PermissionCheckRequest) Validate() error

Validate checks the field values on PermissionCheckRequest 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 (*PermissionCheckRequest) ValidateAll

func (m *PermissionCheckRequest) ValidateAll() error

ValidateAll checks the field values on PermissionCheckRequest 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 PermissionCheckRequestMultiError, or nil if none found.

type PermissionCheckRequestMetadata

type PermissionCheckRequestMetadata struct {
	SchemaVersion string `protobuf:"bytes,1,opt,name=schema_version,proto3" json:"schema_version,omitempty"`
	SnapToken     string `protobuf:"bytes,2,opt,name=snap_token,proto3" json:"snap_token,omitempty"`
	Exclusion     bool   `protobuf:"varint,3,opt,name=exclusion,proto3" json:"exclusion,omitempty"`
	Depth         int32  `protobuf:"varint,4,opt,name=depth,proto3" json:"depth,omitempty"`
	// contains filtered or unexported fields
}

PermissionCheckRequestMetadata

func (*PermissionCheckRequestMetadata) Descriptor deprecated

func (*PermissionCheckRequestMetadata) Descriptor() ([]byte, []int)

Deprecated: Use PermissionCheckRequestMetadata.ProtoReflect.Descriptor instead.

func (*PermissionCheckRequestMetadata) GetDepth

func (x *PermissionCheckRequestMetadata) GetDepth() int32

func (*PermissionCheckRequestMetadata) GetExclusion

func (x *PermissionCheckRequestMetadata) GetExclusion() bool

func (*PermissionCheckRequestMetadata) GetSchemaVersion

func (x *PermissionCheckRequestMetadata) GetSchemaVersion() string

func (*PermissionCheckRequestMetadata) GetSnapToken

func (x *PermissionCheckRequestMetadata) GetSnapToken() string

func (*PermissionCheckRequestMetadata) ProtoMessage

func (*PermissionCheckRequestMetadata) ProtoMessage()

func (*PermissionCheckRequestMetadata) ProtoReflect

func (*PermissionCheckRequestMetadata) Reset

func (x *PermissionCheckRequestMetadata) Reset()

func (*PermissionCheckRequestMetadata) String

func (*PermissionCheckRequestMetadata) Validate

func (m *PermissionCheckRequestMetadata) Validate() error

Validate checks the field values on PermissionCheckRequestMetadata 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 (*PermissionCheckRequestMetadata) ValidateAll

func (m *PermissionCheckRequestMetadata) ValidateAll() error

ValidateAll checks the field values on PermissionCheckRequestMetadata 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 PermissionCheckRequestMetadataMultiError, or nil if none found.

type PermissionCheckRequestMetadataMultiError

type PermissionCheckRequestMetadataMultiError []error

PermissionCheckRequestMetadataMultiError is an error wrapping multiple validation errors returned by PermissionCheckRequestMetadata.ValidateAll() if the designated constraints aren't met.

func (PermissionCheckRequestMetadataMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (PermissionCheckRequestMetadataMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type PermissionCheckRequestMetadataValidationError

type PermissionCheckRequestMetadataValidationError struct {
	// contains filtered or unexported fields
}

PermissionCheckRequestMetadataValidationError is the validation error returned by PermissionCheckRequestMetadata.Validate if the designated constraints aren't met.

func (PermissionCheckRequestMetadataValidationError) Cause

Cause function returns cause value.

func (PermissionCheckRequestMetadataValidationError) Error

Error satisfies the builtin error interface

func (PermissionCheckRequestMetadataValidationError) ErrorName

ErrorName returns error name.

func (PermissionCheckRequestMetadataValidationError) Field

Field function returns field value.

func (PermissionCheckRequestMetadataValidationError) Key

Key function returns key value.

func (PermissionCheckRequestMetadataValidationError) Reason

Reason function returns reason value.

type PermissionCheckRequestMultiError

type PermissionCheckRequestMultiError []error

PermissionCheckRequestMultiError is an error wrapping multiple validation errors returned by PermissionCheckRequest.ValidateAll() if the designated constraints aren't met.

func (PermissionCheckRequestMultiError) AllErrors

func (m PermissionCheckRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PermissionCheckRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type PermissionCheckRequestValidationError

type PermissionCheckRequestValidationError struct {
	// contains filtered or unexported fields
}

PermissionCheckRequestValidationError is the validation error returned by PermissionCheckRequest.Validate if the designated constraints aren't met.

func (PermissionCheckRequestValidationError) Cause

Cause function returns cause value.

func (PermissionCheckRequestValidationError) Error

Error satisfies the builtin error interface

func (PermissionCheckRequestValidationError) ErrorName

ErrorName returns error name.

func (PermissionCheckRequestValidationError) Field

Field function returns field value.

func (PermissionCheckRequestValidationError) Key

Key function returns key value.

func (PermissionCheckRequestValidationError) Reason

Reason function returns reason value.

type PermissionCheckResponse

type PermissionCheckResponse struct {
	Can      PermissionCheckResponse_Result   `protobuf:"varint,1,opt,name=can,proto3,enum=base.v1.PermissionCheckResponse_Result" json:"can,omitempty"`
	Metadata *PermissionCheckResponseMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// contains filtered or unexported fields
}

PermissionCheckResponse

func (*PermissionCheckResponse) Descriptor deprecated

func (*PermissionCheckResponse) Descriptor() ([]byte, []int)

Deprecated: Use PermissionCheckResponse.ProtoReflect.Descriptor instead.

func (*PermissionCheckResponse) GetCan

func (*PermissionCheckResponse) GetMetadata

func (*PermissionCheckResponse) ProtoMessage

func (*PermissionCheckResponse) ProtoMessage()

func (*PermissionCheckResponse) ProtoReflect

func (x *PermissionCheckResponse) ProtoReflect() protoreflect.Message

func (*PermissionCheckResponse) Reset

func (x *PermissionCheckResponse) Reset()

func (*PermissionCheckResponse) String

func (x *PermissionCheckResponse) String() string

func (*PermissionCheckResponse) Validate

func (m *PermissionCheckResponse) Validate() error

Validate checks the field values on PermissionCheckResponse 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 (*PermissionCheckResponse) ValidateAll

func (m *PermissionCheckResponse) ValidateAll() error

ValidateAll checks the field values on PermissionCheckResponse 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 PermissionCheckResponseMultiError, or nil if none found.

type PermissionCheckResponseMetadata

type PermissionCheckResponseMetadata struct {
	CheckCount int32 `protobuf:"varint,1,opt,name=check_count,proto3" json:"check_count,omitempty"`
	// contains filtered or unexported fields
}

CheckResponseMetadata

func (*PermissionCheckResponseMetadata) Descriptor deprecated

func (*PermissionCheckResponseMetadata) Descriptor() ([]byte, []int)

Deprecated: Use PermissionCheckResponseMetadata.ProtoReflect.Descriptor instead.

func (*PermissionCheckResponseMetadata) GetCheckCount

func (x *PermissionCheckResponseMetadata) GetCheckCount() int32

func (*PermissionCheckResponseMetadata) ProtoMessage

func (*PermissionCheckResponseMetadata) ProtoMessage()

func (*PermissionCheckResponseMetadata) ProtoReflect

func (*PermissionCheckResponseMetadata) Reset

func (*PermissionCheckResponseMetadata) String

func (*PermissionCheckResponseMetadata) Validate

func (m *PermissionCheckResponseMetadata) Validate() error

Validate checks the field values on PermissionCheckResponseMetadata 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 (*PermissionCheckResponseMetadata) ValidateAll

func (m *PermissionCheckResponseMetadata) ValidateAll() error

ValidateAll checks the field values on PermissionCheckResponseMetadata 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 PermissionCheckResponseMetadataMultiError, or nil if none found.

type PermissionCheckResponseMetadataMultiError

type PermissionCheckResponseMetadataMultiError []error

PermissionCheckResponseMetadataMultiError is an error wrapping multiple validation errors returned by PermissionCheckResponseMetadata.ValidateAll() if the designated constraints aren't met.

func (PermissionCheckResponseMetadataMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (PermissionCheckResponseMetadataMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type PermissionCheckResponseMetadataValidationError

type PermissionCheckResponseMetadataValidationError struct {
	// contains filtered or unexported fields
}

PermissionCheckResponseMetadataValidationError is the validation error returned by PermissionCheckResponseMetadata.Validate if the designated constraints aren't met.

func (PermissionCheckResponseMetadataValidationError) Cause

Cause function returns cause value.

func (PermissionCheckResponseMetadataValidationError) Error

Error satisfies the builtin error interface

func (PermissionCheckResponseMetadataValidationError) ErrorName

ErrorName returns error name.

func (PermissionCheckResponseMetadataValidationError) Field

Field function returns field value.

func (PermissionCheckResponseMetadataValidationError) Key

Key function returns key value.

func (PermissionCheckResponseMetadataValidationError) Reason

Reason function returns reason value.

type PermissionCheckResponseMultiError

type PermissionCheckResponseMultiError []error

PermissionCheckResponseMultiError is an error wrapping multiple validation errors returned by PermissionCheckResponse.ValidateAll() if the designated constraints aren't met.

func (PermissionCheckResponseMultiError) AllErrors

func (m PermissionCheckResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PermissionCheckResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type PermissionCheckResponseValidationError

type PermissionCheckResponseValidationError struct {
	// contains filtered or unexported fields
}

PermissionCheckResponseValidationError is the validation error returned by PermissionCheckResponse.Validate if the designated constraints aren't met.

func (PermissionCheckResponseValidationError) Cause

Cause function returns cause value.

func (PermissionCheckResponseValidationError) Error

Error satisfies the builtin error interface

func (PermissionCheckResponseValidationError) ErrorName

ErrorName returns error name.

func (PermissionCheckResponseValidationError) Field

Field function returns field value.

func (PermissionCheckResponseValidationError) Key

Key function returns key value.

func (PermissionCheckResponseValidationError) Reason

Reason function returns reason value.

type PermissionCheckResponse_Result

type PermissionCheckResponse_Result int32

Result

const (
	PermissionCheckResponse_RESULT_UNKNOWN PermissionCheckResponse_Result = 0
	PermissionCheckResponse_RESULT_ALLOWED PermissionCheckResponse_Result = 1
	PermissionCheckResponse_RESULT_DENIED  PermissionCheckResponse_Result = 2
)

func (PermissionCheckResponse_Result) Descriptor

func (PermissionCheckResponse_Result) Enum

func (PermissionCheckResponse_Result) EnumDescriptor deprecated

func (PermissionCheckResponse_Result) EnumDescriptor() ([]byte, []int)

Deprecated: Use PermissionCheckResponse_Result.Descriptor instead.

func (PermissionCheckResponse_Result) Number

func (PermissionCheckResponse_Result) String

func (PermissionCheckResponse_Result) Type

type PermissionClient

PermissionClient is the client API for Permission 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 NewPermissionClient

func NewPermissionClient(cc grpc.ClientConnInterface) PermissionClient

type PermissionExpandRequest

type PermissionExpandRequest struct {
	TenantId   string                           `protobuf:"bytes,1,opt,name=tenant_id,proto3" json:"tenant_id,omitempty"`
	Metadata   *PermissionExpandRequestMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"`
	Entity     *Entity                          `protobuf:"bytes,3,opt,name=entity,proto3" json:"entity,omitempty"`
	Permission string                           `protobuf:"bytes,4,opt,name=permission,proto3" json:"permission,omitempty"`
	// contains filtered or unexported fields
}

PermissionExpandRequest

func (*PermissionExpandRequest) Descriptor deprecated

func (*PermissionExpandRequest) Descriptor() ([]byte, []int)

Deprecated: Use PermissionExpandRequest.ProtoReflect.Descriptor instead.

func (*PermissionExpandRequest) GetEntity

func (x *PermissionExpandRequest) GetEntity() *Entity

func (*PermissionExpandRequest) GetMetadata

func (*PermissionExpandRequest) GetPermission

func (x *PermissionExpandRequest) GetPermission() string

func (*PermissionExpandRequest) GetTenantId

func (x *PermissionExpandRequest) GetTenantId() string

func (*PermissionExpandRequest) ProtoMessage

func (*PermissionExpandRequest) ProtoMessage()

func (*PermissionExpandRequest) ProtoReflect

func (x *PermissionExpandRequest) ProtoReflect() protoreflect.Message

func (*PermissionExpandRequest) Reset

func (x *PermissionExpandRequest) Reset()

func (*PermissionExpandRequest) String

func (x *PermissionExpandRequest) String() string

func (*PermissionExpandRequest) Validate

func (m *PermissionExpandRequest) Validate() error

Validate checks the field values on PermissionExpandRequest 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 (*PermissionExpandRequest) ValidateAll

func (m *PermissionExpandRequest) ValidateAll() error

ValidateAll checks the field values on PermissionExpandRequest 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 PermissionExpandRequestMultiError, or nil if none found.

type PermissionExpandRequestMetadata

type PermissionExpandRequestMetadata struct {
	SchemaVersion string `protobuf:"bytes,1,opt,name=schema_version,proto3" json:"schema_version,omitempty"`
	SnapToken     string `protobuf:"bytes,2,opt,name=snap_token,proto3" json:"snap_token,omitempty"`
	// contains filtered or unexported fields
}

PermissionExpandRequestMetadata

func (*PermissionExpandRequestMetadata) Descriptor deprecated

func (*PermissionExpandRequestMetadata) Descriptor() ([]byte, []int)

Deprecated: Use PermissionExpandRequestMetadata.ProtoReflect.Descriptor instead.

func (*PermissionExpandRequestMetadata) GetSchemaVersion

func (x *PermissionExpandRequestMetadata) GetSchemaVersion() string

func (*PermissionExpandRequestMetadata) GetSnapToken

func (x *PermissionExpandRequestMetadata) GetSnapToken() string

func (*PermissionExpandRequestMetadata) ProtoMessage

func (*PermissionExpandRequestMetadata) ProtoMessage()

func (*PermissionExpandRequestMetadata) ProtoReflect

func (*PermissionExpandRequestMetadata) Reset

func (*PermissionExpandRequestMetadata) String

func (*PermissionExpandRequestMetadata) Validate

func (m *PermissionExpandRequestMetadata) Validate() error

Validate checks the field values on PermissionExpandRequestMetadata 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 (*PermissionExpandRequestMetadata) ValidateAll

func (m *PermissionExpandRequestMetadata) ValidateAll() error

ValidateAll checks the field values on PermissionExpandRequestMetadata 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 PermissionExpandRequestMetadataMultiError, or nil if none found.

type PermissionExpandRequestMetadataMultiError

type PermissionExpandRequestMetadataMultiError []error

PermissionExpandRequestMetadataMultiError is an error wrapping multiple validation errors returned by PermissionExpandRequestMetadata.ValidateAll() if the designated constraints aren't met.

func (PermissionExpandRequestMetadataMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (PermissionExpandRequestMetadataMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type PermissionExpandRequestMetadataValidationError

type PermissionExpandRequestMetadataValidationError struct {
	// contains filtered or unexported fields
}

PermissionExpandRequestMetadataValidationError is the validation error returned by PermissionExpandRequestMetadata.Validate if the designated constraints aren't met.

func (PermissionExpandRequestMetadataValidationError) Cause

Cause function returns cause value.

func (PermissionExpandRequestMetadataValidationError) Error

Error satisfies the builtin error interface

func (PermissionExpandRequestMetadataValidationError) ErrorName

ErrorName returns error name.

func (PermissionExpandRequestMetadataValidationError) Field

Field function returns field value.

func (PermissionExpandRequestMetadataValidationError) Key

Key function returns key value.

func (PermissionExpandRequestMetadataValidationError) Reason

Reason function returns reason value.

type PermissionExpandRequestMultiError

type PermissionExpandRequestMultiError []error

PermissionExpandRequestMultiError is an error wrapping multiple validation errors returned by PermissionExpandRequest.ValidateAll() if the designated constraints aren't met.

func (PermissionExpandRequestMultiError) AllErrors

func (m PermissionExpandRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PermissionExpandRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type PermissionExpandRequestValidationError

type PermissionExpandRequestValidationError struct {
	// contains filtered or unexported fields
}

PermissionExpandRequestValidationError is the validation error returned by PermissionExpandRequest.Validate if the designated constraints aren't met.

func (PermissionExpandRequestValidationError) Cause

Cause function returns cause value.

func (PermissionExpandRequestValidationError) Error

Error satisfies the builtin error interface

func (PermissionExpandRequestValidationError) ErrorName

ErrorName returns error name.

func (PermissionExpandRequestValidationError) Field

Field function returns field value.

func (PermissionExpandRequestValidationError) Key

Key function returns key value.

func (PermissionExpandRequestValidationError) Reason

Reason function returns reason value.

type PermissionExpandResponse

type PermissionExpandResponse struct {
	Tree *Expand `protobuf:"bytes,1,opt,name=tree,proto3" json:"tree,omitempty"`
	// contains filtered or unexported fields
}

PermissionExpandResponse

func (*PermissionExpandResponse) Descriptor deprecated

func (*PermissionExpandResponse) Descriptor() ([]byte, []int)

Deprecated: Use PermissionExpandResponse.ProtoReflect.Descriptor instead.

func (*PermissionExpandResponse) GetTree

func (x *PermissionExpandResponse) GetTree() *Expand

func (*PermissionExpandResponse) ProtoMessage

func (*PermissionExpandResponse) ProtoMessage()

func (*PermissionExpandResponse) ProtoReflect

func (x *PermissionExpandResponse) ProtoReflect() protoreflect.Message

func (*PermissionExpandResponse) Reset

func (x *PermissionExpandResponse) Reset()

func (*PermissionExpandResponse) String

func (x *PermissionExpandResponse) String() string

func (*PermissionExpandResponse) Validate

func (m *PermissionExpandResponse) Validate() error

Validate checks the field values on PermissionExpandResponse 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 (*PermissionExpandResponse) ValidateAll

func (m *PermissionExpandResponse) ValidateAll() error

ValidateAll checks the field values on PermissionExpandResponse 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 PermissionExpandResponseMultiError, or nil if none found.

type PermissionExpandResponseMultiError

type PermissionExpandResponseMultiError []error

PermissionExpandResponseMultiError is an error wrapping multiple validation errors returned by PermissionExpandResponse.ValidateAll() if the designated constraints aren't met.

func (PermissionExpandResponseMultiError) AllErrors

func (m PermissionExpandResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PermissionExpandResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type PermissionExpandResponseValidationError

type PermissionExpandResponseValidationError struct {
	// contains filtered or unexported fields
}

PermissionExpandResponseValidationError is the validation error returned by PermissionExpandResponse.Validate if the designated constraints aren't met.

func (PermissionExpandResponseValidationError) Cause

Cause function returns cause value.

func (PermissionExpandResponseValidationError) Error

Error satisfies the builtin error interface

func (PermissionExpandResponseValidationError) ErrorName

ErrorName returns error name.

func (PermissionExpandResponseValidationError) Field

Field function returns field value.

func (PermissionExpandResponseValidationError) Key

Key function returns key value.

func (PermissionExpandResponseValidationError) Reason

Reason function returns reason value.

type PermissionLookupEntityRequest

type PermissionLookupEntityRequest struct {
	TenantId   string                                 `protobuf:"bytes,1,opt,name=tenant_id,proto3" json:"tenant_id,omitempty"`
	Metadata   *PermissionLookupEntityRequestMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"`
	EntityType string                                 `protobuf:"bytes,3,opt,name=entity_type,proto3" json:"entity_type,omitempty"`
	Permission string                                 `protobuf:"bytes,4,opt,name=permission,proto3" json:"permission,omitempty"`
	Subject    *Subject                               `protobuf:"bytes,5,opt,name=subject,proto3" json:"subject,omitempty"`
	// contains filtered or unexported fields
}

PermissionLookupEntityRequest

func (*PermissionLookupEntityRequest) Descriptor deprecated

func (*PermissionLookupEntityRequest) Descriptor() ([]byte, []int)

Deprecated: Use PermissionLookupEntityRequest.ProtoReflect.Descriptor instead.

func (*PermissionLookupEntityRequest) GetEntityType

func (x *PermissionLookupEntityRequest) GetEntityType() string

func (*PermissionLookupEntityRequest) GetMetadata

func (*PermissionLookupEntityRequest) GetPermission

func (x *PermissionLookupEntityRequest) GetPermission() string

func (*PermissionLookupEntityRequest) GetSubject

func (x *PermissionLookupEntityRequest) GetSubject() *Subject

func (*PermissionLookupEntityRequest) GetTenantId

func (x *PermissionLookupEntityRequest) GetTenantId() string

func (*PermissionLookupEntityRequest) ProtoMessage

func (*PermissionLookupEntityRequest) ProtoMessage()

func (*PermissionLookupEntityRequest) ProtoReflect

func (*PermissionLookupEntityRequest) Reset

func (x *PermissionLookupEntityRequest) Reset()

func (*PermissionLookupEntityRequest) String

func (*PermissionLookupEntityRequest) Validate

func (m *PermissionLookupEntityRequest) Validate() error

Validate checks the field values on PermissionLookupEntityRequest 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 (*PermissionLookupEntityRequest) ValidateAll

func (m *PermissionLookupEntityRequest) ValidateAll() error

ValidateAll checks the field values on PermissionLookupEntityRequest 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 PermissionLookupEntityRequestMultiError, or nil if none found.

type PermissionLookupEntityRequestMetadata

type PermissionLookupEntityRequestMetadata struct {
	SchemaVersion string `protobuf:"bytes,1,opt,name=schema_version,proto3" json:"schema_version,omitempty"`
	SnapToken     string `protobuf:"bytes,2,opt,name=snap_token,proto3" json:"snap_token,omitempty"`
	Depth         int32  `protobuf:"varint,3,opt,name=depth,proto3" json:"depth,omitempty"`
	// contains filtered or unexported fields
}

PermissionLookupEntityRequestMetadata

func (*PermissionLookupEntityRequestMetadata) Descriptor deprecated

func (*PermissionLookupEntityRequestMetadata) Descriptor() ([]byte, []int)

Deprecated: Use PermissionLookupEntityRequestMetadata.ProtoReflect.Descriptor instead.

func (*PermissionLookupEntityRequestMetadata) GetDepth

func (*PermissionLookupEntityRequestMetadata) GetSchemaVersion

func (x *PermissionLookupEntityRequestMetadata) GetSchemaVersion() string

func (*PermissionLookupEntityRequestMetadata) GetSnapToken

func (*PermissionLookupEntityRequestMetadata) ProtoMessage

func (*PermissionLookupEntityRequestMetadata) ProtoMessage()

func (*PermissionLookupEntityRequestMetadata) ProtoReflect

func (*PermissionLookupEntityRequestMetadata) Reset

func (*PermissionLookupEntityRequestMetadata) String

func (*PermissionLookupEntityRequestMetadata) Validate

Validate checks the field values on PermissionLookupEntityRequestMetadata 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 (*PermissionLookupEntityRequestMetadata) ValidateAll

ValidateAll checks the field values on PermissionLookupEntityRequestMetadata 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 PermissionLookupEntityRequestMetadataMultiError, or nil if none found.

type PermissionLookupEntityRequestMetadataMultiError

type PermissionLookupEntityRequestMetadataMultiError []error

PermissionLookupEntityRequestMetadataMultiError is an error wrapping multiple validation errors returned by PermissionLookupEntityRequestMetadata.ValidateAll() if the designated constraints aren't met.

func (PermissionLookupEntityRequestMetadataMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (PermissionLookupEntityRequestMetadataMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type PermissionLookupEntityRequestMetadataValidationError

type PermissionLookupEntityRequestMetadataValidationError struct {
	// contains filtered or unexported fields
}

PermissionLookupEntityRequestMetadataValidationError is the validation error returned by PermissionLookupEntityRequestMetadata.Validate if the designated constraints aren't met.

func (PermissionLookupEntityRequestMetadataValidationError) Cause

Cause function returns cause value.

func (PermissionLookupEntityRequestMetadataValidationError) Error

Error satisfies the builtin error interface

func (PermissionLookupEntityRequestMetadataValidationError) ErrorName

ErrorName returns error name.

func (PermissionLookupEntityRequestMetadataValidationError) Field

Field function returns field value.

func (PermissionLookupEntityRequestMetadataValidationError) Key

Key function returns key value.

func (PermissionLookupEntityRequestMetadataValidationError) Reason

Reason function returns reason value.

type PermissionLookupEntityRequestMultiError

type PermissionLookupEntityRequestMultiError []error

PermissionLookupEntityRequestMultiError is an error wrapping multiple validation errors returned by PermissionLookupEntityRequest.ValidateAll() if the designated constraints aren't met.

func (PermissionLookupEntityRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (PermissionLookupEntityRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type PermissionLookupEntityRequestValidationError

type PermissionLookupEntityRequestValidationError struct {
	// contains filtered or unexported fields
}

PermissionLookupEntityRequestValidationError is the validation error returned by PermissionLookupEntityRequest.Validate if the designated constraints aren't met.

func (PermissionLookupEntityRequestValidationError) Cause

Cause function returns cause value.

func (PermissionLookupEntityRequestValidationError) Error

Error satisfies the builtin error interface

func (PermissionLookupEntityRequestValidationError) ErrorName

ErrorName returns error name.

func (PermissionLookupEntityRequestValidationError) Field

Field function returns field value.

func (PermissionLookupEntityRequestValidationError) Key

Key function returns key value.

func (PermissionLookupEntityRequestValidationError) Reason

Reason function returns reason value.

type PermissionLookupEntityResponse

type PermissionLookupEntityResponse struct {
	EntityIds []string `protobuf:"bytes,1,rep,name=entity_ids,proto3" json:"entity_ids,omitempty"`
	// contains filtered or unexported fields
}

PermissionLookupEntityResponse

func (*PermissionLookupEntityResponse) Descriptor deprecated

func (*PermissionLookupEntityResponse) Descriptor() ([]byte, []int)

Deprecated: Use PermissionLookupEntityResponse.ProtoReflect.Descriptor instead.

func (*PermissionLookupEntityResponse) GetEntityIds

func (x *PermissionLookupEntityResponse) GetEntityIds() []string

func (*PermissionLookupEntityResponse) ProtoMessage

func (*PermissionLookupEntityResponse) ProtoMessage()

func (*PermissionLookupEntityResponse) ProtoReflect

func (*PermissionLookupEntityResponse) Reset

func (x *PermissionLookupEntityResponse) Reset()

func (*PermissionLookupEntityResponse) String

func (*PermissionLookupEntityResponse) Validate

func (m *PermissionLookupEntityResponse) Validate() error

Validate checks the field values on PermissionLookupEntityResponse 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 (*PermissionLookupEntityResponse) ValidateAll

func (m *PermissionLookupEntityResponse) ValidateAll() error

ValidateAll checks the field values on PermissionLookupEntityResponse 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 PermissionLookupEntityResponseMultiError, or nil if none found.

type PermissionLookupEntityResponseMultiError

type PermissionLookupEntityResponseMultiError []error

PermissionLookupEntityResponseMultiError is an error wrapping multiple validation errors returned by PermissionLookupEntityResponse.ValidateAll() if the designated constraints aren't met.

func (PermissionLookupEntityResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (PermissionLookupEntityResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type PermissionLookupEntityResponseValidationError

type PermissionLookupEntityResponseValidationError struct {
	// contains filtered or unexported fields
}

PermissionLookupEntityResponseValidationError is the validation error returned by PermissionLookupEntityResponse.Validate if the designated constraints aren't met.

func (PermissionLookupEntityResponseValidationError) Cause

Cause function returns cause value.

func (PermissionLookupEntityResponseValidationError) Error

Error satisfies the builtin error interface

func (PermissionLookupEntityResponseValidationError) ErrorName

ErrorName returns error name.

func (PermissionLookupEntityResponseValidationError) Field

Field function returns field value.

func (PermissionLookupEntityResponseValidationError) Key

Key function returns key value.

func (PermissionLookupEntityResponseValidationError) Reason

Reason function returns reason value.

type PermissionLookupEntityStreamResponse

type PermissionLookupEntityStreamResponse struct {
	EntityId string `protobuf:"bytes,1,opt,name=entity_id,proto3" json:"entity_id,omitempty"`
	// contains filtered or unexported fields
}

PermissionLookupEntityStreamResponse

func (*PermissionLookupEntityStreamResponse) Descriptor deprecated

func (*PermissionLookupEntityStreamResponse) Descriptor() ([]byte, []int)

Deprecated: Use PermissionLookupEntityStreamResponse.ProtoReflect.Descriptor instead.

func (*PermissionLookupEntityStreamResponse) GetEntityId

func (*PermissionLookupEntityStreamResponse) ProtoMessage

func (*PermissionLookupEntityStreamResponse) ProtoMessage()

func (*PermissionLookupEntityStreamResponse) ProtoReflect

func (*PermissionLookupEntityStreamResponse) Reset

func (*PermissionLookupEntityStreamResponse) String

func (*PermissionLookupEntityStreamResponse) Validate

Validate checks the field values on PermissionLookupEntityStreamResponse 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 (*PermissionLookupEntityStreamResponse) ValidateAll

ValidateAll checks the field values on PermissionLookupEntityStreamResponse 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 PermissionLookupEntityStreamResponseMultiError, or nil if none found.

type PermissionLookupEntityStreamResponseMultiError

type PermissionLookupEntityStreamResponseMultiError []error

PermissionLookupEntityStreamResponseMultiError is an error wrapping multiple validation errors returned by PermissionLookupEntityStreamResponse.ValidateAll() if the designated constraints aren't met.

func (PermissionLookupEntityStreamResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (PermissionLookupEntityStreamResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type PermissionLookupEntityStreamResponseValidationError

type PermissionLookupEntityStreamResponseValidationError struct {
	// contains filtered or unexported fields
}

PermissionLookupEntityStreamResponseValidationError is the validation error returned by PermissionLookupEntityStreamResponse.Validate if the designated constraints aren't met.

func (PermissionLookupEntityStreamResponseValidationError) Cause

Cause function returns cause value.

func (PermissionLookupEntityStreamResponseValidationError) Error

Error satisfies the builtin error interface

func (PermissionLookupEntityStreamResponseValidationError) ErrorName

ErrorName returns error name.

func (PermissionLookupEntityStreamResponseValidationError) Field

Field function returns field value.

func (PermissionLookupEntityStreamResponseValidationError) Key

Key function returns key value.

func (PermissionLookupEntityStreamResponseValidationError) Reason

Reason function returns reason value.

type PermissionLookupSchemaRequest

type PermissionLookupSchemaRequest struct {
	TenantId      string                                 `protobuf:"bytes,1,opt,name=tenant_id,proto3" json:"tenant_id,omitempty"`
	Metadata      *PermissionLookupSchemaRequestMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"`
	EntityType    string                                 `protobuf:"bytes,3,opt,name=entity_type,proto3" json:"entity_type,omitempty"`
	RelationNames []string                               `protobuf:"bytes,4,rep,name=relation_names,proto3" json:"relation_names,omitempty"`
	// contains filtered or unexported fields
}

PermissionLookupSchemaRequest

func (*PermissionLookupSchemaRequest) Descriptor deprecated

func (*PermissionLookupSchemaRequest) Descriptor() ([]byte, []int)

Deprecated: Use PermissionLookupSchemaRequest.ProtoReflect.Descriptor instead.

func (*PermissionLookupSchemaRequest) GetEntityType

func (x *PermissionLookupSchemaRequest) GetEntityType() string

func (*PermissionLookupSchemaRequest) GetMetadata

func (*PermissionLookupSchemaRequest) GetRelationNames

func (x *PermissionLookupSchemaRequest) GetRelationNames() []string

func (*PermissionLookupSchemaRequest) GetTenantId

func (x *PermissionLookupSchemaRequest) GetTenantId() string

func (*PermissionLookupSchemaRequest) ProtoMessage

func (*PermissionLookupSchemaRequest) ProtoMessage()

func (*PermissionLookupSchemaRequest) ProtoReflect

func (*PermissionLookupSchemaRequest) Reset

func (x *PermissionLookupSchemaRequest) Reset()

func (*PermissionLookupSchemaRequest) String

func (*PermissionLookupSchemaRequest) Validate

func (m *PermissionLookupSchemaRequest) Validate() error

Validate checks the field values on PermissionLookupSchemaRequest 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 (*PermissionLookupSchemaRequest) ValidateAll

func (m *PermissionLookupSchemaRequest) ValidateAll() error

ValidateAll checks the field values on PermissionLookupSchemaRequest 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 PermissionLookupSchemaRequestMultiError, or nil if none found.

type PermissionLookupSchemaRequestMetadata

type PermissionLookupSchemaRequestMetadata struct {
	SchemaVersion string `protobuf:"bytes,1,opt,name=schema_version,proto3" json:"schema_version,omitempty"`
	// contains filtered or unexported fields
}

PermissionLookupSchemaRequestMetadata

func (*PermissionLookupSchemaRequestMetadata) Descriptor deprecated

func (*PermissionLookupSchemaRequestMetadata) Descriptor() ([]byte, []int)

Deprecated: Use PermissionLookupSchemaRequestMetadata.ProtoReflect.Descriptor instead.

func (*PermissionLookupSchemaRequestMetadata) GetSchemaVersion

func (x *PermissionLookupSchemaRequestMetadata) GetSchemaVersion() string

func (*PermissionLookupSchemaRequestMetadata) ProtoMessage

func (*PermissionLookupSchemaRequestMetadata) ProtoMessage()

func (*PermissionLookupSchemaRequestMetadata) ProtoReflect

func (*PermissionLookupSchemaRequestMetadata) Reset

func (*PermissionLookupSchemaRequestMetadata) String

func (*PermissionLookupSchemaRequestMetadata) Validate

Validate checks the field values on PermissionLookupSchemaRequestMetadata 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 (*PermissionLookupSchemaRequestMetadata) ValidateAll

ValidateAll checks the field values on PermissionLookupSchemaRequestMetadata 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 PermissionLookupSchemaRequestMetadataMultiError, or nil if none found.

type PermissionLookupSchemaRequestMetadataMultiError

type PermissionLookupSchemaRequestMetadataMultiError []error

PermissionLookupSchemaRequestMetadataMultiError is an error wrapping multiple validation errors returned by PermissionLookupSchemaRequestMetadata.ValidateAll() if the designated constraints aren't met.

func (PermissionLookupSchemaRequestMetadataMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (PermissionLookupSchemaRequestMetadataMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type PermissionLookupSchemaRequestMetadataValidationError

type PermissionLookupSchemaRequestMetadataValidationError struct {
	// contains filtered or unexported fields
}

PermissionLookupSchemaRequestMetadataValidationError is the validation error returned by PermissionLookupSchemaRequestMetadata.Validate if the designated constraints aren't met.

func (PermissionLookupSchemaRequestMetadataValidationError) Cause

Cause function returns cause value.

func (PermissionLookupSchemaRequestMetadataValidationError) Error

Error satisfies the builtin error interface

func (PermissionLookupSchemaRequestMetadataValidationError) ErrorName

ErrorName returns error name.

func (PermissionLookupSchemaRequestMetadataValidationError) Field

Field function returns field value.

func (PermissionLookupSchemaRequestMetadataValidationError) Key

Key function returns key value.

func (PermissionLookupSchemaRequestMetadataValidationError) Reason

Reason function returns reason value.

type PermissionLookupSchemaRequestMultiError

type PermissionLookupSchemaRequestMultiError []error

PermissionLookupSchemaRequestMultiError is an error wrapping multiple validation errors returned by PermissionLookupSchemaRequest.ValidateAll() if the designated constraints aren't met.

func (PermissionLookupSchemaRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (PermissionLookupSchemaRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type PermissionLookupSchemaRequestValidationError

type PermissionLookupSchemaRequestValidationError struct {
	// contains filtered or unexported fields
}

PermissionLookupSchemaRequestValidationError is the validation error returned by PermissionLookupSchemaRequest.Validate if the designated constraints aren't met.

func (PermissionLookupSchemaRequestValidationError) Cause

Cause function returns cause value.

func (PermissionLookupSchemaRequestValidationError) Error

Error satisfies the builtin error interface

func (PermissionLookupSchemaRequestValidationError) ErrorName

ErrorName returns error name.

func (PermissionLookupSchemaRequestValidationError) Field

Field function returns field value.

func (PermissionLookupSchemaRequestValidationError) Key

Key function returns key value.

func (PermissionLookupSchemaRequestValidationError) Reason

Reason function returns reason value.

type PermissionLookupSchemaResponse

type PermissionLookupSchemaResponse struct {
	ActionNames []string `protobuf:"bytes,1,rep,name=action_names,proto3" json:"action_names,omitempty"`
	// contains filtered or unexported fields
}

PermissionLookupSchemaResponse

func (*PermissionLookupSchemaResponse) Descriptor deprecated

func (*PermissionLookupSchemaResponse) Descriptor() ([]byte, []int)

Deprecated: Use PermissionLookupSchemaResponse.ProtoReflect.Descriptor instead.

func (*PermissionLookupSchemaResponse) GetActionNames

func (x *PermissionLookupSchemaResponse) GetActionNames() []string

func (*PermissionLookupSchemaResponse) ProtoMessage

func (*PermissionLookupSchemaResponse) ProtoMessage()

func (*PermissionLookupSchemaResponse) ProtoReflect

func (*PermissionLookupSchemaResponse) Reset

func (x *PermissionLookupSchemaResponse) Reset()

func (*PermissionLookupSchemaResponse) String

func (*PermissionLookupSchemaResponse) Validate

func (m *PermissionLookupSchemaResponse) Validate() error

Validate checks the field values on PermissionLookupSchemaResponse 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 (*PermissionLookupSchemaResponse) ValidateAll

func (m *PermissionLookupSchemaResponse) ValidateAll() error

ValidateAll checks the field values on PermissionLookupSchemaResponse 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 PermissionLookupSchemaResponseMultiError, or nil if none found.

type PermissionLookupSchemaResponseMultiError

type PermissionLookupSchemaResponseMultiError []error

PermissionLookupSchemaResponseMultiError is an error wrapping multiple validation errors returned by PermissionLookupSchemaResponse.ValidateAll() if the designated constraints aren't met.

func (PermissionLookupSchemaResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (PermissionLookupSchemaResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type PermissionLookupSchemaResponseValidationError

type PermissionLookupSchemaResponseValidationError struct {
	// contains filtered or unexported fields
}

PermissionLookupSchemaResponseValidationError is the validation error returned by PermissionLookupSchemaResponse.Validate if the designated constraints aren't met.

func (PermissionLookupSchemaResponseValidationError) Cause

Cause function returns cause value.

func (PermissionLookupSchemaResponseValidationError) Error

Error satisfies the builtin error interface

func (PermissionLookupSchemaResponseValidationError) ErrorName

ErrorName returns error name.

func (PermissionLookupSchemaResponseValidationError) Field

Field function returns field value.

func (PermissionLookupSchemaResponseValidationError) Key

Key function returns key value.

func (PermissionLookupSchemaResponseValidationError) Reason

Reason function returns reason value.

type PermissionServer

PermissionServer is the server API for Permission service. All implementations must embed UnimplementedPermissionServer for forward compatibility

type Permission_LookupEntityStreamClient

type Permission_LookupEntityStreamClient interface {
	Recv() (*PermissionLookupEntityStreamResponse, error)
	grpc.ClientStream
}

type Permission_LookupEntityStreamServer

type Permission_LookupEntityStreamServer interface {
	Send(*PermissionLookupEntityStreamResponse) error
	grpc.ServerStream
}

type RelationDefinition

type RelationDefinition struct {
	Name               string               `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	RelationReferences []*RelationReference `protobuf:"bytes,2,rep,name=relation_references,json=relationReferences,proto3" json:"relation_references,omitempty"`
	// contains filtered or unexported fields
}

RelationDefinition

func (*RelationDefinition) Descriptor deprecated

func (*RelationDefinition) Descriptor() ([]byte, []int)

Deprecated: Use RelationDefinition.ProtoReflect.Descriptor instead.

func (*RelationDefinition) GetName

func (x *RelationDefinition) GetName() string

func (*RelationDefinition) GetRelationReferences

func (x *RelationDefinition) GetRelationReferences() []*RelationReference

func (*RelationDefinition) ProtoMessage

func (*RelationDefinition) ProtoMessage()

func (*RelationDefinition) ProtoReflect

func (x *RelationDefinition) ProtoReflect() protoreflect.Message

func (*RelationDefinition) Reset

func (x *RelationDefinition) Reset()

func (*RelationDefinition) String

func (x *RelationDefinition) String() string

func (*RelationDefinition) Validate

func (m *RelationDefinition) Validate() error

Validate checks the field values on RelationDefinition with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*RelationDefinition) ValidateAll

func (m *RelationDefinition) ValidateAll() error

ValidateAll checks the field values on RelationDefinition with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RelationDefinitionMultiError, or nil if none found.

type RelationDefinitionMultiError

type RelationDefinitionMultiError []error

RelationDefinitionMultiError is an error wrapping multiple validation errors returned by RelationDefinition.ValidateAll() if the designated constraints aren't met.

func (RelationDefinitionMultiError) AllErrors

func (m RelationDefinitionMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RelationDefinitionMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type RelationDefinitionValidationError

type RelationDefinitionValidationError struct {
	// contains filtered or unexported fields
}

RelationDefinitionValidationError is the validation error returned by RelationDefinition.Validate if the designated constraints aren't met.

func (RelationDefinitionValidationError) Cause

Cause function returns cause value.

func (RelationDefinitionValidationError) Error

Error satisfies the builtin error interface

func (RelationDefinitionValidationError) ErrorName

ErrorName returns error name.

func (RelationDefinitionValidationError) Field

Field function returns field value.

func (RelationDefinitionValidationError) Key

Key function returns key value.

func (RelationDefinitionValidationError) Reason

Reason function returns reason value.

type RelationReference

type RelationReference struct {
	Type     string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Relation string `protobuf:"bytes,2,opt,name=relation,proto3" json:"relation,omitempty"`
	// contains filtered or unexported fields
}

RelationReference

func (*RelationReference) Descriptor deprecated

func (*RelationReference) Descriptor() ([]byte, []int)

Deprecated: Use RelationReference.ProtoReflect.Descriptor instead.

func (*RelationReference) GetRelation

func (x *RelationReference) GetRelation() string

func (*RelationReference) GetType

func (x *RelationReference) GetType() string

func (*RelationReference) ProtoMessage

func (*RelationReference) ProtoMessage()

func (*RelationReference) ProtoReflect

func (x *RelationReference) ProtoReflect() protoreflect.Message

func (*RelationReference) Reset

func (x *RelationReference) Reset()

func (*RelationReference) String

func (x *RelationReference) String() string

func (*RelationReference) Validate

func (m *RelationReference) Validate() error

Validate checks the field values on RelationReference with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*RelationReference) ValidateAll

func (m *RelationReference) ValidateAll() error

ValidateAll checks the field values on RelationReference with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RelationReferenceMultiError, or nil if none found.

type RelationReferenceMultiError

type RelationReferenceMultiError []error

RelationReferenceMultiError is an error wrapping multiple validation errors returned by RelationReference.ValidateAll() if the designated constraints aren't met.

func (RelationReferenceMultiError) AllErrors

func (m RelationReferenceMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RelationReferenceMultiError) Error

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

Cause function returns cause value.

func (RelationReferenceValidationError) Error

Error satisfies the builtin error interface

func (RelationReferenceValidationError) ErrorName

ErrorName returns error name.

func (RelationReferenceValidationError) Field

Field function returns field value.

func (RelationReferenceValidationError) Key

Key function returns key value.

func (RelationReferenceValidationError) Reason

Reason function returns reason value.

type RelationshipClient

RelationshipClient is the client API for Relationship 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.

type RelationshipDeleteRequest

type RelationshipDeleteRequest struct {
	TenantId string       `protobuf:"bytes,1,opt,name=tenant_id,proto3" json:"tenant_id,omitempty"`
	Filter   *TupleFilter `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"`
	// contains filtered or unexported fields
}

RelationshipDeleteRequest

func (*RelationshipDeleteRequest) Descriptor deprecated

func (*RelationshipDeleteRequest) Descriptor() ([]byte, []int)

Deprecated: Use RelationshipDeleteRequest.ProtoReflect.Descriptor instead.

func (*RelationshipDeleteRequest) GetFilter

func (x *RelationshipDeleteRequest) GetFilter() *TupleFilter

func (*RelationshipDeleteRequest) GetTenantId

func (x *RelationshipDeleteRequest) GetTenantId() string

func (*RelationshipDeleteRequest) ProtoMessage

func (*RelationshipDeleteRequest) ProtoMessage()

func (*RelationshipDeleteRequest) ProtoReflect

func (*RelationshipDeleteRequest) Reset

func (x *RelationshipDeleteRequest) Reset()

func (*RelationshipDeleteRequest) String

func (x *RelationshipDeleteRequest) String() string

func (*RelationshipDeleteRequest) Validate

func (m *RelationshipDeleteRequest) Validate() error

Validate checks the field values on RelationshipDeleteRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*RelationshipDeleteRequest) ValidateAll

func (m *RelationshipDeleteRequest) ValidateAll() error

ValidateAll checks the field values on RelationshipDeleteRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RelationshipDeleteRequestMultiError, or nil if none found.

type RelationshipDeleteRequestMultiError

type RelationshipDeleteRequestMultiError []error

RelationshipDeleteRequestMultiError is an error wrapping multiple validation errors returned by RelationshipDeleteRequest.ValidateAll() if the designated constraints aren't met.

func (RelationshipDeleteRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (RelationshipDeleteRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type RelationshipDeleteRequestValidationError

type RelationshipDeleteRequestValidationError struct {
	// contains filtered or unexported fields
}

RelationshipDeleteRequestValidationError is the validation error returned by RelationshipDeleteRequest.Validate if the designated constraints aren't met.

func (RelationshipDeleteRequestValidationError) Cause

Cause function returns cause value.

func (RelationshipDeleteRequestValidationError) Error

Error satisfies the builtin error interface

func (RelationshipDeleteRequestValidationError) ErrorName

ErrorName returns error name.

func (RelationshipDeleteRequestValidationError) Field

Field function returns field value.

func (RelationshipDeleteRequestValidationError) Key

Key function returns key value.

func (RelationshipDeleteRequestValidationError) Reason

Reason function returns reason value.

type RelationshipDeleteResponse

type RelationshipDeleteResponse struct {
	SnapToken string `protobuf:"bytes,1,opt,name=snap_token,proto3" json:"snap_token,omitempty"`
	// contains filtered or unexported fields
}

RelationshipDeleteResponse

func (*RelationshipDeleteResponse) Descriptor deprecated

func (*RelationshipDeleteResponse) Descriptor() ([]byte, []int)

Deprecated: Use RelationshipDeleteResponse.ProtoReflect.Descriptor instead.

func (*RelationshipDeleteResponse) GetSnapToken

func (x *RelationshipDeleteResponse) GetSnapToken() string

func (*RelationshipDeleteResponse) ProtoMessage

func (*RelationshipDeleteResponse) ProtoMessage()

func (*RelationshipDeleteResponse) ProtoReflect

func (*RelationshipDeleteResponse) Reset

func (x *RelationshipDeleteResponse) Reset()

func (*RelationshipDeleteResponse) String

func (x *RelationshipDeleteResponse) String() string

func (*RelationshipDeleteResponse) Validate

func (m *RelationshipDeleteResponse) Validate() error

Validate checks the field values on RelationshipDeleteResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*RelationshipDeleteResponse) ValidateAll

func (m *RelationshipDeleteResponse) ValidateAll() error

ValidateAll checks the field values on RelationshipDeleteResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RelationshipDeleteResponseMultiError, or nil if none found.

type RelationshipDeleteResponseMultiError

type RelationshipDeleteResponseMultiError []error

RelationshipDeleteResponseMultiError is an error wrapping multiple validation errors returned by RelationshipDeleteResponse.ValidateAll() if the designated constraints aren't met.

func (RelationshipDeleteResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (RelationshipDeleteResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type RelationshipDeleteResponseValidationError

type RelationshipDeleteResponseValidationError struct {
	// contains filtered or unexported fields
}

RelationshipDeleteResponseValidationError is the validation error returned by RelationshipDeleteResponse.Validate if the designated constraints aren't met.

func (RelationshipDeleteResponseValidationError) Cause

Cause function returns cause value.

func (RelationshipDeleteResponseValidationError) Error

Error satisfies the builtin error interface

func (RelationshipDeleteResponseValidationError) ErrorName

ErrorName returns error name.

func (RelationshipDeleteResponseValidationError) Field

Field function returns field value.

func (RelationshipDeleteResponseValidationError) Key

Key function returns key value.

func (RelationshipDeleteResponseValidationError) Reason

Reason function returns reason value.

type RelationshipReadRequest

type RelationshipReadRequest struct {
	TenantId        string                           `protobuf:"bytes,1,opt,name=tenant_id,proto3" json:"tenant_id,omitempty"`
	Metadata        *RelationshipReadRequestMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"`
	Filter          *TupleFilter                     `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"`
	PageSize        uint32                           `protobuf:"varint,4,opt,name=page_size,proto3" json:"page_size,omitempty"`
	ContinuousToken string                           `protobuf:"bytes,5,opt,name=continuous_token,proto3" json:"continuous_token,omitempty"`
	// contains filtered or unexported fields
}

RelationshipReadRequest

func (*RelationshipReadRequest) Descriptor deprecated

func (*RelationshipReadRequest) Descriptor() ([]byte, []int)

Deprecated: Use RelationshipReadRequest.ProtoReflect.Descriptor instead.

func (*RelationshipReadRequest) GetContinuousToken

func (x *RelationshipReadRequest) GetContinuousToken() string

func (*RelationshipReadRequest) GetFilter

func (x *RelationshipReadRequest) GetFilter() *TupleFilter

func (*RelationshipReadRequest) GetMetadata

func (*RelationshipReadRequest) GetPageSize

func (x *RelationshipReadRequest) GetPageSize() uint32

func (*RelationshipReadRequest) GetTenantId

func (x *RelationshipReadRequest) GetTenantId() string

func (*RelationshipReadRequest) ProtoMessage

func (*RelationshipReadRequest) ProtoMessage()

func (*RelationshipReadRequest) ProtoReflect

func (x *RelationshipReadRequest) ProtoReflect() protoreflect.Message

func (*RelationshipReadRequest) Reset

func (x *RelationshipReadRequest) Reset()

func (*RelationshipReadRequest) String

func (x *RelationshipReadRequest) String() string

func (*RelationshipReadRequest) Validate

func (m *RelationshipReadRequest) Validate() error

Validate checks the field values on RelationshipReadRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*RelationshipReadRequest) ValidateAll

func (m *RelationshipReadRequest) ValidateAll() error

ValidateAll checks the field values on RelationshipReadRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RelationshipReadRequestMultiError, or nil if none found.

type RelationshipReadRequestMetadata

type RelationshipReadRequestMetadata struct {
	SnapToken string `protobuf:"bytes,1,opt,name=snap_token,proto3" json:"snap_token,omitempty"`
	// contains filtered or unexported fields
}

RelationshipWriteRequestMetadata

func (*RelationshipReadRequestMetadata) Descriptor deprecated

func (*RelationshipReadRequestMetadata) Descriptor() ([]byte, []int)

Deprecated: Use RelationshipReadRequestMetadata.ProtoReflect.Descriptor instead.

func (*RelationshipReadRequestMetadata) GetSnapToken

func (x *RelationshipReadRequestMetadata) GetSnapToken() string

func (*RelationshipReadRequestMetadata) ProtoMessage

func (*RelationshipReadRequestMetadata) ProtoMessage()

func (*RelationshipReadRequestMetadata) ProtoReflect

func (*RelationshipReadRequestMetadata) Reset

func (*RelationshipReadRequestMetadata) String

func (*RelationshipReadRequestMetadata) Validate

func (m *RelationshipReadRequestMetadata) Validate() error

Validate checks the field values on RelationshipReadRequestMetadata 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 (*RelationshipReadRequestMetadata) ValidateAll

func (m *RelationshipReadRequestMetadata) ValidateAll() error

ValidateAll checks the field values on RelationshipReadRequestMetadata 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 RelationshipReadRequestMetadataMultiError, or nil if none found.

type RelationshipReadRequestMetadataMultiError

type RelationshipReadRequestMetadataMultiError []error

RelationshipReadRequestMetadataMultiError is an error wrapping multiple validation errors returned by RelationshipReadRequestMetadata.ValidateAll() if the designated constraints aren't met.

func (RelationshipReadRequestMetadataMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (RelationshipReadRequestMetadataMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type RelationshipReadRequestMetadataValidationError

type RelationshipReadRequestMetadataValidationError struct {
	// contains filtered or unexported fields
}

RelationshipReadRequestMetadataValidationError is the validation error returned by RelationshipReadRequestMetadata.Validate if the designated constraints aren't met.

func (RelationshipReadRequestMetadataValidationError) Cause

Cause function returns cause value.

func (RelationshipReadRequestMetadataValidationError) Error

Error satisfies the builtin error interface

func (RelationshipReadRequestMetadataValidationError) ErrorName

ErrorName returns error name.

func (RelationshipReadRequestMetadataValidationError) Field

Field function returns field value.

func (RelationshipReadRequestMetadataValidationError) Key

Key function returns key value.

func (RelationshipReadRequestMetadataValidationError) Reason

Reason function returns reason value.

type RelationshipReadRequestMultiError

type RelationshipReadRequestMultiError []error

RelationshipReadRequestMultiError is an error wrapping multiple validation errors returned by RelationshipReadRequest.ValidateAll() if the designated constraints aren't met.

func (RelationshipReadRequestMultiError) AllErrors

func (m RelationshipReadRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RelationshipReadRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type RelationshipReadRequestValidationError

type RelationshipReadRequestValidationError struct {
	// contains filtered or unexported fields
}

RelationshipReadRequestValidationError is the validation error returned by RelationshipReadRequest.Validate if the designated constraints aren't met.

func (RelationshipReadRequestValidationError) Cause

Cause function returns cause value.

func (RelationshipReadRequestValidationError) Error

Error satisfies the builtin error interface

func (RelationshipReadRequestValidationError) ErrorName

ErrorName returns error name.

func (RelationshipReadRequestValidationError) Field

Field function returns field value.

func (RelationshipReadRequestValidationError) Key

Key function returns key value.

func (RelationshipReadRequestValidationError) Reason

Reason function returns reason value.

type RelationshipReadResponse

type RelationshipReadResponse struct {
	Tuples          []*Tuple `protobuf:"bytes,1,rep,name=tuples,proto3" json:"tuples,omitempty"`
	ContinuousToken string   `protobuf:"bytes,2,opt,name=continuous_token,proto3" json:"continuous_token,omitempty"`
	// contains filtered or unexported fields
}

RelationshipReadResponse

func (*RelationshipReadResponse) Descriptor deprecated

func (*RelationshipReadResponse) Descriptor() ([]byte, []int)

Deprecated: Use RelationshipReadResponse.ProtoReflect.Descriptor instead.

func (*RelationshipReadResponse) GetContinuousToken

func (x *RelationshipReadResponse) GetContinuousToken() string

func (*RelationshipReadResponse) GetTuples

func (x *RelationshipReadResponse) GetTuples() []*Tuple

func (*RelationshipReadResponse) ProtoMessage

func (*RelationshipReadResponse) ProtoMessage()

func (*RelationshipReadResponse) ProtoReflect

func (x *RelationshipReadResponse) ProtoReflect() protoreflect.Message

func (*RelationshipReadResponse) Reset

func (x *RelationshipReadResponse) Reset()

func (*RelationshipReadResponse) String

func (x *RelationshipReadResponse) String() string

func (*RelationshipReadResponse) Validate

func (m *RelationshipReadResponse) Validate() error

Validate checks the field values on RelationshipReadResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*RelationshipReadResponse) ValidateAll

func (m *RelationshipReadResponse) ValidateAll() error

ValidateAll checks the field values on RelationshipReadResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RelationshipReadResponseMultiError, or nil if none found.

type RelationshipReadResponseMultiError

type RelationshipReadResponseMultiError []error

RelationshipReadResponseMultiError is an error wrapping multiple validation errors returned by RelationshipReadResponse.ValidateAll() if the designated constraints aren't met.

func (RelationshipReadResponseMultiError) AllErrors

func (m RelationshipReadResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RelationshipReadResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type RelationshipReadResponseValidationError

type RelationshipReadResponseValidationError struct {
	// contains filtered or unexported fields
}

RelationshipReadResponseValidationError is the validation error returned by RelationshipReadResponse.Validate if the designated constraints aren't met.

func (RelationshipReadResponseValidationError) Cause

Cause function returns cause value.

func (RelationshipReadResponseValidationError) Error

Error satisfies the builtin error interface

func (RelationshipReadResponseValidationError) ErrorName

ErrorName returns error name.

func (RelationshipReadResponseValidationError) Field

Field function returns field value.

func (RelationshipReadResponseValidationError) Key

Key function returns key value.

func (RelationshipReadResponseValidationError) Reason

Reason function returns reason value.

type RelationshipServer

type RelationshipServer interface {
	Write(context.Context, *RelationshipWriteRequest) (*RelationshipWriteResponse, error)
	Read(context.Context, *RelationshipReadRequest) (*RelationshipReadResponse, error)
	Delete(context.Context, *RelationshipDeleteRequest) (*RelationshipDeleteResponse, error)
	// contains filtered or unexported methods
}

RelationshipServer is the server API for Relationship service. All implementations must embed UnimplementedRelationshipServer for forward compatibility

type RelationshipWriteRequest

type RelationshipWriteRequest struct {
	TenantId string                            `protobuf:"bytes,1,opt,name=tenant_id,proto3" json:"tenant_id,omitempty"`
	Metadata *RelationshipWriteRequestMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"`
	Tuples   []*Tuple                          `protobuf:"bytes,3,rep,name=tuples,proto3" json:"tuples,omitempty"`
	// contains filtered or unexported fields
}

RelationshipWriteRequest

func (*RelationshipWriteRequest) Descriptor deprecated

func (*RelationshipWriteRequest) Descriptor() ([]byte, []int)

Deprecated: Use RelationshipWriteRequest.ProtoReflect.Descriptor instead.

func (*RelationshipWriteRequest) GetMetadata

func (*RelationshipWriteRequest) GetTenantId

func (x *RelationshipWriteRequest) GetTenantId() string

func (*RelationshipWriteRequest) GetTuples

func (x *RelationshipWriteRequest) GetTuples() []*Tuple

func (*RelationshipWriteRequest) ProtoMessage

func (*RelationshipWriteRequest) ProtoMessage()

func (*RelationshipWriteRequest) ProtoReflect

func (x *RelationshipWriteRequest) ProtoReflect() protoreflect.Message

func (*RelationshipWriteRequest) Reset

func (x *RelationshipWriteRequest) Reset()

func (*RelationshipWriteRequest) String

func (x *RelationshipWriteRequest) String() string

func (*RelationshipWriteRequest) Validate

func (m *RelationshipWriteRequest) Validate() error

Validate checks the field values on RelationshipWriteRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*RelationshipWriteRequest) ValidateAll

func (m *RelationshipWriteRequest) ValidateAll() error

ValidateAll checks the field values on RelationshipWriteRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RelationshipWriteRequestMultiError, or nil if none found.

type RelationshipWriteRequestMetadata

type RelationshipWriteRequestMetadata struct {
	SchemaVersion string `protobuf:"bytes,1,opt,name=schema_version,proto3" json:"schema_version,omitempty"`
	// contains filtered or unexported fields
}

RelationshipWriteRequestMetadata

func (*RelationshipWriteRequestMetadata) Descriptor deprecated

func (*RelationshipWriteRequestMetadata) Descriptor() ([]byte, []int)

Deprecated: Use RelationshipWriteRequestMetadata.ProtoReflect.Descriptor instead.

func (*RelationshipWriteRequestMetadata) GetSchemaVersion

func (x *RelationshipWriteRequestMetadata) GetSchemaVersion() string

func (*RelationshipWriteRequestMetadata) ProtoMessage

func (*RelationshipWriteRequestMetadata) ProtoMessage()

func (*RelationshipWriteRequestMetadata) ProtoReflect

func (*RelationshipWriteRequestMetadata) Reset

func (*RelationshipWriteRequestMetadata) String

func (*RelationshipWriteRequestMetadata) Validate

Validate checks the field values on RelationshipWriteRequestMetadata 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 (*RelationshipWriteRequestMetadata) ValidateAll

func (m *RelationshipWriteRequestMetadata) ValidateAll() error

ValidateAll checks the field values on RelationshipWriteRequestMetadata 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 RelationshipWriteRequestMetadataMultiError, or nil if none found.

type RelationshipWriteRequestMetadataMultiError

type RelationshipWriteRequestMetadataMultiError []error

RelationshipWriteRequestMetadataMultiError is an error wrapping multiple validation errors returned by RelationshipWriteRequestMetadata.ValidateAll() if the designated constraints aren't met.

func (RelationshipWriteRequestMetadataMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (RelationshipWriteRequestMetadataMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type RelationshipWriteRequestMetadataValidationError

type RelationshipWriteRequestMetadataValidationError struct {
	// contains filtered or unexported fields
}

RelationshipWriteRequestMetadataValidationError is the validation error returned by RelationshipWriteRequestMetadata.Validate if the designated constraints aren't met.

func (RelationshipWriteRequestMetadataValidationError) Cause

Cause function returns cause value.

func (RelationshipWriteRequestMetadataValidationError) Error

Error satisfies the builtin error interface

func (RelationshipWriteRequestMetadataValidationError) ErrorName

ErrorName returns error name.

func (RelationshipWriteRequestMetadataValidationError) Field

Field function returns field value.

func (RelationshipWriteRequestMetadataValidationError) Key

Key function returns key value.

func (RelationshipWriteRequestMetadataValidationError) Reason

Reason function returns reason value.

type RelationshipWriteRequestMultiError

type RelationshipWriteRequestMultiError []error

RelationshipWriteRequestMultiError is an error wrapping multiple validation errors returned by RelationshipWriteRequest.ValidateAll() if the designated constraints aren't met.

func (RelationshipWriteRequestMultiError) AllErrors

func (m RelationshipWriteRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RelationshipWriteRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type RelationshipWriteRequestValidationError

type RelationshipWriteRequestValidationError struct {
	// contains filtered or unexported fields
}

RelationshipWriteRequestValidationError is the validation error returned by RelationshipWriteRequest.Validate if the designated constraints aren't met.

func (RelationshipWriteRequestValidationError) Cause

Cause function returns cause value.

func (RelationshipWriteRequestValidationError) Error

Error satisfies the builtin error interface

func (RelationshipWriteRequestValidationError) ErrorName

ErrorName returns error name.

func (RelationshipWriteRequestValidationError) Field

Field function returns field value.

func (RelationshipWriteRequestValidationError) Key

Key function returns key value.

func (RelationshipWriteRequestValidationError) Reason

Reason function returns reason value.

type RelationshipWriteResponse

type RelationshipWriteResponse struct {
	SnapToken string `protobuf:"bytes,1,opt,name=snap_token,proto3" json:"snap_token,omitempty"`
	// contains filtered or unexported fields
}

RelationshipWriteResponse

func (*RelationshipWriteResponse) Descriptor deprecated

func (*RelationshipWriteResponse) Descriptor() ([]byte, []int)

Deprecated: Use RelationshipWriteResponse.ProtoReflect.Descriptor instead.

func (*RelationshipWriteResponse) GetSnapToken

func (x *RelationshipWriteResponse) GetSnapToken() string

func (*RelationshipWriteResponse) ProtoMessage

func (*RelationshipWriteResponse) ProtoMessage()

func (*RelationshipWriteResponse) ProtoReflect

func (*RelationshipWriteResponse) Reset

func (x *RelationshipWriteResponse) Reset()

func (*RelationshipWriteResponse) String

func (x *RelationshipWriteResponse) String() string

func (*RelationshipWriteResponse) Validate

func (m *RelationshipWriteResponse) Validate() error

Validate checks the field values on RelationshipWriteResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*RelationshipWriteResponse) ValidateAll

func (m *RelationshipWriteResponse) ValidateAll() error

ValidateAll checks the field values on RelationshipWriteResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RelationshipWriteResponseMultiError, or nil if none found.

type RelationshipWriteResponseMultiError

type RelationshipWriteResponseMultiError []error

RelationshipWriteResponseMultiError is an error wrapping multiple validation errors returned by RelationshipWriteResponse.ValidateAll() if the designated constraints aren't met.

func (RelationshipWriteResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (RelationshipWriteResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type RelationshipWriteResponseValidationError

type RelationshipWriteResponseValidationError struct {
	// contains filtered or unexported fields
}

RelationshipWriteResponseValidationError is the validation error returned by RelationshipWriteResponse.Validate if the designated constraints aren't met.

func (RelationshipWriteResponseValidationError) Cause

Cause function returns cause value.

func (RelationshipWriteResponseValidationError) Error

Error satisfies the builtin error interface

func (RelationshipWriteResponseValidationError) ErrorName

ErrorName returns error name.

func (RelationshipWriteResponseValidationError) Field

Field function returns field value.

func (RelationshipWriteResponseValidationError) Key

Key function returns key value.

func (RelationshipWriteResponseValidationError) Reason

Reason function returns reason value.

type Result

type Result struct {
	Target    *EntityAndRelation `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"`
	Exclusion bool               `protobuf:"varint,2,opt,name=exclusion,proto3" json:"exclusion,omitempty"`
	Subjects  []*Subject         `protobuf:"bytes,3,rep,name=subjects,proto3" json:"subjects,omitempty"`
	// contains filtered or unexported fields
}

Result

func (*Result) Descriptor deprecated

func (*Result) Descriptor() ([]byte, []int)

Deprecated: Use Result.ProtoReflect.Descriptor instead.

func (*Result) GetExclusion

func (x *Result) GetExclusion() bool

func (*Result) GetSubjects

func (x *Result) GetSubjects() []*Subject

func (*Result) GetTarget

func (x *Result) GetTarget() *EntityAndRelation

func (*Result) ProtoMessage

func (*Result) ProtoMessage()

func (*Result) ProtoReflect

func (x *Result) ProtoReflect() protoreflect.Message

func (*Result) Reset

func (x *Result) Reset()

func (*Result) String

func (x *Result) String() string

func (*Result) Validate

func (m *Result) Validate() error

Validate checks the field values on Result 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 (*Result) ValidateAll

func (m *Result) ValidateAll() error

ValidateAll checks the field values on Result 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 ResultMultiError, or nil if none found.

type ResultMultiError

type ResultMultiError []error

ResultMultiError is an error wrapping multiple validation errors returned by Result.ValidateAll() if the designated constraints aren't met.

func (ResultMultiError) AllErrors

func (m ResultMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ResultMultiError) Error

func (m ResultMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ResultValidationError

type ResultValidationError struct {
	// contains filtered or unexported fields
}

ResultValidationError is the validation error returned by Result.Validate if the designated constraints aren't met.

func (ResultValidationError) Cause

func (e ResultValidationError) Cause() error

Cause function returns cause value.

func (ResultValidationError) Error

func (e ResultValidationError) Error() string

Error satisfies the builtin error interface

func (ResultValidationError) ErrorName

func (e ResultValidationError) ErrorName() string

ErrorName returns error name.

func (ResultValidationError) Field

func (e ResultValidationError) Field() string

Field function returns field value.

func (ResultValidationError) Key

func (e ResultValidationError) Key() bool

Key function returns key value.

func (ResultValidationError) Reason

func (e ResultValidationError) Reason() string

Reason function returns reason value.

type Rewrite

type Rewrite struct {
	RewriteOperation Rewrite_Operation `` /* 141-byte string literal not displayed */
	Children         []*Child          `protobuf:"bytes,2,rep,name=children,proto3" json:"children,omitempty"`
	// contains filtered or unexported fields
}

Rewrite

func (*Rewrite) Descriptor deprecated

func (*Rewrite) Descriptor() ([]byte, []int)

Deprecated: Use Rewrite.ProtoReflect.Descriptor instead.

func (*Rewrite) GetChildren

func (x *Rewrite) GetChildren() []*Child

func (*Rewrite) GetRewriteOperation

func (x *Rewrite) GetRewriteOperation() Rewrite_Operation

func (*Rewrite) ProtoMessage

func (*Rewrite) ProtoMessage()

func (*Rewrite) ProtoReflect

func (x *Rewrite) ProtoReflect() protoreflect.Message

func (*Rewrite) Reset

func (x *Rewrite) Reset()

func (*Rewrite) String

func (x *Rewrite) String() string

func (*Rewrite) Validate

func (m *Rewrite) Validate() error

Validate checks the field values on Rewrite with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Rewrite) ValidateAll

func (m *Rewrite) ValidateAll() error

ValidateAll checks the field values on Rewrite with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RewriteMultiError, or nil if none found.

type RewriteMultiError

type RewriteMultiError []error

RewriteMultiError is an error wrapping multiple validation errors returned by Rewrite.ValidateAll() if the designated constraints aren't met.

func (RewriteMultiError) AllErrors

func (m RewriteMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RewriteMultiError) Error

func (m RewriteMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type RewriteValidationError

type RewriteValidationError struct {
	// contains filtered or unexported fields
}

RewriteValidationError is the validation error returned by Rewrite.Validate if the designated constraints aren't met.

func (RewriteValidationError) Cause

func (e RewriteValidationError) Cause() error

Cause function returns cause value.

func (RewriteValidationError) Error

func (e RewriteValidationError) Error() string

Error satisfies the builtin error interface

func (RewriteValidationError) ErrorName

func (e RewriteValidationError) ErrorName() string

ErrorName returns error name.

func (RewriteValidationError) Field

func (e RewriteValidationError) Field() string

Field function returns field value.

func (RewriteValidationError) Key

func (e RewriteValidationError) Key() bool

Key function returns key value.

func (RewriteValidationError) Reason

func (e RewriteValidationError) Reason() string

Reason function returns reason value.

type Rewrite_Operation

type Rewrite_Operation int32

Operation

const (
	Rewrite_OPERATION_UNSPECIFIED  Rewrite_Operation = 0
	Rewrite_OPERATION_UNION        Rewrite_Operation = 1
	Rewrite_OPERATION_INTERSECTION Rewrite_Operation = 2
)

func (Rewrite_Operation) Descriptor

func (Rewrite_Operation) Enum

func (Rewrite_Operation) EnumDescriptor deprecated

func (Rewrite_Operation) EnumDescriptor() ([]byte, []int)

Deprecated: Use Rewrite_Operation.Descriptor instead.

func (Rewrite_Operation) Number

func (Rewrite_Operation) String

func (x Rewrite_Operation) String() string

func (Rewrite_Operation) Type

type SchemaClient

type SchemaClient interface {
	Write(ctx context.Context, in *SchemaWriteRequest, opts ...grpc.CallOption) (*SchemaWriteResponse, error)
	Read(ctx context.Context, in *SchemaReadRequest, opts ...grpc.CallOption) (*SchemaReadResponse, error)
}

SchemaClient is the client API for Schema 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 NewSchemaClient

func NewSchemaClient(cc grpc.ClientConnInterface) SchemaClient

type SchemaDefinition

type SchemaDefinition struct {
	EntityDefinitions map[string]*EntityDefinition `` /* 200-byte string literal not displayed */
	// contains filtered or unexported fields
}

Definition

func (*SchemaDefinition) Descriptor deprecated

func (*SchemaDefinition) Descriptor() ([]byte, []int)

Deprecated: Use SchemaDefinition.ProtoReflect.Descriptor instead.

func (*SchemaDefinition) GetEntityDefinitions

func (x *SchemaDefinition) GetEntityDefinitions() map[string]*EntityDefinition

func (*SchemaDefinition) ProtoMessage

func (*SchemaDefinition) ProtoMessage()

func (*SchemaDefinition) ProtoReflect

func (x *SchemaDefinition) ProtoReflect() protoreflect.Message

func (*SchemaDefinition) Reset

func (x *SchemaDefinition) Reset()

func (*SchemaDefinition) String

func (x *SchemaDefinition) String() string

func (*SchemaDefinition) Validate

func (m *SchemaDefinition) Validate() error

Validate checks the field values on SchemaDefinition 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 (*SchemaDefinition) ValidateAll

func (m *SchemaDefinition) ValidateAll() error

ValidateAll checks the field values on SchemaDefinition 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 SchemaDefinitionMultiError, or nil if none found.

type SchemaDefinitionMultiError

type SchemaDefinitionMultiError []error

SchemaDefinitionMultiError is an error wrapping multiple validation errors returned by SchemaDefinition.ValidateAll() if the designated constraints aren't met.

func (SchemaDefinitionMultiError) AllErrors

func (m SchemaDefinitionMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SchemaDefinitionMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type SchemaDefinitionValidationError

type SchemaDefinitionValidationError struct {
	// contains filtered or unexported fields
}

SchemaDefinitionValidationError is the validation error returned by SchemaDefinition.Validate if the designated constraints aren't met.

func (SchemaDefinitionValidationError) Cause

Cause function returns cause value.

func (SchemaDefinitionValidationError) Error

Error satisfies the builtin error interface

func (SchemaDefinitionValidationError) ErrorName

ErrorName returns error name.

func (SchemaDefinitionValidationError) Field

Field function returns field value.

func (SchemaDefinitionValidationError) Key

Key function returns key value.

func (SchemaDefinitionValidationError) Reason

Reason function returns reason value.

type SchemaReadRequest

type SchemaReadRequest struct {
	TenantId string                     `protobuf:"bytes,1,opt,name=tenant_id,proto3" json:"tenant_id,omitempty"`
	Metadata *SchemaReadRequestMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// contains filtered or unexported fields
}

SchemaReadRequest

func (*SchemaReadRequest) Descriptor deprecated

func (*SchemaReadRequest) Descriptor() ([]byte, []int)

Deprecated: Use SchemaReadRequest.ProtoReflect.Descriptor instead.

func (*SchemaReadRequest) GetMetadata

func (x *SchemaReadRequest) GetMetadata() *SchemaReadRequestMetadata

func (*SchemaReadRequest) GetTenantId

func (x *SchemaReadRequest) GetTenantId() string

func (*SchemaReadRequest) ProtoMessage

func (*SchemaReadRequest) ProtoMessage()

func (*SchemaReadRequest) ProtoReflect

func (x *SchemaReadRequest) ProtoReflect() protoreflect.Message

func (*SchemaReadRequest) Reset

func (x *SchemaReadRequest) Reset()

func (*SchemaReadRequest) String

func (x *SchemaReadRequest) String() string

func (*SchemaReadRequest) Validate

func (m *SchemaReadRequest) Validate() error

Validate checks the field values on SchemaReadRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*SchemaReadRequest) ValidateAll

func (m *SchemaReadRequest) ValidateAll() error

ValidateAll checks the field values on SchemaReadRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SchemaReadRequestMultiError, or nil if none found.

type SchemaReadRequestMetadata

type SchemaReadRequestMetadata struct {
	SchemaVersion string `protobuf:"bytes,1,opt,name=schema_version,proto3" json:"schema_version,omitempty"`
	// contains filtered or unexported fields
}

SchemaReadRequestMetadata

func (*SchemaReadRequestMetadata) Descriptor deprecated

func (*SchemaReadRequestMetadata) Descriptor() ([]byte, []int)

Deprecated: Use SchemaReadRequestMetadata.ProtoReflect.Descriptor instead.

func (*SchemaReadRequestMetadata) GetSchemaVersion

func (x *SchemaReadRequestMetadata) GetSchemaVersion() string

func (*SchemaReadRequestMetadata) ProtoMessage

func (*SchemaReadRequestMetadata) ProtoMessage()

func (*SchemaReadRequestMetadata) ProtoReflect

func (*SchemaReadRequestMetadata) Reset

func (x *SchemaReadRequestMetadata) Reset()

func (*SchemaReadRequestMetadata) String

func (x *SchemaReadRequestMetadata) String() string

func (*SchemaReadRequestMetadata) Validate

func (m *SchemaReadRequestMetadata) Validate() error

Validate checks the field values on SchemaReadRequestMetadata 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 (*SchemaReadRequestMetadata) ValidateAll

func (m *SchemaReadRequestMetadata) ValidateAll() error

ValidateAll checks the field values on SchemaReadRequestMetadata 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 SchemaReadRequestMetadataMultiError, or nil if none found.

type SchemaReadRequestMetadataMultiError

type SchemaReadRequestMetadataMultiError []error

SchemaReadRequestMetadataMultiError is an error wrapping multiple validation errors returned by SchemaReadRequestMetadata.ValidateAll() if the designated constraints aren't met.

func (SchemaReadRequestMetadataMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (SchemaReadRequestMetadataMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type SchemaReadRequestMetadataValidationError

type SchemaReadRequestMetadataValidationError struct {
	// contains filtered or unexported fields
}

SchemaReadRequestMetadataValidationError is the validation error returned by SchemaReadRequestMetadata.Validate if the designated constraints aren't met.

func (SchemaReadRequestMetadataValidationError) Cause

Cause function returns cause value.

func (SchemaReadRequestMetadataValidationError) Error

Error satisfies the builtin error interface

func (SchemaReadRequestMetadataValidationError) ErrorName

ErrorName returns error name.

func (SchemaReadRequestMetadataValidationError) Field

Field function returns field value.

func (SchemaReadRequestMetadataValidationError) Key

Key function returns key value.

func (SchemaReadRequestMetadataValidationError) Reason

Reason function returns reason value.

type SchemaReadRequestMultiError

type SchemaReadRequestMultiError []error

SchemaReadRequestMultiError is an error wrapping multiple validation errors returned by SchemaReadRequest.ValidateAll() if the designated constraints aren't met.

func (SchemaReadRequestMultiError) AllErrors

func (m SchemaReadRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SchemaReadRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type SchemaReadRequestValidationError

type SchemaReadRequestValidationError struct {
	// contains filtered or unexported fields
}

SchemaReadRequestValidationError is the validation error returned by SchemaReadRequest.Validate if the designated constraints aren't met.

func (SchemaReadRequestValidationError) Cause

Cause function returns cause value.

func (SchemaReadRequestValidationError) Error

Error satisfies the builtin error interface

func (SchemaReadRequestValidationError) ErrorName

ErrorName returns error name.

func (SchemaReadRequestValidationError) Field

Field function returns field value.

func (SchemaReadRequestValidationError) Key

Key function returns key value.

func (SchemaReadRequestValidationError) Reason

Reason function returns reason value.

type SchemaReadResponse

type SchemaReadResponse struct {
	Schema *SchemaDefinition `protobuf:"bytes,1,opt,name=schema,proto3" json:"schema,omitempty"`
	// contains filtered or unexported fields
}

SchemaReadRequest

func (*SchemaReadResponse) Descriptor deprecated

func (*SchemaReadResponse) Descriptor() ([]byte, []int)

Deprecated: Use SchemaReadResponse.ProtoReflect.Descriptor instead.

func (*SchemaReadResponse) GetSchema

func (x *SchemaReadResponse) GetSchema() *SchemaDefinition

func (*SchemaReadResponse) ProtoMessage

func (*SchemaReadResponse) ProtoMessage()

func (*SchemaReadResponse) ProtoReflect

func (x *SchemaReadResponse) ProtoReflect() protoreflect.Message

func (*SchemaReadResponse) Reset

func (x *SchemaReadResponse) Reset()

func (*SchemaReadResponse) String

func (x *SchemaReadResponse) String() string

func (*SchemaReadResponse) Validate

func (m *SchemaReadResponse) Validate() error

Validate checks the field values on SchemaReadResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*SchemaReadResponse) ValidateAll

func (m *SchemaReadResponse) ValidateAll() error

ValidateAll checks the field values on SchemaReadResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SchemaReadResponseMultiError, or nil if none found.

type SchemaReadResponseMultiError

type SchemaReadResponseMultiError []error

SchemaReadResponseMultiError is an error wrapping multiple validation errors returned by SchemaReadResponse.ValidateAll() if the designated constraints aren't met.

func (SchemaReadResponseMultiError) AllErrors

func (m SchemaReadResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SchemaReadResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type SchemaReadResponseValidationError

type SchemaReadResponseValidationError struct {
	// contains filtered or unexported fields
}

SchemaReadResponseValidationError is the validation error returned by SchemaReadResponse.Validate if the designated constraints aren't met.

func (SchemaReadResponseValidationError) Cause

Cause function returns cause value.

func (SchemaReadResponseValidationError) Error

Error satisfies the builtin error interface

func (SchemaReadResponseValidationError) ErrorName

ErrorName returns error name.

func (SchemaReadResponseValidationError) Field

Field function returns field value.

func (SchemaReadResponseValidationError) Key

Key function returns key value.

func (SchemaReadResponseValidationError) Reason

Reason function returns reason value.

type SchemaServer

type SchemaServer interface {
	Write(context.Context, *SchemaWriteRequest) (*SchemaWriteResponse, error)
	Read(context.Context, *SchemaReadRequest) (*SchemaReadResponse, error)
	// contains filtered or unexported methods
}

SchemaServer is the server API for Schema service. All implementations must embed UnimplementedSchemaServer for forward compatibility

type SchemaWriteRequest

type SchemaWriteRequest struct {
	TenantId string `protobuf:"bytes,1,opt,name=tenant_id,proto3" json:"tenant_id,omitempty"`
	Schema   string `protobuf:"bytes,2,opt,name=schema,proto3" json:"schema,omitempty"`
	// contains filtered or unexported fields
}

SchemaWriteRequest

func (*SchemaWriteRequest) Descriptor deprecated

func (*SchemaWriteRequest) Descriptor() ([]byte, []int)

Deprecated: Use SchemaWriteRequest.ProtoReflect.Descriptor instead.

func (*SchemaWriteRequest) GetSchema

func (x *SchemaWriteRequest) GetSchema() string

func (*SchemaWriteRequest) GetTenantId

func (x *SchemaWriteRequest) GetTenantId() string

func (*SchemaWriteRequest) ProtoMessage

func (*SchemaWriteRequest) ProtoMessage()

func (*SchemaWriteRequest) ProtoReflect

func (x *SchemaWriteRequest) ProtoReflect() protoreflect.Message

func (*SchemaWriteRequest) Reset

func (x *SchemaWriteRequest) Reset()

func (*SchemaWriteRequest) String

func (x *SchemaWriteRequest) String() string

func (*SchemaWriteRequest) Validate

func (m *SchemaWriteRequest) Validate() error

Validate checks the field values on SchemaWriteRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*SchemaWriteRequest) ValidateAll

func (m *SchemaWriteRequest) ValidateAll() error

ValidateAll checks the field values on SchemaWriteRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SchemaWriteRequestMultiError, or nil if none found.

type SchemaWriteRequestMultiError

type SchemaWriteRequestMultiError []error

SchemaWriteRequestMultiError is an error wrapping multiple validation errors returned by SchemaWriteRequest.ValidateAll() if the designated constraints aren't met.

func (SchemaWriteRequestMultiError) AllErrors

func (m SchemaWriteRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SchemaWriteRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type SchemaWriteRequestValidationError

type SchemaWriteRequestValidationError struct {
	// contains filtered or unexported fields
}

SchemaWriteRequestValidationError is the validation error returned by SchemaWriteRequest.Validate if the designated constraints aren't met.

func (SchemaWriteRequestValidationError) Cause

Cause function returns cause value.

func (SchemaWriteRequestValidationError) Error

Error satisfies the builtin error interface

func (SchemaWriteRequestValidationError) ErrorName

ErrorName returns error name.

func (SchemaWriteRequestValidationError) Field

Field function returns field value.

func (SchemaWriteRequestValidationError) Key

Key function returns key value.

func (SchemaWriteRequestValidationError) Reason

Reason function returns reason value.

type SchemaWriteResponse

type SchemaWriteResponse struct {
	SchemaVersion string `protobuf:"bytes,1,opt,name=schema_version,proto3" json:"schema_version,omitempty"`
	// contains filtered or unexported fields
}

SchemaWriteResponse

func (*SchemaWriteResponse) Descriptor deprecated

func (*SchemaWriteResponse) Descriptor() ([]byte, []int)

Deprecated: Use SchemaWriteResponse.ProtoReflect.Descriptor instead.

func (*SchemaWriteResponse) GetSchemaVersion

func (x *SchemaWriteResponse) GetSchemaVersion() string

func (*SchemaWriteResponse) ProtoMessage

func (*SchemaWriteResponse) ProtoMessage()

func (*SchemaWriteResponse) ProtoReflect

func (x *SchemaWriteResponse) ProtoReflect() protoreflect.Message

func (*SchemaWriteResponse) Reset

func (x *SchemaWriteResponse) Reset()

func (*SchemaWriteResponse) String

func (x *SchemaWriteResponse) String() string

func (*SchemaWriteResponse) Validate

func (m *SchemaWriteResponse) Validate() error

Validate checks the field values on SchemaWriteResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*SchemaWriteResponse) ValidateAll

func (m *SchemaWriteResponse) ValidateAll() error

ValidateAll checks the field values on SchemaWriteResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SchemaWriteResponseMultiError, or nil if none found.

type SchemaWriteResponseMultiError

type SchemaWriteResponseMultiError []error

SchemaWriteResponseMultiError is an error wrapping multiple validation errors returned by SchemaWriteResponse.ValidateAll() if the designated constraints aren't met.

func (SchemaWriteResponseMultiError) AllErrors

func (m SchemaWriteResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SchemaWriteResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type SchemaWriteResponseValidationError

type SchemaWriteResponseValidationError struct {
	// contains filtered or unexported fields
}

SchemaWriteResponseValidationError is the validation error returned by SchemaWriteResponse.Validate if the designated constraints aren't met.

func (SchemaWriteResponseValidationError) Cause

Cause function returns cause value.

func (SchemaWriteResponseValidationError) Error

Error satisfies the builtin error interface

func (SchemaWriteResponseValidationError) ErrorName

ErrorName returns error name.

func (SchemaWriteResponseValidationError) Field

Field function returns field value.

func (SchemaWriteResponseValidationError) Key

Key function returns key value.

func (SchemaWriteResponseValidationError) Reason

Reason function returns reason value.

type Subject

type Subject struct {
	Type     string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Id       string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	Relation string `protobuf:"bytes,3,opt,name=relation,proto3" json:"relation,omitempty"`
	// contains filtered or unexported fields
}

Subject

func (*Subject) Descriptor deprecated

func (*Subject) Descriptor() ([]byte, []int)

Deprecated: Use Subject.ProtoReflect.Descriptor instead.

func (*Subject) GetId

func (x *Subject) GetId() string

func (*Subject) GetRelation

func (x *Subject) GetRelation() string

func (*Subject) GetType

func (x *Subject) GetType() string

func (*Subject) ProtoMessage

func (*Subject) ProtoMessage()

func (*Subject) ProtoReflect

func (x *Subject) ProtoReflect() protoreflect.Message

func (*Subject) Reset

func (x *Subject) Reset()

func (*Subject) String

func (x *Subject) String() string

func (*Subject) Validate

func (m *Subject) Validate() error

Validate checks the field values on Subject with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Subject) ValidateAll

func (m *Subject) ValidateAll() error

ValidateAll checks the field values on Subject with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SubjectMultiError, or nil if none found.

type SubjectFilter

type SubjectFilter struct {
	Type     string   `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Ids      []string `protobuf:"bytes,2,rep,name=ids,proto3" json:"ids,omitempty"`
	Relation string   `protobuf:"bytes,3,opt,name=relation,proto3" json:"relation,omitempty"`
	// contains filtered or unexported fields
}

SubjectFilter is used to filter subjects

func (*SubjectFilter) Descriptor deprecated

func (*SubjectFilter) Descriptor() ([]byte, []int)

Deprecated: Use SubjectFilter.ProtoReflect.Descriptor instead.

func (*SubjectFilter) GetIds

func (x *SubjectFilter) GetIds() []string

func (*SubjectFilter) GetRelation

func (x *SubjectFilter) GetRelation() string

func (*SubjectFilter) GetType

func (x *SubjectFilter) GetType() string

func (*SubjectFilter) ProtoMessage

func (*SubjectFilter) ProtoMessage()

func (*SubjectFilter) ProtoReflect

func (x *SubjectFilter) ProtoReflect() protoreflect.Message

func (*SubjectFilter) Reset

func (x *SubjectFilter) Reset()

func (*SubjectFilter) String

func (x *SubjectFilter) String() string

func (*SubjectFilter) Validate

func (m *SubjectFilter) Validate() error

Validate checks the field values on SubjectFilter with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*SubjectFilter) ValidateAll

func (m *SubjectFilter) ValidateAll() error

ValidateAll checks the field values on SubjectFilter with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SubjectFilterMultiError, or nil if none found.

type SubjectFilterMultiError

type SubjectFilterMultiError []error

SubjectFilterMultiError is an error wrapping multiple validation errors returned by SubjectFilter.ValidateAll() if the designated constraints aren't met.

func (SubjectFilterMultiError) AllErrors

func (m SubjectFilterMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SubjectFilterMultiError) Error

func (m SubjectFilterMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type SubjectFilterValidationError

type SubjectFilterValidationError struct {
	// contains filtered or unexported fields
}

SubjectFilterValidationError is the validation error returned by SubjectFilter.Validate if the designated constraints aren't met.

func (SubjectFilterValidationError) Cause

Cause function returns cause value.

func (SubjectFilterValidationError) Error

Error satisfies the builtin error interface

func (SubjectFilterValidationError) ErrorName

func (e SubjectFilterValidationError) ErrorName() string

ErrorName returns error name.

func (SubjectFilterValidationError) Field

Field function returns field value.

func (SubjectFilterValidationError) Key

Key function returns key value.

func (SubjectFilterValidationError) Reason

Reason function returns reason value.

type SubjectMultiError

type SubjectMultiError []error

SubjectMultiError is an error wrapping multiple validation errors returned by Subject.ValidateAll() if the designated constraints aren't met.

func (SubjectMultiError) AllErrors

func (m SubjectMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SubjectMultiError) Error

func (m SubjectMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type SubjectValidationError

type SubjectValidationError struct {
	// contains filtered or unexported fields
}

SubjectValidationError is the validation error returned by Subject.Validate if the designated constraints aren't met.

func (SubjectValidationError) Cause

func (e SubjectValidationError) Cause() error

Cause function returns cause value.

func (SubjectValidationError) Error

func (e SubjectValidationError) Error() string

Error satisfies the builtin error interface

func (SubjectValidationError) ErrorName

func (e SubjectValidationError) ErrorName() string

ErrorName returns error name.

func (SubjectValidationError) Field

func (e SubjectValidationError) Field() string

Field function returns field value.

func (SubjectValidationError) Key

func (e SubjectValidationError) Key() bool

Key function returns key value.

func (SubjectValidationError) Reason

func (e SubjectValidationError) Reason() string

Reason function returns reason value.

type TenancyClient

type TenancyClient interface {
	Create(ctx context.Context, in *TenantCreateRequest, opts ...grpc.CallOption) (*TenantCreateResponse, error)
	Delete(ctx context.Context, in *TenantDeleteRequest, opts ...grpc.CallOption) (*TenantDeleteResponse, error)
	List(ctx context.Context, in *TenantListRequest, opts ...grpc.CallOption) (*TenantListResponse, error)
}

TenancyClient is the client API for Tenancy 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 NewTenancyClient

func NewTenancyClient(cc grpc.ClientConnInterface) TenancyClient

type TenancyServer

type TenancyServer interface {
	Create(context.Context, *TenantCreateRequest) (*TenantCreateResponse, error)
	Delete(context.Context, *TenantDeleteRequest) (*TenantDeleteResponse, error)
	List(context.Context, *TenantListRequest) (*TenantListResponse, error)
	// contains filtered or unexported methods
}

TenancyServer is the server API for Tenancy service. All implementations must embed UnimplementedTenancyServer for forward compatibility

type Tenant

type Tenant struct {
	Id        string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name      string                 `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created_at,proto3" json:"created_at,omitempty"`
	// contains filtered or unexported fields
}

Tenant

func (*Tenant) Descriptor deprecated

func (*Tenant) Descriptor() ([]byte, []int)

Deprecated: Use Tenant.ProtoReflect.Descriptor instead.

func (*Tenant) GetCreatedAt

func (x *Tenant) GetCreatedAt() *timestamppb.Timestamp

func (*Tenant) GetId

func (x *Tenant) GetId() string

func (*Tenant) GetName

func (x *Tenant) GetName() string

func (*Tenant) ProtoMessage

func (*Tenant) ProtoMessage()

func (*Tenant) ProtoReflect

func (x *Tenant) ProtoReflect() protoreflect.Message

func (*Tenant) Reset

func (x *Tenant) Reset()

func (*Tenant) String

func (x *Tenant) String() string

func (*Tenant) Validate

func (m *Tenant) Validate() error

Validate checks the field values on Tenant 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 (*Tenant) ValidateAll

func (m *Tenant) ValidateAll() error

ValidateAll checks the field values on Tenant 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 TenantMultiError, or nil if none found.

type TenantCreateRequest

type TenantCreateRequest struct {
	Id   string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

TenantCreateRequest

func (*TenantCreateRequest) Descriptor deprecated

func (*TenantCreateRequest) Descriptor() ([]byte, []int)

Deprecated: Use TenantCreateRequest.ProtoReflect.Descriptor instead.

func (*TenantCreateRequest) GetId

func (x *TenantCreateRequest) GetId() string

func (*TenantCreateRequest) GetName

func (x *TenantCreateRequest) GetName() string

func (*TenantCreateRequest) ProtoMessage

func (*TenantCreateRequest) ProtoMessage()

func (*TenantCreateRequest) ProtoReflect

func (x *TenantCreateRequest) ProtoReflect() protoreflect.Message

func (*TenantCreateRequest) Reset

func (x *TenantCreateRequest) Reset()

func (*TenantCreateRequest) String

func (x *TenantCreateRequest) String() string

func (*TenantCreateRequest) Validate

func (m *TenantCreateRequest) Validate() error

Validate checks the field values on TenantCreateRequest 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 (*TenantCreateRequest) ValidateAll

func (m *TenantCreateRequest) ValidateAll() error

ValidateAll checks the field values on TenantCreateRequest 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 TenantCreateRequestMultiError, or nil if none found.

type TenantCreateRequestMultiError

type TenantCreateRequestMultiError []error

TenantCreateRequestMultiError is an error wrapping multiple validation errors returned by TenantCreateRequest.ValidateAll() if the designated constraints aren't met.

func (TenantCreateRequestMultiError) AllErrors

func (m TenantCreateRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TenantCreateRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type TenantCreateRequestValidationError

type TenantCreateRequestValidationError struct {
	// contains filtered or unexported fields
}

TenantCreateRequestValidationError is the validation error returned by TenantCreateRequest.Validate if the designated constraints aren't met.

func (TenantCreateRequestValidationError) Cause

Cause function returns cause value.

func (TenantCreateRequestValidationError) Error

Error satisfies the builtin error interface

func (TenantCreateRequestValidationError) ErrorName

ErrorName returns error name.

func (TenantCreateRequestValidationError) Field

Field function returns field value.

func (TenantCreateRequestValidationError) Key

Key function returns key value.

func (TenantCreateRequestValidationError) Reason

Reason function returns reason value.

type TenantCreateResponse

type TenantCreateResponse struct {
	Tenant *Tenant `protobuf:"bytes,1,opt,name=tenant,proto3" json:"tenant,omitempty"`
	// contains filtered or unexported fields
}

TenantCreateResponse

func (*TenantCreateResponse) Descriptor deprecated

func (*TenantCreateResponse) Descriptor() ([]byte, []int)

Deprecated: Use TenantCreateResponse.ProtoReflect.Descriptor instead.

func (*TenantCreateResponse) GetTenant

func (x *TenantCreateResponse) GetTenant() *Tenant

func (*TenantCreateResponse) ProtoMessage

func (*TenantCreateResponse) ProtoMessage()

func (*TenantCreateResponse) ProtoReflect

func (x *TenantCreateResponse) ProtoReflect() protoreflect.Message

func (*TenantCreateResponse) Reset

func (x *TenantCreateResponse) Reset()

func (*TenantCreateResponse) String

func (x *TenantCreateResponse) String() string

func (*TenantCreateResponse) Validate

func (m *TenantCreateResponse) Validate() error

Validate checks the field values on TenantCreateResponse 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 (*TenantCreateResponse) ValidateAll

func (m *TenantCreateResponse) ValidateAll() error

ValidateAll checks the field values on TenantCreateResponse 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 TenantCreateResponseMultiError, or nil if none found.

type TenantCreateResponseMultiError

type TenantCreateResponseMultiError []error

TenantCreateResponseMultiError is an error wrapping multiple validation errors returned by TenantCreateResponse.ValidateAll() if the designated constraints aren't met.

func (TenantCreateResponseMultiError) AllErrors

func (m TenantCreateResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TenantCreateResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type TenantCreateResponseValidationError

type TenantCreateResponseValidationError struct {
	// contains filtered or unexported fields
}

TenantCreateResponseValidationError is the validation error returned by TenantCreateResponse.Validate if the designated constraints aren't met.

func (TenantCreateResponseValidationError) Cause

Cause function returns cause value.

func (TenantCreateResponseValidationError) Error

Error satisfies the builtin error interface

func (TenantCreateResponseValidationError) ErrorName

ErrorName returns error name.

func (TenantCreateResponseValidationError) Field

Field function returns field value.

func (TenantCreateResponseValidationError) Key

Key function returns key value.

func (TenantCreateResponseValidationError) Reason

Reason function returns reason value.

type TenantDeleteRequest

type TenantDeleteRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

TenantDeleteRequest

func (*TenantDeleteRequest) Descriptor deprecated

func (*TenantDeleteRequest) Descriptor() ([]byte, []int)

Deprecated: Use TenantDeleteRequest.ProtoReflect.Descriptor instead.

func (*TenantDeleteRequest) GetId

func (x *TenantDeleteRequest) GetId() string

func (*TenantDeleteRequest) ProtoMessage

func (*TenantDeleteRequest) ProtoMessage()

func (*TenantDeleteRequest) ProtoReflect

func (x *TenantDeleteRequest) ProtoReflect() protoreflect.Message

func (*TenantDeleteRequest) Reset

func (x *TenantDeleteRequest) Reset()

func (*TenantDeleteRequest) String

func (x *TenantDeleteRequest) String() string

func (*TenantDeleteRequest) Validate

func (m *TenantDeleteRequest) Validate() error

Validate checks the field values on TenantDeleteRequest 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 (*TenantDeleteRequest) ValidateAll

func (m *TenantDeleteRequest) ValidateAll() error

ValidateAll checks the field values on TenantDeleteRequest 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 TenantDeleteRequestMultiError, or nil if none found.

type TenantDeleteRequestMultiError

type TenantDeleteRequestMultiError []error

TenantDeleteRequestMultiError is an error wrapping multiple validation errors returned by TenantDeleteRequest.ValidateAll() if the designated constraints aren't met.

func (TenantDeleteRequestMultiError) AllErrors

func (m TenantDeleteRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TenantDeleteRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type TenantDeleteRequestValidationError

type TenantDeleteRequestValidationError struct {
	// contains filtered or unexported fields
}

TenantDeleteRequestValidationError is the validation error returned by TenantDeleteRequest.Validate if the designated constraints aren't met.

func (TenantDeleteRequestValidationError) Cause

Cause function returns cause value.

func (TenantDeleteRequestValidationError) Error

Error satisfies the builtin error interface

func (TenantDeleteRequestValidationError) ErrorName

ErrorName returns error name.

func (TenantDeleteRequestValidationError) Field

Field function returns field value.

func (TenantDeleteRequestValidationError) Key

Key function returns key value.

func (TenantDeleteRequestValidationError) Reason

Reason function returns reason value.

type TenantDeleteResponse

type TenantDeleteResponse struct {
	Tenant *Tenant `protobuf:"bytes,1,opt,name=tenant,proto3" json:"tenant,omitempty"`
	// contains filtered or unexported fields
}

TenantDeleteResponse

func (*TenantDeleteResponse) Descriptor deprecated

func (*TenantDeleteResponse) Descriptor() ([]byte, []int)

Deprecated: Use TenantDeleteResponse.ProtoReflect.Descriptor instead.

func (*TenantDeleteResponse) GetTenant

func (x *TenantDeleteResponse) GetTenant() *Tenant

func (*TenantDeleteResponse) ProtoMessage

func (*TenantDeleteResponse) ProtoMessage()

func (*TenantDeleteResponse) ProtoReflect

func (x *TenantDeleteResponse) ProtoReflect() protoreflect.Message

func (*TenantDeleteResponse) Reset

func (x *TenantDeleteResponse) Reset()

func (*TenantDeleteResponse) String

func (x *TenantDeleteResponse) String() string

func (*TenantDeleteResponse) Validate

func (m *TenantDeleteResponse) Validate() error

Validate checks the field values on TenantDeleteResponse 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 (*TenantDeleteResponse) ValidateAll

func (m *TenantDeleteResponse) ValidateAll() error

ValidateAll checks the field values on TenantDeleteResponse 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 TenantDeleteResponseMultiError, or nil if none found.

type TenantDeleteResponseMultiError

type TenantDeleteResponseMultiError []error

TenantDeleteResponseMultiError is an error wrapping multiple validation errors returned by TenantDeleteResponse.ValidateAll() if the designated constraints aren't met.

func (TenantDeleteResponseMultiError) AllErrors

func (m TenantDeleteResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TenantDeleteResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type TenantDeleteResponseValidationError

type TenantDeleteResponseValidationError struct {
	// contains filtered or unexported fields
}

TenantDeleteResponseValidationError is the validation error returned by TenantDeleteResponse.Validate if the designated constraints aren't met.

func (TenantDeleteResponseValidationError) Cause

Cause function returns cause value.

func (TenantDeleteResponseValidationError) Error

Error satisfies the builtin error interface

func (TenantDeleteResponseValidationError) ErrorName

ErrorName returns error name.

func (TenantDeleteResponseValidationError) Field

Field function returns field value.

func (TenantDeleteResponseValidationError) Key

Key function returns key value.

func (TenantDeleteResponseValidationError) Reason

Reason function returns reason value.

type TenantListRequest

type TenantListRequest struct {
	PageSize        uint32 `protobuf:"varint,4,opt,name=page_size,proto3" json:"page_size,omitempty"`
	ContinuousToken string `protobuf:"bytes,5,opt,name=continuous_token,proto3" json:"continuous_token,omitempty"`
	// contains filtered or unexported fields
}

TenantListRequest

func (*TenantListRequest) Descriptor deprecated

func (*TenantListRequest) Descriptor() ([]byte, []int)

Deprecated: Use TenantListRequest.ProtoReflect.Descriptor instead.

func (*TenantListRequest) GetContinuousToken

func (x *TenantListRequest) GetContinuousToken() string

func (*TenantListRequest) GetPageSize

func (x *TenantListRequest) GetPageSize() uint32

func (*TenantListRequest) ProtoMessage

func (*TenantListRequest) ProtoMessage()

func (*TenantListRequest) ProtoReflect

func (x *TenantListRequest) ProtoReflect() protoreflect.Message

func (*TenantListRequest) Reset

func (x *TenantListRequest) Reset()

func (*TenantListRequest) String

func (x *TenantListRequest) String() string

func (*TenantListRequest) Validate

func (m *TenantListRequest) Validate() error

Validate checks the field values on TenantListRequest 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 (*TenantListRequest) ValidateAll

func (m *TenantListRequest) ValidateAll() error

ValidateAll checks the field values on TenantListRequest 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 TenantListRequestMultiError, or nil if none found.

type TenantListRequestMultiError

type TenantListRequestMultiError []error

TenantListRequestMultiError is an error wrapping multiple validation errors returned by TenantListRequest.ValidateAll() if the designated constraints aren't met.

func (TenantListRequestMultiError) AllErrors

func (m TenantListRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TenantListRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type TenantListRequestValidationError

type TenantListRequestValidationError struct {
	// contains filtered or unexported fields
}

TenantListRequestValidationError is the validation error returned by TenantListRequest.Validate if the designated constraints aren't met.

func (TenantListRequestValidationError) Cause

Cause function returns cause value.

func (TenantListRequestValidationError) Error

Error satisfies the builtin error interface

func (TenantListRequestValidationError) ErrorName

ErrorName returns error name.

func (TenantListRequestValidationError) Field

Field function returns field value.

func (TenantListRequestValidationError) Key

Key function returns key value.

func (TenantListRequestValidationError) Reason

Reason function returns reason value.

type TenantListResponse

type TenantListResponse struct {
	Tenants         []*Tenant `protobuf:"bytes,1,rep,name=tenants,proto3" json:"tenants,omitempty"`
	ContinuousToken string    `protobuf:"bytes,2,opt,name=continuous_token,proto3" json:"continuous_token,omitempty"`
	// contains filtered or unexported fields
}

TenantListResponse

func (*TenantListResponse) Descriptor deprecated

func (*TenantListResponse) Descriptor() ([]byte, []int)

Deprecated: Use TenantListResponse.ProtoReflect.Descriptor instead.

func (*TenantListResponse) GetContinuousToken

func (x *TenantListResponse) GetContinuousToken() string

func (*TenantListResponse) GetTenants

func (x *TenantListResponse) GetTenants() []*Tenant

func (*TenantListResponse) ProtoMessage

func (*TenantListResponse) ProtoMessage()

func (*TenantListResponse) ProtoReflect

func (x *TenantListResponse) ProtoReflect() protoreflect.Message

func (*TenantListResponse) Reset

func (x *TenantListResponse) Reset()

func (*TenantListResponse) String

func (x *TenantListResponse) String() string

func (*TenantListResponse) Validate

func (m *TenantListResponse) Validate() error

Validate checks the field values on TenantListResponse 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 (*TenantListResponse) ValidateAll

func (m *TenantListResponse) ValidateAll() error

ValidateAll checks the field values on TenantListResponse 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 TenantListResponseMultiError, or nil if none found.

type TenantListResponseMultiError

type TenantListResponseMultiError []error

TenantListResponseMultiError is an error wrapping multiple validation errors returned by TenantListResponse.ValidateAll() if the designated constraints aren't met.

func (TenantListResponseMultiError) AllErrors

func (m TenantListResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TenantListResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type TenantListResponseValidationError

type TenantListResponseValidationError struct {
	// contains filtered or unexported fields
}

TenantListResponseValidationError is the validation error returned by TenantListResponse.Validate if the designated constraints aren't met.

func (TenantListResponseValidationError) Cause

Cause function returns cause value.

func (TenantListResponseValidationError) Error

Error satisfies the builtin error interface

func (TenantListResponseValidationError) ErrorName

ErrorName returns error name.

func (TenantListResponseValidationError) Field

Field function returns field value.

func (TenantListResponseValidationError) Key

Key function returns key value.

func (TenantListResponseValidationError) Reason

Reason function returns reason value.

type TenantMultiError

type TenantMultiError []error

TenantMultiError is an error wrapping multiple validation errors returned by Tenant.ValidateAll() if the designated constraints aren't met.

func (TenantMultiError) AllErrors

func (m TenantMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TenantMultiError) Error

func (m TenantMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type TenantValidationError

type TenantValidationError struct {
	// contains filtered or unexported fields
}

TenantValidationError is the validation error returned by Tenant.Validate if the designated constraints aren't met.

func (TenantValidationError) Cause

func (e TenantValidationError) Cause() error

Cause function returns cause value.

func (TenantValidationError) Error

func (e TenantValidationError) Error() string

Error satisfies the builtin error interface

func (TenantValidationError) ErrorName

func (e TenantValidationError) ErrorName() string

ErrorName returns error name.

func (TenantValidationError) Field

func (e TenantValidationError) Field() string

Field function returns field value.

func (TenantValidationError) Key

func (e TenantValidationError) Key() bool

Key function returns key value.

func (TenantValidationError) Reason

func (e TenantValidationError) Reason() string

Reason function returns reason value.

type Tuple

type Tuple struct {
	Entity   *Entity  `protobuf:"bytes,1,opt,name=entity,proto3" json:"entity,omitempty"`
	Relation string   `protobuf:"bytes,2,opt,name=relation,proto3" json:"relation,omitempty"`
	Subject  *Subject `protobuf:"bytes,3,opt,name=subject,proto3" json:"subject,omitempty"`
	// contains filtered or unexported fields
}

Tuple

func (*Tuple) Descriptor deprecated

func (*Tuple) Descriptor() ([]byte, []int)

Deprecated: Use Tuple.ProtoReflect.Descriptor instead.

func (*Tuple) GetEntity

func (x *Tuple) GetEntity() *Entity

func (*Tuple) GetRelation

func (x *Tuple) GetRelation() string

func (*Tuple) GetSubject

func (x *Tuple) GetSubject() *Subject

func (*Tuple) ProtoMessage

func (*Tuple) ProtoMessage()

func (*Tuple) ProtoReflect

func (x *Tuple) ProtoReflect() protoreflect.Message

func (*Tuple) Reset

func (x *Tuple) Reset()

func (*Tuple) String

func (x *Tuple) String() string

func (*Tuple) Validate

func (m *Tuple) Validate() error

Validate checks the field values on Tuple with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Tuple) ValidateAll

func (m *Tuple) ValidateAll() error

ValidateAll checks the field values on Tuple with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TupleMultiError, or nil if none found.

type TupleFilter

type TupleFilter struct {
	Entity   *EntityFilter  `protobuf:"bytes,1,opt,name=entity,proto3" json:"entity,omitempty"`
	Relation string         `protobuf:"bytes,2,opt,name=relation,proto3" json:"relation,omitempty"`
	Subject  *SubjectFilter `protobuf:"bytes,3,opt,name=subject,proto3" json:"subject,omitempty"`
	// contains filtered or unexported fields
}

TupleFilter is used to filter tuples

func (*TupleFilter) Descriptor deprecated

func (*TupleFilter) Descriptor() ([]byte, []int)

Deprecated: Use TupleFilter.ProtoReflect.Descriptor instead.

func (*TupleFilter) GetEntity

func (x *TupleFilter) GetEntity() *EntityFilter

func (*TupleFilter) GetRelation

func (x *TupleFilter) GetRelation() string

func (*TupleFilter) GetSubject

func (x *TupleFilter) GetSubject() *SubjectFilter

func (*TupleFilter) ProtoMessage

func (*TupleFilter) ProtoMessage()

func (*TupleFilter) ProtoReflect

func (x *TupleFilter) ProtoReflect() protoreflect.Message

func (*TupleFilter) Reset

func (x *TupleFilter) Reset()

func (*TupleFilter) String

func (x *TupleFilter) String() string

func (*TupleFilter) Validate

func (m *TupleFilter) Validate() error

Validate checks the field values on TupleFilter with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*TupleFilter) ValidateAll

func (m *TupleFilter) ValidateAll() error

ValidateAll checks the field values on TupleFilter with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TupleFilterMultiError, or nil if none found.

type TupleFilterMultiError

type TupleFilterMultiError []error

TupleFilterMultiError is an error wrapping multiple validation errors returned by TupleFilter.ValidateAll() if the designated constraints aren't met.

func (TupleFilterMultiError) AllErrors

func (m TupleFilterMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TupleFilterMultiError) Error

func (m TupleFilterMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type TupleFilterValidationError

type TupleFilterValidationError struct {
	// contains filtered or unexported fields
}

TupleFilterValidationError is the validation error returned by TupleFilter.Validate if the designated constraints aren't met.

func (TupleFilterValidationError) Cause

Cause function returns cause value.

func (TupleFilterValidationError) Error

Error satisfies the builtin error interface

func (TupleFilterValidationError) ErrorName

func (e TupleFilterValidationError) ErrorName() string

ErrorName returns error name.

func (TupleFilterValidationError) Field

Field function returns field value.

func (TupleFilterValidationError) Key

Key function returns key value.

func (TupleFilterValidationError) Reason

Reason function returns reason value.

type TupleMultiError

type TupleMultiError []error

TupleMultiError is an error wrapping multiple validation errors returned by Tuple.ValidateAll() if the designated constraints aren't met.

func (TupleMultiError) AllErrors

func (m TupleMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TupleMultiError) Error

func (m TupleMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type TupleSet

type TupleSet struct {
	Relation string `protobuf:"bytes,1,opt,name=relation,proto3" json:"relation,omitempty"`
	// contains filtered or unexported fields
}

TupleSet

func (*TupleSet) Descriptor deprecated

func (*TupleSet) Descriptor() ([]byte, []int)

Deprecated: Use TupleSet.ProtoReflect.Descriptor instead.

func (*TupleSet) GetRelation

func (x *TupleSet) GetRelation() string

func (*TupleSet) ProtoMessage

func (*TupleSet) ProtoMessage()

func (*TupleSet) ProtoReflect

func (x *TupleSet) ProtoReflect() protoreflect.Message

func (*TupleSet) Reset

func (x *TupleSet) Reset()

func (*TupleSet) String

func (x *TupleSet) String() string

func (*TupleSet) Validate

func (m *TupleSet) Validate() error

Validate checks the field values on TupleSet 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 (*TupleSet) ValidateAll

func (m *TupleSet) ValidateAll() error

ValidateAll checks the field values on TupleSet 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 TupleSetMultiError, or nil if none found.

type TupleSetMultiError

type TupleSetMultiError []error

TupleSetMultiError is an error wrapping multiple validation errors returned by TupleSet.ValidateAll() if the designated constraints aren't met.

func (TupleSetMultiError) AllErrors

func (m TupleSetMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TupleSetMultiError) Error

func (m TupleSetMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type TupleSetValidationError

type TupleSetValidationError struct {
	// contains filtered or unexported fields
}

TupleSetValidationError is the validation error returned by TupleSet.Validate if the designated constraints aren't met.

func (TupleSetValidationError) Cause

func (e TupleSetValidationError) Cause() error

Cause function returns cause value.

func (TupleSetValidationError) Error

func (e TupleSetValidationError) Error() string

Error satisfies the builtin error interface

func (TupleSetValidationError) ErrorName

func (e TupleSetValidationError) ErrorName() string

ErrorName returns error name.

func (TupleSetValidationError) Field

func (e TupleSetValidationError) Field() string

Field function returns field value.

func (TupleSetValidationError) Key

func (e TupleSetValidationError) Key() bool

Key function returns key value.

func (TupleSetValidationError) Reason

func (e TupleSetValidationError) Reason() string

Reason function returns reason value.

type TupleToUserSet

type TupleToUserSet struct {
	TupleSet *TupleSet        `protobuf:"bytes,1,opt,name=tupleSet,proto3" json:"tupleSet,omitempty"`
	Computed *ComputedUserSet `protobuf:"bytes,2,opt,name=computed,proto3" json:"computed,omitempty"`
	// contains filtered or unexported fields
}

TupleToUserSet

func (*TupleToUserSet) Descriptor deprecated

func (*TupleToUserSet) Descriptor() ([]byte, []int)

Deprecated: Use TupleToUserSet.ProtoReflect.Descriptor instead.

func (*TupleToUserSet) GetComputed

func (x *TupleToUserSet) GetComputed() *ComputedUserSet

func (*TupleToUserSet) GetTupleSet

func (x *TupleToUserSet) GetTupleSet() *TupleSet

func (*TupleToUserSet) ProtoMessage

func (*TupleToUserSet) ProtoMessage()

func (*TupleToUserSet) ProtoReflect

func (x *TupleToUserSet) ProtoReflect() protoreflect.Message

func (*TupleToUserSet) Reset

func (x *TupleToUserSet) Reset()

func (*TupleToUserSet) String

func (x *TupleToUserSet) String() string

func (*TupleToUserSet) Validate

func (m *TupleToUserSet) Validate() error

Validate checks the field values on TupleToUserSet with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*TupleToUserSet) ValidateAll

func (m *TupleToUserSet) ValidateAll() error

ValidateAll checks the field values on TupleToUserSet with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TupleToUserSetMultiError, or nil if none found.

type TupleToUserSetMultiError

type TupleToUserSetMultiError []error

TupleToUserSetMultiError is an error wrapping multiple validation errors returned by TupleToUserSet.ValidateAll() if the designated constraints aren't met.

func (TupleToUserSetMultiError) AllErrors

func (m TupleToUserSetMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TupleToUserSetMultiError) Error

func (m TupleToUserSetMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type TupleToUserSetValidationError

type TupleToUserSetValidationError struct {
	// contains filtered or unexported fields
}

TupleToUserSetValidationError is the validation error returned by TupleToUserSet.Validate if the designated constraints aren't met.

func (TupleToUserSetValidationError) Cause

Cause function returns cause value.

func (TupleToUserSetValidationError) Error

Error satisfies the builtin error interface

func (TupleToUserSetValidationError) ErrorName

func (e TupleToUserSetValidationError) ErrorName() string

ErrorName returns error name.

func (TupleToUserSetValidationError) Field

Field function returns field value.

func (TupleToUserSetValidationError) Key

Key function returns key value.

func (TupleToUserSetValidationError) Reason

Reason function returns reason value.

type TupleValidationError

type TupleValidationError struct {
	// contains filtered or unexported fields
}

TupleValidationError is the validation error returned by Tuple.Validate if the designated constraints aren't met.

func (TupleValidationError) Cause

func (e TupleValidationError) Cause() error

Cause function returns cause value.

func (TupleValidationError) Error

func (e TupleValidationError) Error() string

Error satisfies the builtin error interface

func (TupleValidationError) ErrorName

func (e TupleValidationError) ErrorName() string

ErrorName returns error name.

func (TupleValidationError) Field

func (e TupleValidationError) Field() string

Field function returns field value.

func (TupleValidationError) Key

func (e TupleValidationError) Key() bool

Key function returns key value.

func (TupleValidationError) Reason

func (e TupleValidationError) Reason() string

Reason function returns reason value.

type Tuples

type Tuples struct {
	Tuples []*Tuple `protobuf:"bytes,1,rep,name=tuples,proto3" json:"tuples,omitempty"`
	// contains filtered or unexported fields
}

Tuples

func (*Tuples) Descriptor deprecated

func (*Tuples) Descriptor() ([]byte, []int)

Deprecated: Use Tuples.ProtoReflect.Descriptor instead.

func (*Tuples) GetTuples

func (x *Tuples) GetTuples() []*Tuple

func (*Tuples) ProtoMessage

func (*Tuples) ProtoMessage()

func (*Tuples) ProtoReflect

func (x *Tuples) ProtoReflect() protoreflect.Message

func (*Tuples) Reset

func (x *Tuples) Reset()

func (*Tuples) String

func (x *Tuples) String() string

func (*Tuples) Validate

func (m *Tuples) Validate() error

Validate checks the field values on Tuples with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Tuples) ValidateAll

func (m *Tuples) ValidateAll() error

ValidateAll checks the field values on Tuples with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TuplesMultiError, or nil if none found.

type TuplesMultiError

type TuplesMultiError []error

TuplesMultiError is an error wrapping multiple validation errors returned by Tuples.ValidateAll() if the designated constraints aren't met.

func (TuplesMultiError) AllErrors

func (m TuplesMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TuplesMultiError) Error

func (m TuplesMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type TuplesValidationError

type TuplesValidationError struct {
	// contains filtered or unexported fields
}

TuplesValidationError is the validation error returned by Tuples.Validate if the designated constraints aren't met.

func (TuplesValidationError) Cause

func (e TuplesValidationError) Cause() error

Cause function returns cause value.

func (TuplesValidationError) Error

func (e TuplesValidationError) Error() string

Error satisfies the builtin error interface

func (TuplesValidationError) ErrorName

func (e TuplesValidationError) ErrorName() string

ErrorName returns error name.

func (TuplesValidationError) Field

func (e TuplesValidationError) Field() string

Field function returns field value.

func (TuplesValidationError) Key

func (e TuplesValidationError) Key() bool

Key function returns key value.

func (TuplesValidationError) Reason

func (e TuplesValidationError) Reason() string

Reason function returns reason value.

type UnimplementedPermissionServer

type UnimplementedPermissionServer struct {
}

UnimplementedPermissionServer must be embedded to have forward compatible implementations.

type UnimplementedRelationshipServer

type UnimplementedRelationshipServer struct {
}

UnimplementedRelationshipServer must be embedded to have forward compatible implementations.

type UnimplementedSchemaServer

type UnimplementedSchemaServer struct {
}

UnimplementedSchemaServer must be embedded to have forward compatible implementations.

func (UnimplementedSchemaServer) Read

func (UnimplementedSchemaServer) Write

type UnimplementedTenancyServer

type UnimplementedTenancyServer struct {
}

UnimplementedTenancyServer must be embedded to have forward compatible implementations.

func (UnimplementedTenancyServer) Create

func (UnimplementedTenancyServer) Delete

func (UnimplementedTenancyServer) List

type UnimplementedWelcomeServer

type UnimplementedWelcomeServer struct {
}

UnimplementedWelcomeServer must be embedded to have forward compatible implementations.

func (UnimplementedWelcomeServer) Hello

type UnsafePermissionServer

type UnsafePermissionServer interface {
	// contains filtered or unexported methods
}

UnsafePermissionServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PermissionServer will result in compilation errors.

type UnsafeRelationshipServer

type UnsafeRelationshipServer interface {
	// contains filtered or unexported methods
}

UnsafeRelationshipServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RelationshipServer will result in compilation errors.

type UnsafeSchemaServer

type UnsafeSchemaServer interface {
	// contains filtered or unexported methods
}

UnsafeSchemaServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SchemaServer will result in compilation errors.

type UnsafeTenancyServer

type UnsafeTenancyServer interface {
	// contains filtered or unexported methods
}

UnsafeTenancyServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TenancyServer will result in compilation errors.

type UnsafeWelcomeServer

type UnsafeWelcomeServer interface {
	// contains filtered or unexported methods
}

UnsafeWelcomeServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to WelcomeServer will result in compilation errors.

type WelcomeClient

type WelcomeClient interface {
	Hello(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*WelcomeResponse, error)
}

WelcomeClient is the client API for Welcome 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 NewWelcomeClient

func NewWelcomeClient(cc grpc.ClientConnInterface) WelcomeClient

type WelcomeResponse

type WelcomeResponse struct {
	Permify string                   `protobuf:"bytes,1,opt,name=permify,proto3" json:"permify,omitempty"`
	Sources *WelcomeResponse_Sources `protobuf:"bytes,2,opt,name=sources,proto3" json:"sources,omitempty"`
	Socials *WelcomeResponse_Socials `protobuf:"bytes,3,opt,name=socials,proto3" json:"socials,omitempty"`
	// contains filtered or unexported fields
}

WelcomeResponse

func (*WelcomeResponse) Descriptor deprecated

func (*WelcomeResponse) Descriptor() ([]byte, []int)

Deprecated: Use WelcomeResponse.ProtoReflect.Descriptor instead.

func (*WelcomeResponse) GetPermify

func (x *WelcomeResponse) GetPermify() string

func (*WelcomeResponse) GetSocials

func (x *WelcomeResponse) GetSocials() *WelcomeResponse_Socials

func (*WelcomeResponse) GetSources

func (x *WelcomeResponse) GetSources() *WelcomeResponse_Sources

func (*WelcomeResponse) ProtoMessage

func (*WelcomeResponse) ProtoMessage()

func (*WelcomeResponse) ProtoReflect

func (x *WelcomeResponse) ProtoReflect() protoreflect.Message

func (*WelcomeResponse) Reset

func (x *WelcomeResponse) Reset()

func (*WelcomeResponse) String

func (x *WelcomeResponse) String() string

func (*WelcomeResponse) Validate

func (m *WelcomeResponse) Validate() error

Validate checks the field values on WelcomeResponse 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 (*WelcomeResponse) ValidateAll

func (m *WelcomeResponse) ValidateAll() error

ValidateAll checks the field values on WelcomeResponse 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 WelcomeResponseMultiError, or nil if none found.

type WelcomeResponseMultiError

type WelcomeResponseMultiError []error

WelcomeResponseMultiError is an error wrapping multiple validation errors returned by WelcomeResponse.ValidateAll() if the designated constraints aren't met.

func (WelcomeResponseMultiError) AllErrors

func (m WelcomeResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (WelcomeResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type WelcomeResponseValidationError

type WelcomeResponseValidationError struct {
	// contains filtered or unexported fields
}

WelcomeResponseValidationError is the validation error returned by WelcomeResponse.Validate if the designated constraints aren't met.

func (WelcomeResponseValidationError) Cause

Cause function returns cause value.

func (WelcomeResponseValidationError) Error

Error satisfies the builtin error interface

func (WelcomeResponseValidationError) ErrorName

func (e WelcomeResponseValidationError) ErrorName() string

ErrorName returns error name.

func (WelcomeResponseValidationError) Field

Field function returns field value.

func (WelcomeResponseValidationError) Key

Key function returns key value.

func (WelcomeResponseValidationError) Reason

Reason function returns reason value.

type WelcomeResponse_Socials

type WelcomeResponse_Socials struct {
	Discord  string `protobuf:"bytes,1,opt,name=discord,proto3" json:"discord,omitempty"`
	Twitter  string `protobuf:"bytes,2,opt,name=twitter,proto3" json:"twitter,omitempty"`
	Linkedin string `protobuf:"bytes,3,opt,name=linkedin,proto3" json:"linkedin,omitempty"`
	// contains filtered or unexported fields
}

func (*WelcomeResponse_Socials) Descriptor deprecated

func (*WelcomeResponse_Socials) Descriptor() ([]byte, []int)

Deprecated: Use WelcomeResponse_Socials.ProtoReflect.Descriptor instead.

func (*WelcomeResponse_Socials) GetDiscord

func (x *WelcomeResponse_Socials) GetDiscord() string

func (*WelcomeResponse_Socials) GetLinkedin

func (x *WelcomeResponse_Socials) GetLinkedin() string

func (*WelcomeResponse_Socials) GetTwitter

func (x *WelcomeResponse_Socials) GetTwitter() string

func (*WelcomeResponse_Socials) ProtoMessage

func (*WelcomeResponse_Socials) ProtoMessage()

func (*WelcomeResponse_Socials) ProtoReflect

func (x *WelcomeResponse_Socials) ProtoReflect() protoreflect.Message

func (*WelcomeResponse_Socials) Reset

func (x *WelcomeResponse_Socials) Reset()

func (*WelcomeResponse_Socials) String

func (x *WelcomeResponse_Socials) String() string

func (*WelcomeResponse_Socials) Validate

func (m *WelcomeResponse_Socials) Validate() error

Validate checks the field values on WelcomeResponse_Socials 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 (*WelcomeResponse_Socials) ValidateAll

func (m *WelcomeResponse_Socials) ValidateAll() error

ValidateAll checks the field values on WelcomeResponse_Socials 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 WelcomeResponse_SocialsMultiError, or nil if none found.

type WelcomeResponse_SocialsMultiError

type WelcomeResponse_SocialsMultiError []error

WelcomeResponse_SocialsMultiError is an error wrapping multiple validation errors returned by WelcomeResponse_Socials.ValidateAll() if the designated constraints aren't met.

func (WelcomeResponse_SocialsMultiError) AllErrors

func (m WelcomeResponse_SocialsMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (WelcomeResponse_SocialsMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type WelcomeResponse_SocialsValidationError

type WelcomeResponse_SocialsValidationError struct {
	// contains filtered or unexported fields
}

WelcomeResponse_SocialsValidationError is the validation error returned by WelcomeResponse_Socials.Validate if the designated constraints aren't met.

func (WelcomeResponse_SocialsValidationError) Cause

Cause function returns cause value.

func (WelcomeResponse_SocialsValidationError) Error

Error satisfies the builtin error interface

func (WelcomeResponse_SocialsValidationError) ErrorName

ErrorName returns error name.

func (WelcomeResponse_SocialsValidationError) Field

Field function returns field value.

func (WelcomeResponse_SocialsValidationError) Key

Key function returns key value.

func (WelcomeResponse_SocialsValidationError) Reason

Reason function returns reason value.

type WelcomeResponse_Sources

type WelcomeResponse_Sources struct {
	Docs   string `protobuf:"bytes,1,opt,name=docs,proto3" json:"docs,omitempty"`
	GitHub string `protobuf:"bytes,2,opt,name=gitHub,proto3" json:"gitHub,omitempty"`
	Blog   string `protobuf:"bytes,3,opt,name=blog,proto3" json:"blog,omitempty"`
	// contains filtered or unexported fields
}

func (*WelcomeResponse_Sources) Descriptor deprecated

func (*WelcomeResponse_Sources) Descriptor() ([]byte, []int)

Deprecated: Use WelcomeResponse_Sources.ProtoReflect.Descriptor instead.

func (*WelcomeResponse_Sources) GetBlog

func (x *WelcomeResponse_Sources) GetBlog() string

func (*WelcomeResponse_Sources) GetDocs

func (x *WelcomeResponse_Sources) GetDocs() string

func (*WelcomeResponse_Sources) GetGitHub

func (x *WelcomeResponse_Sources) GetGitHub() string

func (*WelcomeResponse_Sources) ProtoMessage

func (*WelcomeResponse_Sources) ProtoMessage()

func (*WelcomeResponse_Sources) ProtoReflect

func (x *WelcomeResponse_Sources) ProtoReflect() protoreflect.Message

func (*WelcomeResponse_Sources) Reset

func (x *WelcomeResponse_Sources) Reset()

func (*WelcomeResponse_Sources) String

func (x *WelcomeResponse_Sources) String() string

func (*WelcomeResponse_Sources) Validate

func (m *WelcomeResponse_Sources) Validate() error

Validate checks the field values on WelcomeResponse_Sources 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 (*WelcomeResponse_Sources) ValidateAll

func (m *WelcomeResponse_Sources) ValidateAll() error

ValidateAll checks the field values on WelcomeResponse_Sources 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 WelcomeResponse_SourcesMultiError, or nil if none found.

type WelcomeResponse_SourcesMultiError

type WelcomeResponse_SourcesMultiError []error

WelcomeResponse_SourcesMultiError is an error wrapping multiple validation errors returned by WelcomeResponse_Sources.ValidateAll() if the designated constraints aren't met.

func (WelcomeResponse_SourcesMultiError) AllErrors

func (m WelcomeResponse_SourcesMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (WelcomeResponse_SourcesMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type WelcomeResponse_SourcesValidationError

type WelcomeResponse_SourcesValidationError struct {
	// contains filtered or unexported fields
}

WelcomeResponse_SourcesValidationError is the validation error returned by WelcomeResponse_Sources.Validate if the designated constraints aren't met.

func (WelcomeResponse_SourcesValidationError) Cause

Cause function returns cause value.

func (WelcomeResponse_SourcesValidationError) Error

Error satisfies the builtin error interface

func (WelcomeResponse_SourcesValidationError) ErrorName

ErrorName returns error name.

func (WelcomeResponse_SourcesValidationError) Field

Field function returns field value.

func (WelcomeResponse_SourcesValidationError) Key

Key function returns key value.

func (WelcomeResponse_SourcesValidationError) Reason

Reason function returns reason value.

type WelcomeServer

type WelcomeServer interface {
	Hello(context.Context, *emptypb.Empty) (*WelcomeResponse, error)
	// contains filtered or unexported methods
}

WelcomeServer is the server API for Welcome service. All implementations must embed UnimplementedWelcomeServer for forward compatibility

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL