v1

package
Version: v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: Apache-2.0 Imports: 34 Imported by: 30

Documentation

Overview

Package v1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package v1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package v1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package v1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	ExperimentalService_BulkImportRelationships_FullMethodName = "/authzed.api.v1.ExperimentalService/BulkImportRelationships"
	ExperimentalService_BulkExportRelationships_FullMethodName = "/authzed.api.v1.ExperimentalService/BulkExportRelationships"
	ExperimentalService_BulkCheckPermission_FullMethodName     = "/authzed.api.v1.ExperimentalService/BulkCheckPermission"
)
View Source
const (
	PermissionsService_ReadRelationships_FullMethodName    = "/authzed.api.v1.PermissionsService/ReadRelationships"
	PermissionsService_WriteRelationships_FullMethodName   = "/authzed.api.v1.PermissionsService/WriteRelationships"
	PermissionsService_DeleteRelationships_FullMethodName  = "/authzed.api.v1.PermissionsService/DeleteRelationships"
	PermissionsService_CheckPermission_FullMethodName      = "/authzed.api.v1.PermissionsService/CheckPermission"
	PermissionsService_ExpandPermissionTree_FullMethodName = "/authzed.api.v1.PermissionsService/ExpandPermissionTree"
	PermissionsService_LookupResources_FullMethodName      = "/authzed.api.v1.PermissionsService/LookupResources"
	PermissionsService_LookupSubjects_FullMethodName       = "/authzed.api.v1.PermissionsService/LookupSubjects"
)
View Source
const (
	SchemaService_ReadSchema_FullMethodName  = "/authzed.api.v1.SchemaService/ReadSchema"
	SchemaService_WriteSchema_FullMethodName = "/authzed.api.v1.SchemaService/WriteSchema"
)
View Source
const (
	BufRepository = "buf.build/authzed/api"
	BufTag        = "352257977a8fd299fcc3a4a6fdbdb2311b2e8f22"
)
View Source
const (
	WatchService_Watch_FullMethodName = "/authzed.api.v1.WatchService/Watch"
)

Variables

View Source
var (
	RelationshipUpdate_Operation_name = map[int32]string{
		0: "OPERATION_UNSPECIFIED",
		1: "OPERATION_CREATE",
		2: "OPERATION_TOUCH",
		3: "OPERATION_DELETE",
	}
	RelationshipUpdate_Operation_value = map[string]int32{
		"OPERATION_UNSPECIFIED": 0,
		"OPERATION_CREATE":      1,
		"OPERATION_TOUCH":       2,
		"OPERATION_DELETE":      3,
	}
)

Enum value maps for RelationshipUpdate_Operation.

View Source
var (
	AlgebraicSubjectSet_Operation_name = map[int32]string{
		0: "OPERATION_UNSPECIFIED",
		1: "OPERATION_UNION",
		2: "OPERATION_INTERSECTION",
		3: "OPERATION_EXCLUSION",
	}
	AlgebraicSubjectSet_Operation_value = map[string]int32{
		"OPERATION_UNSPECIFIED":  0,
		"OPERATION_UNION":        1,
		"OPERATION_INTERSECTION": 2,
		"OPERATION_EXCLUSION":    3,
	}
)

Enum value maps for AlgebraicSubjectSet_Operation.

View Source
var (
	ErrInvalidLength        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflow          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroup = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	CheckDebugTrace_PermissionType_name = map[int32]string{
		0: "PERMISSION_TYPE_UNSPECIFIED",
		1: "PERMISSION_TYPE_RELATION",
		2: "PERMISSION_TYPE_PERMISSION",
	}
	CheckDebugTrace_PermissionType_value = map[string]int32{
		"PERMISSION_TYPE_UNSPECIFIED": 0,
		"PERMISSION_TYPE_RELATION":    1,
		"PERMISSION_TYPE_PERMISSION":  2,
	}
)

Enum value maps for CheckDebugTrace_PermissionType.

View Source
var (
	CheckDebugTrace_Permissionship_name = map[int32]string{
		0: "PERMISSIONSHIP_UNSPECIFIED",
		1: "PERMISSIONSHIP_NO_PERMISSION",
		2: "PERMISSIONSHIP_HAS_PERMISSION",
		3: "PERMISSIONSHIP_CONDITIONAL_PERMISSION",
	}
	CheckDebugTrace_Permissionship_value = map[string]int32{
		"PERMISSIONSHIP_UNSPECIFIED":            0,
		"PERMISSIONSHIP_NO_PERMISSION":          1,
		"PERMISSIONSHIP_HAS_PERMISSION":         2,
		"PERMISSIONSHIP_CONDITIONAL_PERMISSION": 3,
	}
)

Enum value maps for CheckDebugTrace_Permissionship.

View Source
var (
	CaveatEvalInfo_Result_name = map[int32]string{
		0: "RESULT_UNSPECIFIED",
		1: "RESULT_UNEVALUATED",
		2: "RESULT_FALSE",
		3: "RESULT_TRUE",
		4: "RESULT_MISSING_SOME_CONTEXT",
	}
	CaveatEvalInfo_Result_value = map[string]int32{
		"RESULT_UNSPECIFIED":          0,
		"RESULT_UNEVALUATED":          1,
		"RESULT_FALSE":                2,
		"RESULT_TRUE":                 3,
		"RESULT_MISSING_SOME_CONTEXT": 4,
	}
)

Enum value maps for CaveatEvalInfo_Result.

View Source
var (
	ErrorReason_name = map[int32]string{
		0:  "ERROR_REASON_UNSPECIFIED",
		1:  "ERROR_REASON_SCHEMA_PARSE_ERROR",
		2:  "ERROR_REASON_SCHEMA_TYPE_ERROR",
		3:  "ERROR_REASON_UNKNOWN_DEFINITION",
		4:  "ERROR_REASON_UNKNOWN_RELATION_OR_PERMISSION",
		5:  "ERROR_REASON_TOO_MANY_UPDATES_IN_REQUEST",
		6:  "ERROR_REASON_TOO_MANY_PRECONDITIONS_IN_REQUEST",
		7:  "ERROR_REASON_WRITE_OR_DELETE_PRECONDITION_FAILURE",
		8:  "ERROR_REASON_SERVICE_READ_ONLY",
		9:  "ERROR_REASON_UNKNOWN_CAVEAT",
		10: "ERROR_REASON_INVALID_SUBJECT_TYPE",
		11: "ERROR_REASON_CAVEAT_PARAMETER_TYPE_ERROR",
		12: "ERROR_REASON_UPDATES_ON_SAME_RELATIONSHIP",
		13: "ERROR_REASON_CANNOT_UPDATE_PERMISSION",
		14: "ERROR_REASON_CAVEAT_EVALUATION_ERROR",
		15: "ERROR_REASON_INVALID_CURSOR",
		16: "ERROR_REASON_TOO_MANY_RELATIONSHIPS_FOR_TRANSACTIONAL_DELETE",
		17: "ERROR_REASON_MAX_RELATIONSHIP_CONTEXT_SIZE",
		18: "ERROR_REASON_ATTEMPT_TO_RECREATE_RELATIONSHIP",
		19: "ERROR_REASON_MAXIMUM_DEPTH_EXCEEDED",
	}
	ErrorReason_value = map[string]int32{
		"ERROR_REASON_UNSPECIFIED":                                     0,
		"ERROR_REASON_SCHEMA_PARSE_ERROR":                              1,
		"ERROR_REASON_SCHEMA_TYPE_ERROR":                               2,
		"ERROR_REASON_UNKNOWN_DEFINITION":                              3,
		"ERROR_REASON_UNKNOWN_RELATION_OR_PERMISSION":                  4,
		"ERROR_REASON_TOO_MANY_UPDATES_IN_REQUEST":                     5,
		"ERROR_REASON_TOO_MANY_PRECONDITIONS_IN_REQUEST":               6,
		"ERROR_REASON_WRITE_OR_DELETE_PRECONDITION_FAILURE":            7,
		"ERROR_REASON_SERVICE_READ_ONLY":                               8,
		"ERROR_REASON_UNKNOWN_CAVEAT":                                  9,
		"ERROR_REASON_INVALID_SUBJECT_TYPE":                            10,
		"ERROR_REASON_CAVEAT_PARAMETER_TYPE_ERROR":                     11,
		"ERROR_REASON_UPDATES_ON_SAME_RELATIONSHIP":                    12,
		"ERROR_REASON_CANNOT_UPDATE_PERMISSION":                        13,
		"ERROR_REASON_CAVEAT_EVALUATION_ERROR":                         14,
		"ERROR_REASON_INVALID_CURSOR":                                  15,
		"ERROR_REASON_TOO_MANY_RELATIONSHIPS_FOR_TRANSACTIONAL_DELETE": 16,
		"ERROR_REASON_MAX_RELATIONSHIP_CONTEXT_SIZE":                   17,
		"ERROR_REASON_ATTEMPT_TO_RECREATE_RELATIONSHIP":                18,
		"ERROR_REASON_MAXIMUM_DEPTH_EXCEEDED":                          19,
	}
)

Enum value maps for ErrorReason.

View Source
var (
	LookupPermissionship_name = map[int32]string{
		0: "LOOKUP_PERMISSIONSHIP_UNSPECIFIED",
		1: "LOOKUP_PERMISSIONSHIP_HAS_PERMISSION",
		2: "LOOKUP_PERMISSIONSHIP_CONDITIONAL_PERMISSION",
	}
	LookupPermissionship_value = map[string]int32{
		"LOOKUP_PERMISSIONSHIP_UNSPECIFIED":            0,
		"LOOKUP_PERMISSIONSHIP_HAS_PERMISSION":         1,
		"LOOKUP_PERMISSIONSHIP_CONDITIONAL_PERMISSION": 2,
	}
)

Enum value maps for LookupPermissionship.

View Source
var (
	Precondition_Operation_name = map[int32]string{
		0: "OPERATION_UNSPECIFIED",
		1: "OPERATION_MUST_NOT_MATCH",
		2: "OPERATION_MUST_MATCH",
	}
	Precondition_Operation_value = map[string]int32{
		"OPERATION_UNSPECIFIED":    0,
		"OPERATION_MUST_NOT_MATCH": 1,
		"OPERATION_MUST_MATCH":     2,
	}
)

Enum value maps for Precondition_Operation.

View Source
var (
	DeleteRelationshipsResponse_DeletionProgress_name = map[int32]string{
		0: "DELETION_PROGRESS_UNSPECIFIED",
		1: "DELETION_PROGRESS_COMPLETE",
		2: "DELETION_PROGRESS_PARTIAL",
	}
	DeleteRelationshipsResponse_DeletionProgress_value = map[string]int32{
		"DELETION_PROGRESS_UNSPECIFIED": 0,
		"DELETION_PROGRESS_COMPLETE":    1,
		"DELETION_PROGRESS_PARTIAL":     2,
	}
)

Enum value maps for DeleteRelationshipsResponse_DeletionProgress.

View Source
var (
	CheckPermissionResponse_Permissionship_name = map[int32]string{
		0: "PERMISSIONSHIP_UNSPECIFIED",
		1: "PERMISSIONSHIP_NO_PERMISSION",
		2: "PERMISSIONSHIP_HAS_PERMISSION",
		3: "PERMISSIONSHIP_CONDITIONAL_PERMISSION",
	}
	CheckPermissionResponse_Permissionship_value = map[string]int32{
		"PERMISSIONSHIP_UNSPECIFIED":            0,
		"PERMISSIONSHIP_NO_PERMISSION":          1,
		"PERMISSIONSHIP_HAS_PERMISSION":         2,
		"PERMISSIONSHIP_CONDITIONAL_PERMISSION": 3,
	}
)

Enum value maps for CheckPermissionResponse_Permissionship.

View Source
var (
	LookupSubjectsRequest_WildcardOption_name = map[int32]string{
		0: "WILDCARD_OPTION_UNSPECIFIED",
		1: "WILDCARD_OPTION_INCLUDE_WILDCARDS",
		2: "WILDCARD_OPTION_EXCLUDE_WILDCARDS",
	}
	LookupSubjectsRequest_WildcardOption_value = map[string]int32{
		"WILDCARD_OPTION_UNSPECIFIED":       0,
		"WILDCARD_OPTION_INCLUDE_WILDCARDS": 1,
		"WILDCARD_OPTION_EXCLUDE_WILDCARDS": 2,
	}
)

Enum value maps for LookupSubjectsRequest_WildcardOption.

View Source
var ExperimentalService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "authzed.api.v1.ExperimentalService",
	HandlerType: (*ExperimentalServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "BulkCheckPermission",
			Handler:    _ExperimentalService_BulkCheckPermission_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "BulkImportRelationships",
			Handler:       _ExperimentalService_BulkImportRelationships_Handler,
			ClientStreams: true,
		},
		{
			StreamName:    "BulkExportRelationships",
			Handler:       _ExperimentalService_BulkExportRelationships_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "authzed/api/v1/experimental_service.proto",
}

ExperimentalService_ServiceDesc is the grpc.ServiceDesc for ExperimentalService 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 File_authzed_api_v1_core_proto protoreflect.FileDescriptor
View Source
var File_authzed_api_v1_debug_proto protoreflect.FileDescriptor
View Source
var File_authzed_api_v1_error_reason_proto protoreflect.FileDescriptor
View Source
var File_authzed_api_v1_experimental_service_proto protoreflect.FileDescriptor
View Source
var File_authzed_api_v1_openapi_proto protoreflect.FileDescriptor
View Source
var File_authzed_api_v1_permission_service_proto protoreflect.FileDescriptor
View Source
var File_authzed_api_v1_schema_service_proto protoreflect.FileDescriptor
View Source
var File_authzed_api_v1_watch_service_proto protoreflect.FileDescriptor
View Source
var PermissionsService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "authzed.api.v1.PermissionsService",
	HandlerType: (*PermissionsServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "WriteRelationships",
			Handler:    _PermissionsService_WriteRelationships_Handler,
		},
		{
			MethodName: "DeleteRelationships",
			Handler:    _PermissionsService_DeleteRelationships_Handler,
		},
		{
			MethodName: "CheckPermission",
			Handler:    _PermissionsService_CheckPermission_Handler,
		},
		{
			MethodName: "ExpandPermissionTree",
			Handler:    _PermissionsService_ExpandPermissionTree_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "ReadRelationships",
			Handler:       _PermissionsService_ReadRelationships_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "LookupResources",
			Handler:       _PermissionsService_LookupResources_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "LookupSubjects",
			Handler:       _PermissionsService_LookupSubjects_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "authzed/api/v1/permission_service.proto",
}

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

View Source
var SchemaService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "authzed.api.v1.SchemaService",
	HandlerType: (*SchemaServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ReadSchema",
			Handler:    _SchemaService_ReadSchema_Handler,
		},
		{
			MethodName: "WriteSchema",
			Handler:    _SchemaService_WriteSchema_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "authzed/api/v1/schema_service.proto",
}

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

View Source
var WatchService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "authzed.api.v1.WatchService",
	HandlerType: (*WatchServiceServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "Watch",
			Handler:       _WatchService_Watch_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "authzed/api/v1/watch_service.proto",
}

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

Functions

func RegisterExperimentalServiceHandler added in v0.9.0

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

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

func RegisterExperimentalServiceHandlerClient added in v0.9.0

func RegisterExperimentalServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ExperimentalServiceClient) error

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

func RegisterExperimentalServiceHandlerFromEndpoint added in v0.9.0

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

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

func RegisterExperimentalServiceHandlerServer added in v0.9.0

func RegisterExperimentalServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ExperimentalServiceServer) error

RegisterExperimentalServiceHandlerServer registers the http handlers for service ExperimentalService to "mux". UnaryRPC :call ExperimentalServiceServer 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 RegisterExperimentalServiceHandlerFromEndpoint instead.

func RegisterExperimentalServiceServer added in v0.9.0

func RegisterExperimentalServiceServer(s grpc.ServiceRegistrar, srv ExperimentalServiceServer)

func RegisterPermissionsServiceHandler added in v0.3.0

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

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

func RegisterPermissionsServiceHandlerClient added in v0.3.0

func RegisterPermissionsServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client PermissionsServiceClient) error

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

func RegisterPermissionsServiceHandlerFromEndpoint added in v0.3.0

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

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

func RegisterPermissionsServiceHandlerServer added in v0.3.0

func RegisterPermissionsServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server PermissionsServiceServer) error

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

func RegisterPermissionsServiceServer

func RegisterPermissionsServiceServer(s grpc.ServiceRegistrar, srv PermissionsServiceServer)

func RegisterSchemaServiceHandler added in v0.3.0

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

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

func RegisterSchemaServiceHandlerClient added in v0.3.0

func RegisterSchemaServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SchemaServiceClient) error

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

func RegisterSchemaServiceHandlerFromEndpoint added in v0.3.0

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

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

func RegisterSchemaServiceHandlerServer added in v0.3.0

func RegisterSchemaServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SchemaServiceServer) error

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

func RegisterSchemaServiceServer

func RegisterSchemaServiceServer(s grpc.ServiceRegistrar, srv SchemaServiceServer)

func RegisterWatchServiceHandler added in v0.3.0

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

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

func RegisterWatchServiceHandlerClient added in v0.3.0

func RegisterWatchServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client WatchServiceClient) error

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

func RegisterWatchServiceHandlerFromEndpoint added in v0.3.0

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

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

func RegisterWatchServiceHandlerServer added in v0.3.0

func RegisterWatchServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server WatchServiceServer) error

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

func RegisterWatchServiceServer

func RegisterWatchServiceServer(s grpc.ServiceRegistrar, srv WatchServiceServer)

Types

type AlgebraicSubjectSet

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

AlgebraicSubjectSet is a subject set which is computed based on applying the specified operation to the operands according to the algebra of sets.

UNION is a logical set containing the subject members from all operands.

INTERSECTION is a logical set containing only the subject members which are present in all operands.

EXCLUSION is a logical set containing only the subject members which are present in the first operand, and none of the other operands.

func (*AlgebraicSubjectSet) CloneMessageVT added in v0.9.0

func (m *AlgebraicSubjectSet) CloneMessageVT() proto.Message

func (*AlgebraicSubjectSet) CloneVT added in v0.8.0

func (*AlgebraicSubjectSet) Descriptor deprecated

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

Deprecated: Use AlgebraicSubjectSet.ProtoReflect.Descriptor instead.

func (*AlgebraicSubjectSet) GetChildren

func (x *AlgebraicSubjectSet) GetChildren() []*PermissionRelationshipTree

func (*AlgebraicSubjectSet) GetOperation

func (*AlgebraicSubjectSet) MarshalToSizedBufferVT added in v0.8.0

func (m *AlgebraicSubjectSet) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*AlgebraicSubjectSet) MarshalToVT added in v0.8.0

func (m *AlgebraicSubjectSet) MarshalToVT(dAtA []byte) (int, error)

func (*AlgebraicSubjectSet) MarshalVT added in v0.8.0

func (m *AlgebraicSubjectSet) MarshalVT() (dAtA []byte, err error)

func (*AlgebraicSubjectSet) ProtoMessage

func (*AlgebraicSubjectSet) ProtoMessage()

func (*AlgebraicSubjectSet) ProtoReflect

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

func (*AlgebraicSubjectSet) Reset

func (x *AlgebraicSubjectSet) Reset()

func (*AlgebraicSubjectSet) SizeVT added in v0.8.0

func (m *AlgebraicSubjectSet) SizeVT() (n int)

func (*AlgebraicSubjectSet) String

func (x *AlgebraicSubjectSet) String() string

func (*AlgebraicSubjectSet) UnmarshalVT added in v0.8.0

func (m *AlgebraicSubjectSet) UnmarshalVT(dAtA []byte) error

func (*AlgebraicSubjectSet) Validate

func (m *AlgebraicSubjectSet) Validate() error

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

func (*AlgebraicSubjectSet) ValidateAll added in v0.6.0

func (m *AlgebraicSubjectSet) ValidateAll() error

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

type AlgebraicSubjectSetMultiError added in v0.6.0

type AlgebraicSubjectSetMultiError []error

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

func (AlgebraicSubjectSetMultiError) AllErrors added in v0.6.0

func (m AlgebraicSubjectSetMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AlgebraicSubjectSetMultiError) Error added in v0.6.0

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

type AlgebraicSubjectSetValidationError

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

AlgebraicSubjectSetValidationError is the validation error returned by AlgebraicSubjectSet.Validate if the designated constraints aren't met.

func (AlgebraicSubjectSetValidationError) Cause

Cause function returns cause value.

func (AlgebraicSubjectSetValidationError) Error

Error satisfies the builtin error interface

func (AlgebraicSubjectSetValidationError) ErrorName

ErrorName returns error name.

func (AlgebraicSubjectSetValidationError) Field

Field function returns field value.

func (AlgebraicSubjectSetValidationError) Key

Key function returns key value.

func (AlgebraicSubjectSetValidationError) Reason

Reason function returns reason value.

type AlgebraicSubjectSet_Operation

type AlgebraicSubjectSet_Operation int32
const (
	AlgebraicSubjectSet_OPERATION_UNSPECIFIED  AlgebraicSubjectSet_Operation = 0
	AlgebraicSubjectSet_OPERATION_UNION        AlgebraicSubjectSet_Operation = 1
	AlgebraicSubjectSet_OPERATION_INTERSECTION AlgebraicSubjectSet_Operation = 2
	AlgebraicSubjectSet_OPERATION_EXCLUSION    AlgebraicSubjectSet_Operation = 3
)

func (AlgebraicSubjectSet_Operation) Descriptor

func (AlgebraicSubjectSet_Operation) Enum

func (AlgebraicSubjectSet_Operation) EnumDescriptor deprecated

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

Deprecated: Use AlgebraicSubjectSet_Operation.Descriptor instead.

func (AlgebraicSubjectSet_Operation) Number

func (AlgebraicSubjectSet_Operation) String

func (AlgebraicSubjectSet_Operation) Type

type BulkCheckPermissionPair added in v0.10.0

type BulkCheckPermissionPair struct {
	Request *BulkCheckPermissionRequestItem `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"`
	// Types that are assignable to Response:
	//
	//	*BulkCheckPermissionPair_Item
	//	*BulkCheckPermissionPair_Error
	Response isBulkCheckPermissionPair_Response `protobuf_oneof:"response"`
	// contains filtered or unexported fields
}

func (*BulkCheckPermissionPair) CloneMessageVT added in v0.10.0

func (m *BulkCheckPermissionPair) CloneMessageVT() proto.Message

func (*BulkCheckPermissionPair) CloneVT added in v0.10.0

func (*BulkCheckPermissionPair) Descriptor deprecated added in v0.10.0

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

Deprecated: Use BulkCheckPermissionPair.ProtoReflect.Descriptor instead.

func (*BulkCheckPermissionPair) GetError added in v0.10.0

func (x *BulkCheckPermissionPair) GetError() *status.Status

func (*BulkCheckPermissionPair) GetItem added in v0.10.0

func (*BulkCheckPermissionPair) GetRequest added in v0.10.0

func (*BulkCheckPermissionPair) GetResponse added in v0.10.0

func (m *BulkCheckPermissionPair) GetResponse() isBulkCheckPermissionPair_Response

func (*BulkCheckPermissionPair) MarshalToSizedBufferVT added in v0.10.0

func (m *BulkCheckPermissionPair) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*BulkCheckPermissionPair) MarshalToVT added in v0.10.0

func (m *BulkCheckPermissionPair) MarshalToVT(dAtA []byte) (int, error)

func (*BulkCheckPermissionPair) MarshalVT added in v0.10.0

func (m *BulkCheckPermissionPair) MarshalVT() (dAtA []byte, err error)

func (*BulkCheckPermissionPair) ProtoMessage added in v0.10.0

func (*BulkCheckPermissionPair) ProtoMessage()

func (*BulkCheckPermissionPair) ProtoReflect added in v0.10.0

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

func (*BulkCheckPermissionPair) Reset added in v0.10.0

func (x *BulkCheckPermissionPair) Reset()

func (*BulkCheckPermissionPair) SizeVT added in v0.10.0

func (m *BulkCheckPermissionPair) SizeVT() (n int)

func (*BulkCheckPermissionPair) String added in v0.10.0

func (x *BulkCheckPermissionPair) String() string

func (*BulkCheckPermissionPair) UnmarshalVT added in v0.10.0

func (m *BulkCheckPermissionPair) UnmarshalVT(dAtA []byte) error

func (*BulkCheckPermissionPair) Validate added in v0.10.0

func (m *BulkCheckPermissionPair) Validate() error

Validate checks the field values on BulkCheckPermissionPair 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 (*BulkCheckPermissionPair) ValidateAll added in v0.10.0

func (m *BulkCheckPermissionPair) ValidateAll() error

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

type BulkCheckPermissionPairMultiError added in v0.10.0

type BulkCheckPermissionPairMultiError []error

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

func (BulkCheckPermissionPairMultiError) AllErrors added in v0.10.0

func (m BulkCheckPermissionPairMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (BulkCheckPermissionPairMultiError) Error added in v0.10.0

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

type BulkCheckPermissionPairValidationError added in v0.10.0

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

BulkCheckPermissionPairValidationError is the validation error returned by BulkCheckPermissionPair.Validate if the designated constraints aren't met.

func (BulkCheckPermissionPairValidationError) Cause added in v0.10.0

Cause function returns cause value.

func (BulkCheckPermissionPairValidationError) Error added in v0.10.0

Error satisfies the builtin error interface

func (BulkCheckPermissionPairValidationError) ErrorName added in v0.10.0

ErrorName returns error name.

func (BulkCheckPermissionPairValidationError) Field added in v0.10.0

Field function returns field value.

func (BulkCheckPermissionPairValidationError) Key added in v0.10.0

Key function returns key value.

func (BulkCheckPermissionPairValidationError) Reason added in v0.10.0

Reason function returns reason value.

type BulkCheckPermissionPair_Error added in v0.10.0

type BulkCheckPermissionPair_Error struct {
	Error *status.Status `protobuf:"bytes,3,opt,name=error,proto3,oneof"`
}

func (*BulkCheckPermissionPair_Error) CloneVT added in v0.10.0

func (m *BulkCheckPermissionPair_Error) CloneVT() isBulkCheckPermissionPair_Response

func (*BulkCheckPermissionPair_Error) MarshalToSizedBufferVT added in v0.10.0

func (m *BulkCheckPermissionPair_Error) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*BulkCheckPermissionPair_Error) MarshalToVT added in v0.10.0

func (m *BulkCheckPermissionPair_Error) MarshalToVT(dAtA []byte) (int, error)

func (*BulkCheckPermissionPair_Error) SizeVT added in v0.10.0

func (m *BulkCheckPermissionPair_Error) SizeVT() (n int)

type BulkCheckPermissionPair_Item added in v0.10.0

type BulkCheckPermissionPair_Item struct {
	Item *BulkCheckPermissionResponseItem `protobuf:"bytes,2,opt,name=item,proto3,oneof"`
}

func (*BulkCheckPermissionPair_Item) CloneVT added in v0.10.0

func (m *BulkCheckPermissionPair_Item) CloneVT() isBulkCheckPermissionPair_Response

func (*BulkCheckPermissionPair_Item) MarshalToSizedBufferVT added in v0.10.0

func (m *BulkCheckPermissionPair_Item) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*BulkCheckPermissionPair_Item) MarshalToVT added in v0.10.0

func (m *BulkCheckPermissionPair_Item) MarshalToVT(dAtA []byte) (int, error)

func (*BulkCheckPermissionPair_Item) SizeVT added in v0.10.0

func (m *BulkCheckPermissionPair_Item) SizeVT() (n int)

type BulkCheckPermissionRequest added in v0.10.0

type BulkCheckPermissionRequest struct {
	Consistency *Consistency                      `protobuf:"bytes,1,opt,name=consistency,proto3" json:"consistency,omitempty"`
	Items       []*BulkCheckPermissionRequestItem `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*BulkCheckPermissionRequest) CloneMessageVT added in v0.10.0

func (m *BulkCheckPermissionRequest) CloneMessageVT() proto.Message

func (*BulkCheckPermissionRequest) CloneVT added in v0.10.0

func (*BulkCheckPermissionRequest) Descriptor deprecated added in v0.10.0

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

Deprecated: Use BulkCheckPermissionRequest.ProtoReflect.Descriptor instead.

func (*BulkCheckPermissionRequest) GetConsistency added in v0.10.0

func (x *BulkCheckPermissionRequest) GetConsistency() *Consistency

func (*BulkCheckPermissionRequest) GetItems added in v0.10.0

func (*BulkCheckPermissionRequest) MarshalToSizedBufferVT added in v0.10.0

func (m *BulkCheckPermissionRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*BulkCheckPermissionRequest) MarshalToVT added in v0.10.0

func (m *BulkCheckPermissionRequest) MarshalToVT(dAtA []byte) (int, error)

func (*BulkCheckPermissionRequest) MarshalVT added in v0.10.0

func (m *BulkCheckPermissionRequest) MarshalVT() (dAtA []byte, err error)

func (*BulkCheckPermissionRequest) ProtoMessage added in v0.10.0

func (*BulkCheckPermissionRequest) ProtoMessage()

func (*BulkCheckPermissionRequest) ProtoReflect added in v0.10.0

func (*BulkCheckPermissionRequest) Reset added in v0.10.0

func (x *BulkCheckPermissionRequest) Reset()

func (*BulkCheckPermissionRequest) SizeVT added in v0.10.0

func (m *BulkCheckPermissionRequest) SizeVT() (n int)

func (*BulkCheckPermissionRequest) String added in v0.10.0

func (x *BulkCheckPermissionRequest) String() string

func (*BulkCheckPermissionRequest) UnmarshalVT added in v0.10.0

func (m *BulkCheckPermissionRequest) UnmarshalVT(dAtA []byte) error

func (*BulkCheckPermissionRequest) Validate added in v0.10.0

func (m *BulkCheckPermissionRequest) Validate() error

Validate checks the field values on BulkCheckPermissionRequest 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 (*BulkCheckPermissionRequest) ValidateAll added in v0.10.0

func (m *BulkCheckPermissionRequest) ValidateAll() error

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

type BulkCheckPermissionRequestItem added in v0.10.0

type BulkCheckPermissionRequestItem struct {
	Resource   *ObjectReference  `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
	Permission string            `protobuf:"bytes,2,opt,name=permission,proto3" json:"permission,omitempty"`
	Subject    *SubjectReference `protobuf:"bytes,3,opt,name=subject,proto3" json:"subject,omitempty"`
	Context    *structpb.Struct  `protobuf:"bytes,4,opt,name=context,proto3" json:"context,omitempty"`
	// contains filtered or unexported fields
}

func (*BulkCheckPermissionRequestItem) CloneMessageVT added in v0.10.0

func (m *BulkCheckPermissionRequestItem) CloneMessageVT() proto.Message

func (*BulkCheckPermissionRequestItem) CloneVT added in v0.10.0

func (*BulkCheckPermissionRequestItem) Descriptor deprecated added in v0.10.0

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

Deprecated: Use BulkCheckPermissionRequestItem.ProtoReflect.Descriptor instead.

func (*BulkCheckPermissionRequestItem) GetContext added in v0.10.0

func (*BulkCheckPermissionRequestItem) GetPermission added in v0.10.0

func (x *BulkCheckPermissionRequestItem) GetPermission() string

func (*BulkCheckPermissionRequestItem) GetResource added in v0.10.0

func (*BulkCheckPermissionRequestItem) GetSubject added in v0.10.0

func (*BulkCheckPermissionRequestItem) MarshalToSizedBufferVT added in v0.10.0

func (m *BulkCheckPermissionRequestItem) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*BulkCheckPermissionRequestItem) MarshalToVT added in v0.10.0

func (m *BulkCheckPermissionRequestItem) MarshalToVT(dAtA []byte) (int, error)

func (*BulkCheckPermissionRequestItem) MarshalVT added in v0.10.0

func (m *BulkCheckPermissionRequestItem) MarshalVT() (dAtA []byte, err error)

func (*BulkCheckPermissionRequestItem) ProtoMessage added in v0.10.0

func (*BulkCheckPermissionRequestItem) ProtoMessage()

func (*BulkCheckPermissionRequestItem) ProtoReflect added in v0.10.0

func (*BulkCheckPermissionRequestItem) Reset added in v0.10.0

func (x *BulkCheckPermissionRequestItem) Reset()

func (*BulkCheckPermissionRequestItem) SizeVT added in v0.10.0

func (m *BulkCheckPermissionRequestItem) SizeVT() (n int)

func (*BulkCheckPermissionRequestItem) String added in v0.10.0

func (*BulkCheckPermissionRequestItem) UnmarshalVT added in v0.10.0

func (m *BulkCheckPermissionRequestItem) UnmarshalVT(dAtA []byte) error

func (*BulkCheckPermissionRequestItem) Validate added in v0.10.0

func (m *BulkCheckPermissionRequestItem) Validate() error

Validate checks the field values on BulkCheckPermissionRequestItem 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 (*BulkCheckPermissionRequestItem) ValidateAll added in v0.10.0

func (m *BulkCheckPermissionRequestItem) ValidateAll() error

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

type BulkCheckPermissionRequestItemMultiError added in v0.10.0

type BulkCheckPermissionRequestItemMultiError []error

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

func (BulkCheckPermissionRequestItemMultiError) AllErrors added in v0.10.0

AllErrors returns a list of validation violation errors.

func (BulkCheckPermissionRequestItemMultiError) Error added in v0.10.0

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

type BulkCheckPermissionRequestItemValidationError added in v0.10.0

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

BulkCheckPermissionRequestItemValidationError is the validation error returned by BulkCheckPermissionRequestItem.Validate if the designated constraints aren't met.

func (BulkCheckPermissionRequestItemValidationError) Cause added in v0.10.0

Cause function returns cause value.

func (BulkCheckPermissionRequestItemValidationError) Error added in v0.10.0

Error satisfies the builtin error interface

func (BulkCheckPermissionRequestItemValidationError) ErrorName added in v0.10.0

ErrorName returns error name.

func (BulkCheckPermissionRequestItemValidationError) Field added in v0.10.0

Field function returns field value.

func (BulkCheckPermissionRequestItemValidationError) Key added in v0.10.0

Key function returns key value.

func (BulkCheckPermissionRequestItemValidationError) Reason added in v0.10.0

Reason function returns reason value.

type BulkCheckPermissionRequestMultiError added in v0.10.0

type BulkCheckPermissionRequestMultiError []error

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

func (BulkCheckPermissionRequestMultiError) AllErrors added in v0.10.0

AllErrors returns a list of validation violation errors.

func (BulkCheckPermissionRequestMultiError) Error added in v0.10.0

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

type BulkCheckPermissionRequestValidationError added in v0.10.0

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

BulkCheckPermissionRequestValidationError is the validation error returned by BulkCheckPermissionRequest.Validate if the designated constraints aren't met.

func (BulkCheckPermissionRequestValidationError) Cause added in v0.10.0

Cause function returns cause value.

func (BulkCheckPermissionRequestValidationError) Error added in v0.10.0

Error satisfies the builtin error interface

func (BulkCheckPermissionRequestValidationError) ErrorName added in v0.10.0

ErrorName returns error name.

func (BulkCheckPermissionRequestValidationError) Field added in v0.10.0

Field function returns field value.

func (BulkCheckPermissionRequestValidationError) Key added in v0.10.0

Key function returns key value.

func (BulkCheckPermissionRequestValidationError) Reason added in v0.10.0

Reason function returns reason value.

type BulkCheckPermissionResponse added in v0.10.0

type BulkCheckPermissionResponse struct {
	CheckedAt *ZedToken                  `protobuf:"bytes,1,opt,name=checked_at,json=checkedAt,proto3" json:"checked_at,omitempty"`
	Pairs     []*BulkCheckPermissionPair `protobuf:"bytes,2,rep,name=pairs,proto3" json:"pairs,omitempty"`
	// contains filtered or unexported fields
}

func (*BulkCheckPermissionResponse) CloneMessageVT added in v0.10.0

func (m *BulkCheckPermissionResponse) CloneMessageVT() proto.Message

func (*BulkCheckPermissionResponse) CloneVT added in v0.10.0

func (*BulkCheckPermissionResponse) Descriptor deprecated added in v0.10.0

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

Deprecated: Use BulkCheckPermissionResponse.ProtoReflect.Descriptor instead.

func (*BulkCheckPermissionResponse) GetCheckedAt added in v0.10.0

func (x *BulkCheckPermissionResponse) GetCheckedAt() *ZedToken

func (*BulkCheckPermissionResponse) GetPairs added in v0.10.0

func (*BulkCheckPermissionResponse) MarshalToSizedBufferVT added in v0.10.0

func (m *BulkCheckPermissionResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*BulkCheckPermissionResponse) MarshalToVT added in v0.10.0

func (m *BulkCheckPermissionResponse) MarshalToVT(dAtA []byte) (int, error)

func (*BulkCheckPermissionResponse) MarshalVT added in v0.10.0

func (m *BulkCheckPermissionResponse) MarshalVT() (dAtA []byte, err error)

func (*BulkCheckPermissionResponse) ProtoMessage added in v0.10.0

func (*BulkCheckPermissionResponse) ProtoMessage()

func (*BulkCheckPermissionResponse) ProtoReflect added in v0.10.0

func (*BulkCheckPermissionResponse) Reset added in v0.10.0

func (x *BulkCheckPermissionResponse) Reset()

func (*BulkCheckPermissionResponse) SizeVT added in v0.10.0

func (m *BulkCheckPermissionResponse) SizeVT() (n int)

func (*BulkCheckPermissionResponse) String added in v0.10.0

func (x *BulkCheckPermissionResponse) String() string

func (*BulkCheckPermissionResponse) UnmarshalVT added in v0.10.0

func (m *BulkCheckPermissionResponse) UnmarshalVT(dAtA []byte) error

func (*BulkCheckPermissionResponse) Validate added in v0.10.0

func (m *BulkCheckPermissionResponse) Validate() error

Validate checks the field values on BulkCheckPermissionResponse 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 (*BulkCheckPermissionResponse) ValidateAll added in v0.10.0

func (m *BulkCheckPermissionResponse) ValidateAll() error

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

type BulkCheckPermissionResponseItem added in v0.10.0

type BulkCheckPermissionResponseItem struct {
	Permissionship    CheckPermissionResponse_Permissionship `` /* 141-byte string literal not displayed */
	PartialCaveatInfo *PartialCaveatInfo                     `protobuf:"bytes,2,opt,name=partial_caveat_info,json=partialCaveatInfo,proto3" json:"partial_caveat_info,omitempty"`
	// contains filtered or unexported fields
}

func (*BulkCheckPermissionResponseItem) CloneMessageVT added in v0.10.0

func (m *BulkCheckPermissionResponseItem) CloneMessageVT() proto.Message

func (*BulkCheckPermissionResponseItem) CloneVT added in v0.10.0

func (*BulkCheckPermissionResponseItem) Descriptor deprecated added in v0.10.0

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

Deprecated: Use BulkCheckPermissionResponseItem.ProtoReflect.Descriptor instead.

func (*BulkCheckPermissionResponseItem) GetPartialCaveatInfo added in v0.10.0

func (x *BulkCheckPermissionResponseItem) GetPartialCaveatInfo() *PartialCaveatInfo

func (*BulkCheckPermissionResponseItem) GetPermissionship added in v0.10.0

func (*BulkCheckPermissionResponseItem) MarshalToSizedBufferVT added in v0.10.0

func (m *BulkCheckPermissionResponseItem) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*BulkCheckPermissionResponseItem) MarshalToVT added in v0.10.0

func (m *BulkCheckPermissionResponseItem) MarshalToVT(dAtA []byte) (int, error)

func (*BulkCheckPermissionResponseItem) MarshalVT added in v0.10.0

func (m *BulkCheckPermissionResponseItem) MarshalVT() (dAtA []byte, err error)

func (*BulkCheckPermissionResponseItem) ProtoMessage added in v0.10.0

func (*BulkCheckPermissionResponseItem) ProtoMessage()

func (*BulkCheckPermissionResponseItem) ProtoReflect added in v0.10.0

func (*BulkCheckPermissionResponseItem) Reset added in v0.10.0

func (*BulkCheckPermissionResponseItem) SizeVT added in v0.10.0

func (m *BulkCheckPermissionResponseItem) SizeVT() (n int)

func (*BulkCheckPermissionResponseItem) String added in v0.10.0

func (*BulkCheckPermissionResponseItem) UnmarshalVT added in v0.10.0

func (m *BulkCheckPermissionResponseItem) UnmarshalVT(dAtA []byte) error

func (*BulkCheckPermissionResponseItem) Validate added in v0.10.0

func (m *BulkCheckPermissionResponseItem) Validate() error

Validate checks the field values on BulkCheckPermissionResponseItem 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 (*BulkCheckPermissionResponseItem) ValidateAll added in v0.10.0

func (m *BulkCheckPermissionResponseItem) ValidateAll() error

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

type BulkCheckPermissionResponseItemMultiError added in v0.10.0

type BulkCheckPermissionResponseItemMultiError []error

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

func (BulkCheckPermissionResponseItemMultiError) AllErrors added in v0.10.0

AllErrors returns a list of validation violation errors.

func (BulkCheckPermissionResponseItemMultiError) Error added in v0.10.0

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

type BulkCheckPermissionResponseItemValidationError added in v0.10.0

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

BulkCheckPermissionResponseItemValidationError is the validation error returned by BulkCheckPermissionResponseItem.Validate if the designated constraints aren't met.

func (BulkCheckPermissionResponseItemValidationError) Cause added in v0.10.0

Cause function returns cause value.

func (BulkCheckPermissionResponseItemValidationError) Error added in v0.10.0

Error satisfies the builtin error interface

func (BulkCheckPermissionResponseItemValidationError) ErrorName added in v0.10.0

ErrorName returns error name.

func (BulkCheckPermissionResponseItemValidationError) Field added in v0.10.0

Field function returns field value.

func (BulkCheckPermissionResponseItemValidationError) Key added in v0.10.0

Key function returns key value.

func (BulkCheckPermissionResponseItemValidationError) Reason added in v0.10.0

Reason function returns reason value.

type BulkCheckPermissionResponseMultiError added in v0.10.0

type BulkCheckPermissionResponseMultiError []error

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

func (BulkCheckPermissionResponseMultiError) AllErrors added in v0.10.0

AllErrors returns a list of validation violation errors.

func (BulkCheckPermissionResponseMultiError) Error added in v0.10.0

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

type BulkCheckPermissionResponseValidationError added in v0.10.0

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

BulkCheckPermissionResponseValidationError is the validation error returned by BulkCheckPermissionResponse.Validate if the designated constraints aren't met.

func (BulkCheckPermissionResponseValidationError) Cause added in v0.10.0

Cause function returns cause value.

func (BulkCheckPermissionResponseValidationError) Error added in v0.10.0

Error satisfies the builtin error interface

func (BulkCheckPermissionResponseValidationError) ErrorName added in v0.10.0

ErrorName returns error name.

func (BulkCheckPermissionResponseValidationError) Field added in v0.10.0

Field function returns field value.

func (BulkCheckPermissionResponseValidationError) Key added in v0.10.0

Key function returns key value.

func (BulkCheckPermissionResponseValidationError) Reason added in v0.10.0

Reason function returns reason value.

type BulkExportRelationshipsRequest added in v0.9.0

type BulkExportRelationshipsRequest struct {
	Consistency *Consistency `protobuf:"bytes,1,opt,name=consistency,proto3" json:"consistency,omitempty"`
	// optional_limit, if non-zero, specifies the limit on the number of
	// relationships the server can return in one page. By default, the server
	// will pick a page size, and the server is free to choose a smaller size
	// at will.
	OptionalLimit uint32 `protobuf:"varint,2,opt,name=optional_limit,json=optionalLimit,proto3" json:"optional_limit,omitempty"`
	// optional_cursor, if specified, indicates the cursor after which results
	// should resume being returned. The cursor can be found on the
	// BulkExportRelationshipsResponse object.
	OptionalCursor *Cursor `protobuf:"bytes,3,opt,name=optional_cursor,json=optionalCursor,proto3" json:"optional_cursor,omitempty"`
	// contains filtered or unexported fields
}

BulkExportRelationshipsRequest represents a resumable request for all relationships from the server.

func (*BulkExportRelationshipsRequest) CloneMessageVT added in v0.9.0

func (m *BulkExportRelationshipsRequest) CloneMessageVT() proto.Message

func (*BulkExportRelationshipsRequest) CloneVT added in v0.9.0

func (*BulkExportRelationshipsRequest) Descriptor deprecated added in v0.9.0

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

Deprecated: Use BulkExportRelationshipsRequest.ProtoReflect.Descriptor instead.

func (*BulkExportRelationshipsRequest) GetConsistency added in v0.9.0

func (x *BulkExportRelationshipsRequest) GetConsistency() *Consistency

func (*BulkExportRelationshipsRequest) GetOptionalCursor added in v0.9.0

func (x *BulkExportRelationshipsRequest) GetOptionalCursor() *Cursor

func (*BulkExportRelationshipsRequest) GetOptionalLimit added in v0.9.0

func (x *BulkExportRelationshipsRequest) GetOptionalLimit() uint32

func (*BulkExportRelationshipsRequest) MarshalToSizedBufferVT added in v0.9.0

func (m *BulkExportRelationshipsRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*BulkExportRelationshipsRequest) MarshalToVT added in v0.9.0

func (m *BulkExportRelationshipsRequest) MarshalToVT(dAtA []byte) (int, error)

func (*BulkExportRelationshipsRequest) MarshalVT added in v0.9.0

func (m *BulkExportRelationshipsRequest) MarshalVT() (dAtA []byte, err error)

func (*BulkExportRelationshipsRequest) ProtoMessage added in v0.9.0

func (*BulkExportRelationshipsRequest) ProtoMessage()

func (*BulkExportRelationshipsRequest) ProtoReflect added in v0.9.0

func (*BulkExportRelationshipsRequest) Reset added in v0.9.0

func (x *BulkExportRelationshipsRequest) Reset()

func (*BulkExportRelationshipsRequest) SizeVT added in v0.9.0

func (m *BulkExportRelationshipsRequest) SizeVT() (n int)

func (*BulkExportRelationshipsRequest) String added in v0.9.0

func (*BulkExportRelationshipsRequest) UnmarshalVT added in v0.9.0

func (m *BulkExportRelationshipsRequest) UnmarshalVT(dAtA []byte) error

func (*BulkExportRelationshipsRequest) Validate added in v0.9.0

func (m *BulkExportRelationshipsRequest) Validate() error

Validate checks the field values on BulkExportRelationshipsRequest 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 (*BulkExportRelationshipsRequest) ValidateAll added in v0.9.0

func (m *BulkExportRelationshipsRequest) ValidateAll() error

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

type BulkExportRelationshipsRequestMultiError added in v0.9.0

type BulkExportRelationshipsRequestMultiError []error

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

func (BulkExportRelationshipsRequestMultiError) AllErrors added in v0.9.0

AllErrors returns a list of validation violation errors.

func (BulkExportRelationshipsRequestMultiError) Error added in v0.9.0

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

type BulkExportRelationshipsRequestValidationError added in v0.9.0

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

BulkExportRelationshipsRequestValidationError is the validation error returned by BulkExportRelationshipsRequest.Validate if the designated constraints aren't met.

func (BulkExportRelationshipsRequestValidationError) Cause added in v0.9.0

Cause function returns cause value.

func (BulkExportRelationshipsRequestValidationError) Error added in v0.9.0

Error satisfies the builtin error interface

func (BulkExportRelationshipsRequestValidationError) ErrorName added in v0.9.0

ErrorName returns error name.

func (BulkExportRelationshipsRequestValidationError) Field added in v0.9.0

Field function returns field value.

func (BulkExportRelationshipsRequestValidationError) Key added in v0.9.0

Key function returns key value.

func (BulkExportRelationshipsRequestValidationError) Reason added in v0.9.0

Reason function returns reason value.

type BulkExportRelationshipsResponse added in v0.9.0

type BulkExportRelationshipsResponse struct {
	AfterResultCursor *Cursor         `protobuf:"bytes,1,opt,name=after_result_cursor,json=afterResultCursor,proto3" json:"after_result_cursor,omitempty"`
	Relationships     []*Relationship `protobuf:"bytes,2,rep,name=relationships,proto3" json:"relationships,omitempty"`
	// contains filtered or unexported fields
}

BulkExportRelationshipsResponse is one page in a stream of relationship groups that meet the criteria specified by the originating request. The server will continue to stream back relationship groups as quickly as it can until all relationships have been transmitted back.

func (*BulkExportRelationshipsResponse) CloneMessageVT added in v0.9.0

func (m *BulkExportRelationshipsResponse) CloneMessageVT() proto.Message

func (*BulkExportRelationshipsResponse) CloneVT added in v0.9.0

func (*BulkExportRelationshipsResponse) Descriptor deprecated added in v0.9.0

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

Deprecated: Use BulkExportRelationshipsResponse.ProtoReflect.Descriptor instead.

func (*BulkExportRelationshipsResponse) GetAfterResultCursor added in v0.9.0

func (x *BulkExportRelationshipsResponse) GetAfterResultCursor() *Cursor

func (*BulkExportRelationshipsResponse) GetRelationships added in v0.9.0

func (x *BulkExportRelationshipsResponse) GetRelationships() []*Relationship

func (*BulkExportRelationshipsResponse) MarshalToSizedBufferVT added in v0.9.0

func (m *BulkExportRelationshipsResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*BulkExportRelationshipsResponse) MarshalToVT added in v0.9.0

func (m *BulkExportRelationshipsResponse) MarshalToVT(dAtA []byte) (int, error)

func (*BulkExportRelationshipsResponse) MarshalVT added in v0.9.0

func (m *BulkExportRelationshipsResponse) MarshalVT() (dAtA []byte, err error)

func (*BulkExportRelationshipsResponse) ProtoMessage added in v0.9.0

func (*BulkExportRelationshipsResponse) ProtoMessage()

func (*BulkExportRelationshipsResponse) ProtoReflect added in v0.9.0

func (*BulkExportRelationshipsResponse) Reset added in v0.9.0

func (*BulkExportRelationshipsResponse) SizeVT added in v0.9.0

func (m *BulkExportRelationshipsResponse) SizeVT() (n int)

func (*BulkExportRelationshipsResponse) String added in v0.9.0

func (*BulkExportRelationshipsResponse) UnmarshalVT added in v0.9.0

func (m *BulkExportRelationshipsResponse) UnmarshalVT(dAtA []byte) error

func (*BulkExportRelationshipsResponse) Validate added in v0.9.0

func (m *BulkExportRelationshipsResponse) Validate() error

Validate checks the field values on BulkExportRelationshipsResponse 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 (*BulkExportRelationshipsResponse) ValidateAll added in v0.9.0

func (m *BulkExportRelationshipsResponse) ValidateAll() error

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

type BulkExportRelationshipsResponseMultiError added in v0.9.0

type BulkExportRelationshipsResponseMultiError []error

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

func (BulkExportRelationshipsResponseMultiError) AllErrors added in v0.9.0

AllErrors returns a list of validation violation errors.

func (BulkExportRelationshipsResponseMultiError) Error added in v0.9.0

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

type BulkExportRelationshipsResponseValidationError added in v0.9.0

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

BulkExportRelationshipsResponseValidationError is the validation error returned by BulkExportRelationshipsResponse.Validate if the designated constraints aren't met.

func (BulkExportRelationshipsResponseValidationError) Cause added in v0.9.0

Cause function returns cause value.

func (BulkExportRelationshipsResponseValidationError) Error added in v0.9.0

Error satisfies the builtin error interface

func (BulkExportRelationshipsResponseValidationError) ErrorName added in v0.9.0

ErrorName returns error name.

func (BulkExportRelationshipsResponseValidationError) Field added in v0.9.0

Field function returns field value.

func (BulkExportRelationshipsResponseValidationError) Key added in v0.9.0

Key function returns key value.

func (BulkExportRelationshipsResponseValidationError) Reason added in v0.9.0

Reason function returns reason value.

type BulkImportRelationshipsRequest added in v0.9.0

type BulkImportRelationshipsRequest struct {
	Relationships []*Relationship `protobuf:"bytes,1,rep,name=relationships,proto3" json:"relationships,omitempty"`
	// contains filtered or unexported fields
}

BulkImportRelationshipsRequest represents one batch of the streaming BulkImportRelationships API. The maximum size is only limited by the backing datastore, and optimal size should be determined by the calling client experimentally.

func (*BulkImportRelationshipsRequest) CloneMessageVT added in v0.9.0

func (m *BulkImportRelationshipsRequest) CloneMessageVT() proto.Message

func (*BulkImportRelationshipsRequest) CloneVT added in v0.9.0

func (*BulkImportRelationshipsRequest) Descriptor deprecated added in v0.9.0

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

Deprecated: Use BulkImportRelationshipsRequest.ProtoReflect.Descriptor instead.

func (*BulkImportRelationshipsRequest) GetRelationships added in v0.9.0

func (x *BulkImportRelationshipsRequest) GetRelationships() []*Relationship

func (*BulkImportRelationshipsRequest) MarshalToSizedBufferVT added in v0.9.0

func (m *BulkImportRelationshipsRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*BulkImportRelationshipsRequest) MarshalToVT added in v0.9.0

func (m *BulkImportRelationshipsRequest) MarshalToVT(dAtA []byte) (int, error)

func (*BulkImportRelationshipsRequest) MarshalVT added in v0.9.0

func (m *BulkImportRelationshipsRequest) MarshalVT() (dAtA []byte, err error)

func (*BulkImportRelationshipsRequest) ProtoMessage added in v0.9.0

func (*BulkImportRelationshipsRequest) ProtoMessage()

func (*BulkImportRelationshipsRequest) ProtoReflect added in v0.9.0

func (*BulkImportRelationshipsRequest) Reset added in v0.9.0

func (x *BulkImportRelationshipsRequest) Reset()

func (*BulkImportRelationshipsRequest) SizeVT added in v0.9.0

func (m *BulkImportRelationshipsRequest) SizeVT() (n int)

func (*BulkImportRelationshipsRequest) String added in v0.9.0

func (*BulkImportRelationshipsRequest) UnmarshalVT added in v0.9.0

func (m *BulkImportRelationshipsRequest) UnmarshalVT(dAtA []byte) error

func (*BulkImportRelationshipsRequest) Validate added in v0.9.0

func (m *BulkImportRelationshipsRequest) Validate() error

Validate checks the field values on BulkImportRelationshipsRequest 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 (*BulkImportRelationshipsRequest) ValidateAll added in v0.9.0

func (m *BulkImportRelationshipsRequest) ValidateAll() error

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

type BulkImportRelationshipsRequestMultiError added in v0.9.0

type BulkImportRelationshipsRequestMultiError []error

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

func (BulkImportRelationshipsRequestMultiError) AllErrors added in v0.9.0

AllErrors returns a list of validation violation errors.

func (BulkImportRelationshipsRequestMultiError) Error added in v0.9.0

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

type BulkImportRelationshipsRequestValidationError added in v0.9.0

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

BulkImportRelationshipsRequestValidationError is the validation error returned by BulkImportRelationshipsRequest.Validate if the designated constraints aren't met.

func (BulkImportRelationshipsRequestValidationError) Cause added in v0.9.0

Cause function returns cause value.

func (BulkImportRelationshipsRequestValidationError) Error added in v0.9.0

Error satisfies the builtin error interface

func (BulkImportRelationshipsRequestValidationError) ErrorName added in v0.9.0

ErrorName returns error name.

func (BulkImportRelationshipsRequestValidationError) Field added in v0.9.0

Field function returns field value.

func (BulkImportRelationshipsRequestValidationError) Key added in v0.9.0

Key function returns key value.

func (BulkImportRelationshipsRequestValidationError) Reason added in v0.9.0

Reason function returns reason value.

type BulkImportRelationshipsResponse added in v0.9.0

type BulkImportRelationshipsResponse struct {
	NumLoaded uint64 `protobuf:"varint,1,opt,name=num_loaded,json=numLoaded,proto3" json:"num_loaded,omitempty"`
	// contains filtered or unexported fields
}

BulkImportRelationshipsResponse is returned on successful completion of the bulk load stream, and contains the total number of relationships loaded.

func (*BulkImportRelationshipsResponse) CloneMessageVT added in v0.9.0