Documentation ¶
Overview ¶
Package writer is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterWriterHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterWriterHandlerClient(ctx context.Context, mux *runtime.ServeMux, client WriterClient) error
- func RegisterWriterHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterWriterHandlerServer(ctx context.Context, mux *runtime.ServeMux, server WriterServer) error
- func RegisterWriterServer(s grpc.ServiceRegistrar, srv WriterServer)
- type DeleteObjectRequestdeprecated
- func (*DeleteObjectRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteObjectRequest) GetParam() *v2.ObjectIdentifier
- func (x *DeleteObjectRequest) GetWithRelations() bool
- func (*DeleteObjectRequest) ProtoMessage()
- func (x *DeleteObjectRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteObjectRequest) Reset()
- func (x *DeleteObjectRequest) String() string
- type DeleteObjectResponsedeprecated
- func (*DeleteObjectResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteObjectResponse) GetResult() *emptypb.Empty
- func (*DeleteObjectResponse) ProtoMessage()
- func (x *DeleteObjectResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteObjectResponse) Reset()
- func (x *DeleteObjectResponse) String() string
- type DeleteObjectTypeRequestdeprecated
- func (*DeleteObjectTypeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteObjectTypeRequest) GetParam() *v2.ObjectTypeIdentifier
- func (*DeleteObjectTypeRequest) ProtoMessage()
- func (x *DeleteObjectTypeRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteObjectTypeRequest) Reset()
- func (x *DeleteObjectTypeRequest) String() string
- type DeleteObjectTypeResponsedeprecated
- func (*DeleteObjectTypeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteObjectTypeResponse) GetResult() *emptypb.Empty
- func (*DeleteObjectTypeResponse) ProtoMessage()
- func (x *DeleteObjectTypeResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteObjectTypeResponse) Reset()
- func (x *DeleteObjectTypeResponse) String() string
- type DeletePermissionRequestdeprecated
- func (*DeletePermissionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeletePermissionRequest) GetParam() *v2.PermissionIdentifier
- func (*DeletePermissionRequest) ProtoMessage()
- func (x *DeletePermissionRequest) ProtoReflect() protoreflect.Message
- func (x *DeletePermissionRequest) Reset()
- func (x *DeletePermissionRequest) String() string
- type DeletePermissionResponsedeprecated
- func (*DeletePermissionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeletePermissionResponse) GetResult() *emptypb.Empty
- func (*DeletePermissionResponse) ProtoMessage()
- func (x *DeletePermissionResponse) ProtoReflect() protoreflect.Message
- func (x *DeletePermissionResponse) Reset()
- func (x *DeletePermissionResponse) String() string
- type DeleteRelationRequestdeprecated
- func (*DeleteRelationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteRelationRequest) GetParam() *v2.RelationIdentifier
- func (*DeleteRelationRequest) ProtoMessage()
- func (x *DeleteRelationRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteRelationRequest) Reset()
- func (x *DeleteRelationRequest) String() string
- type DeleteRelationResponsedeprecated
- func (*DeleteRelationResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteRelationResponse) GetResult() *emptypb.Empty
- func (*DeleteRelationResponse) ProtoMessage()
- func (x *DeleteRelationResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteRelationResponse) Reset()
- func (x *DeleteRelationResponse) String() string
- type DeleteRelationTypeRequestdeprecated
- func (*DeleteRelationTypeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteRelationTypeRequest) GetParam() *v2.RelationTypeIdentifier
- func (*DeleteRelationTypeRequest) ProtoMessage()
- func (x *DeleteRelationTypeRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteRelationTypeRequest) Reset()
- func (x *DeleteRelationTypeRequest) String() string
- type DeleteRelationTypeResponsedeprecated
- func (*DeleteRelationTypeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteRelationTypeResponse) GetResult() *emptypb.Empty
- func (*DeleteRelationTypeResponse) ProtoMessage()
- func (x *DeleteRelationTypeResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteRelationTypeResponse) Reset()
- func (x *DeleteRelationTypeResponse) String() string
- type SetObjectRequestdeprecated
- type SetObjectResponsedeprecated
- func (*SetObjectResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SetObjectResponse) GetResult() *v2.Object
- func (*SetObjectResponse) ProtoMessage()
- func (x *SetObjectResponse) ProtoReflect() protoreflect.Message
- func (x *SetObjectResponse) Reset()
- func (x *SetObjectResponse) String() string
- type SetObjectTypeRequestdeprecated
- func (*SetObjectTypeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetObjectTypeRequest) GetObjectType() *v2.ObjectType
- func (*SetObjectTypeRequest) ProtoMessage()
- func (x *SetObjectTypeRequest) ProtoReflect() protoreflect.Message
- func (x *SetObjectTypeRequest) Reset()
- func (x *SetObjectTypeRequest) String() string
- type SetObjectTypeResponsedeprecated
- func (*SetObjectTypeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SetObjectTypeResponse) GetResult() *v2.ObjectType
- func (*SetObjectTypeResponse) ProtoMessage()
- func (x *SetObjectTypeResponse) ProtoReflect() protoreflect.Message
- func (x *SetObjectTypeResponse) Reset()
- func (x *SetObjectTypeResponse) String() string
- type SetPermissionRequestdeprecated
- func (*SetPermissionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetPermissionRequest) GetPermission() *v2.Permission
- func (*SetPermissionRequest) ProtoMessage()
- func (x *SetPermissionRequest) ProtoReflect() protoreflect.Message
- func (x *SetPermissionRequest) Reset()
- func (x *SetPermissionRequest) String() string
- type SetPermissionResponsedeprecated
- func (*SetPermissionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SetPermissionResponse) GetResult() *v2.Permission
- func (*SetPermissionResponse) ProtoMessage()
- func (x *SetPermissionResponse) ProtoReflect() protoreflect.Message
- func (x *SetPermissionResponse) Reset()
- func (x *SetPermissionResponse) String() string
- type SetRelationRequestdeprecated
- func (*SetRelationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetRelationRequest) GetRelation() *v2.Relation
- func (*SetRelationRequest) ProtoMessage()
- func (x *SetRelationRequest) ProtoReflect() protoreflect.Message
- func (x *SetRelationRequest) Reset()
- func (x *SetRelationRequest) String() string
- type SetRelationResponsedeprecated
- func (*SetRelationResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SetRelationResponse) GetResult() *v2.Relation
- func (*SetRelationResponse) ProtoMessage()
- func (x *SetRelationResponse) ProtoReflect() protoreflect.Message
- func (x *SetRelationResponse) Reset()
- func (x *SetRelationResponse) String() string
- type SetRelationTypeRequestdeprecated
- func (*SetRelationTypeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetRelationTypeRequest) GetRelationType() *v2.RelationType
- func (*SetRelationTypeRequest) ProtoMessage()
- func (x *SetRelationTypeRequest) ProtoReflect() protoreflect.Message
- func (x *SetRelationTypeRequest) Reset()
- func (x *SetRelationTypeRequest) String() string
- type SetRelationTypeResponsedeprecated
- func (*SetRelationTypeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SetRelationTypeResponse) GetResult() *v2.RelationType
- func (*SetRelationTypeResponse) ProtoMessage()
- func (x *SetRelationTypeResponse) ProtoReflect() protoreflect.Message
- func (x *SetRelationTypeResponse) Reset()
- func (x *SetRelationTypeResponse) String() string
- type UnimplementedWriterServer
- func (UnimplementedWriterServer) DeleteObject(context.Context, *DeleteObjectRequest) (*DeleteObjectResponse, error)
- func (UnimplementedWriterServer) DeleteObjectType(context.Context, *DeleteObjectTypeRequest) (*DeleteObjectTypeResponse, error)
- func (UnimplementedWriterServer) DeletePermission(context.Context, *DeletePermissionRequest) (*DeletePermissionResponse, error)
- func (UnimplementedWriterServer) DeleteRelation(context.Context, *DeleteRelationRequest) (*DeleteRelationResponse, error)
- func (UnimplementedWriterServer) DeleteRelationType(context.Context, *DeleteRelationTypeRequest) (*DeleteRelationTypeResponse, error)
- func (UnimplementedWriterServer) SetObject(context.Context, *SetObjectRequest) (*SetObjectResponse, error)
- func (UnimplementedWriterServer) SetObjectType(context.Context, *SetObjectTypeRequest) (*SetObjectTypeResponse, error)
- func (UnimplementedWriterServer) SetPermission(context.Context, *SetPermissionRequest) (*SetPermissionResponse, error)
- func (UnimplementedWriterServer) SetRelation(context.Context, *SetRelationRequest) (*SetRelationResponse, error)
- func (UnimplementedWriterServer) SetRelationType(context.Context, *SetRelationTypeRequest) (*SetRelationTypeResponse, error)
- type UnsafeWriterServer
- type WriterClient
- type WriterServer
Constants ¶
const ( Writer_SetObjectType_FullMethodName = "/aserto.directory.writer.v2.Writer/SetObjectType" Writer_DeleteObjectType_FullMethodName = "/aserto.directory.writer.v2.Writer/DeleteObjectType" Writer_SetRelationType_FullMethodName = "/aserto.directory.writer.v2.Writer/SetRelationType" Writer_DeleteRelationType_FullMethodName = "/aserto.directory.writer.v2.Writer/DeleteRelationType" Writer_SetPermission_FullMethodName = "/aserto.directory.writer.v2.Writer/SetPermission" Writer_DeletePermission_FullMethodName = "/aserto.directory.writer.v2.Writer/DeletePermission" Writer_SetObject_FullMethodName = "/aserto.directory.writer.v2.Writer/SetObject" Writer_DeleteObject_FullMethodName = "/aserto.directory.writer.v2.Writer/DeleteObject" Writer_SetRelation_FullMethodName = "/aserto.directory.writer.v2.Writer/SetRelation" Writer_DeleteRelation_FullMethodName = "/aserto.directory.writer.v2.Writer/DeleteRelation" )
Variables ¶
var File_aserto_directory_writer_v2_writer_proto protoreflect.FileDescriptor
var Writer_ServiceDesc = grpc.ServiceDesc{ ServiceName: "aserto.directory.writer.v2.Writer", HandlerType: (*WriterServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SetObjectType", Handler: _Writer_SetObjectType_Handler, }, { MethodName: "DeleteObjectType", Handler: _Writer_DeleteObjectType_Handler, }, { MethodName: "SetRelationType", Handler: _Writer_SetRelationType_Handler, }, { MethodName: "DeleteRelationType", Handler: _Writer_DeleteRelationType_Handler, }, { MethodName: "SetPermission", Handler: _Writer_SetPermission_Handler, }, { MethodName: "DeletePermission", Handler: _Writer_DeletePermission_Handler, }, { MethodName: "SetObject", Handler: _Writer_SetObject_Handler, }, { MethodName: "DeleteObject", Handler: _Writer_DeleteObject_Handler, }, { MethodName: "SetRelation", Handler: _Writer_SetRelation_Handler, }, { MethodName: "DeleteRelation", Handler: _Writer_DeleteRelation_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "aserto/directory/writer/v2/writer.proto", }
Writer_ServiceDesc is the grpc.ServiceDesc for Writer service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterWriterHandler ¶
RegisterWriterHandler registers the http handlers for service Writer to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterWriterHandlerClient ¶
func RegisterWriterHandlerClient(ctx context.Context, mux *runtime.ServeMux, client WriterClient) error
RegisterWriterHandlerClient registers the http handlers for service Writer to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "WriterClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "WriterClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "WriterClient" to call the correct interceptors. This client ignores the HTTP middlewares.
func RegisterWriterHandlerFromEndpoint ¶
func RegisterWriterHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterWriterHandlerFromEndpoint is same as RegisterWriterHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterWriterHandlerServer ¶
func RegisterWriterHandlerServer(ctx context.Context, mux *runtime.ServeMux, server WriterServer) error
RegisterWriterHandlerServer registers the http handlers for service Writer to "mux". UnaryRPC :call WriterServer 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 RegisterWriterHandlerFromEndpoint instead. GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.
func RegisterWriterServer ¶
func RegisterWriterServer(s grpc.ServiceRegistrar, srv WriterServer)
Types ¶
type DeleteObjectRequest
deprecated
type DeleteObjectRequest struct { // object identifier Param *v2.ObjectIdentifier `protobuf:"bytes,1,opt,name=param,proto3" json:"param,omitempty"` // delete object relations, both object and subject relations. WithRelations *bool `protobuf:"varint,2,opt,name=with_relations,json=withRelations,proto3,oneof" json:"with_relations,omitempty"` // contains filtered or unexported fields }
Deprecated: Marked as deprecated in aserto/directory/writer/v2/writer.proto.
func (*DeleteObjectRequest) Descriptor
deprecated
func (*DeleteObjectRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteObjectRequest.ProtoReflect.Descriptor instead.
func (*DeleteObjectRequest) GetParam ¶
func (x *DeleteObjectRequest) GetParam() *v2.ObjectIdentifier
func (*DeleteObjectRequest) GetWithRelations ¶ added in v0.21.2
func (x *DeleteObjectRequest) GetWithRelations() bool
func (*DeleteObjectRequest) ProtoMessage ¶
func (*DeleteObjectRequest) ProtoMessage()
func (*DeleteObjectRequest) ProtoReflect ¶
func (x *DeleteObjectRequest) ProtoReflect() protoreflect.Message
func (*DeleteObjectRequest) Reset ¶
func (x *DeleteObjectRequest) Reset()
func (*DeleteObjectRequest) String ¶
func (x *DeleteObjectRequest) String() string
type DeleteObjectResponse
deprecated
type DeleteObjectResponse struct { // empty result Result *emptypb.Empty `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` // contains filtered or unexported fields }
Deprecated: Marked as deprecated in aserto/directory/writer/v2/writer.proto.
func (*DeleteObjectResponse) Descriptor
deprecated
func (*DeleteObjectResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteObjectResponse.ProtoReflect.Descriptor instead.
func (*DeleteObjectResponse) GetResult ¶
func (x *DeleteObjectResponse) GetResult() *emptypb.Empty
func (*DeleteObjectResponse) ProtoMessage ¶
func (*DeleteObjectResponse) ProtoMessage()
func (*DeleteObjectResponse) ProtoReflect ¶
func (x *DeleteObjectResponse) ProtoReflect() protoreflect.Message
func (*DeleteObjectResponse) Reset ¶
func (x *DeleteObjectResponse) Reset()
func (*DeleteObjectResponse) String ¶
func (x *DeleteObjectResponse) String() string
type DeleteObjectTypeRequest
deprecated
type DeleteObjectTypeRequest struct { // object type identifier Param *v2.ObjectTypeIdentifier `protobuf:"bytes,1,opt,name=param,proto3" json:"param,omitempty"` // contains filtered or unexported fields }
Deprecated: Marked as deprecated in aserto/directory/writer/v2/writer.proto.
func (*DeleteObjectTypeRequest) Descriptor
deprecated
func (*DeleteObjectTypeRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteObjectTypeRequest.ProtoReflect.Descriptor instead.
func (*DeleteObjectTypeRequest) GetParam ¶
func (x *DeleteObjectTypeRequest) GetParam() *v2.ObjectTypeIdentifier
func (*DeleteObjectTypeRequest) ProtoMessage ¶
func (*DeleteObjectTypeRequest) ProtoMessage()
func (*DeleteObjectTypeRequest) ProtoReflect ¶
func (x *DeleteObjectTypeRequest) ProtoReflect() protoreflect.Message
func (*DeleteObjectTypeRequest) Reset ¶
func (x *DeleteObjectTypeRequest) Reset()
func (*DeleteObjectTypeRequest) String ¶
func (x *DeleteObjectTypeRequest) String() string
type DeleteObjectTypeResponse
deprecated
type DeleteObjectTypeResponse struct { // empty result Result *emptypb.Empty `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` // contains filtered or unexported fields }
Deprecated: Marked as deprecated in aserto/directory/writer/v2/writer.proto.
func (*DeleteObjectTypeResponse) Descriptor
deprecated
func (*DeleteObjectTypeResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteObjectTypeResponse.ProtoReflect.Descriptor instead.
func (*DeleteObjectTypeResponse) GetResult ¶
func (x *DeleteObjectTypeResponse) GetResult() *emptypb.Empty
func (*DeleteObjectTypeResponse) ProtoMessage ¶
func (*DeleteObjectTypeResponse) ProtoMessage()
func (*DeleteObjectTypeResponse) ProtoReflect ¶
func (x *DeleteObjectTypeResponse) ProtoReflect() protoreflect.Message
func (*DeleteObjectTypeResponse) Reset ¶
func (x *DeleteObjectTypeResponse) Reset()
func (*DeleteObjectTypeResponse) String ¶
func (x *DeleteObjectTypeResponse) String() string
type DeletePermissionRequest
deprecated
type DeletePermissionRequest struct { // permission identifier Param *v2.PermissionIdentifier `protobuf:"bytes,1,opt,name=param,proto3" json:"param,omitempty"` // contains filtered or unexported fields }
Deprecated: Marked as deprecated in aserto/directory/writer/v2/writer.proto.
func (*DeletePermissionRequest) Descriptor
deprecated
func (*DeletePermissionRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeletePermissionRequest.ProtoReflect.Descriptor instead.
func (*DeletePermissionRequest) GetParam ¶
func (x *DeletePermissionRequest) GetParam() *v2.PermissionIdentifier
func (*DeletePermissionRequest) ProtoMessage ¶
func (*DeletePermissionRequest) ProtoMessage()
func (*DeletePermissionRequest) ProtoReflect ¶
func (x *DeletePermissionRequest) ProtoReflect() protoreflect.Message
func (*DeletePermissionRequest) Reset ¶
func (x *DeletePermissionRequest) Reset()
func (*DeletePermissionRequest) String ¶
func (x *DeletePermissionRequest) String() string
type DeletePermissionResponse
deprecated
type DeletePermissionResponse struct { // empty result Result *emptypb.Empty `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` // contains filtered or unexported fields }
Deprecated: Marked as deprecated in aserto/directory/writer/v2/writer.proto.
func (*DeletePermissionResponse) Descriptor
deprecated
func (*DeletePermissionResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeletePermissionResponse.ProtoReflect.Descriptor instead.
func (*DeletePermissionResponse) GetResult ¶
func (x *DeletePermissionResponse) GetResult() *emptypb.Empty
func (*DeletePermissionResponse) ProtoMessage ¶
func (*DeletePermissionResponse) ProtoMessage()
func (*DeletePermissionResponse) ProtoReflect ¶
func (x *DeletePermissionResponse) ProtoReflect() protoreflect.Message
func (*DeletePermissionResponse) Reset ¶
func (x *DeletePermissionResponse) Reset()
func (*DeletePermissionResponse) String ¶
func (x *DeletePermissionResponse) String() string
type DeleteRelationRequest
deprecated
type DeleteRelationRequest struct { // relation identifier Param *v2.RelationIdentifier `protobuf:"bytes,1,opt,name=param,proto3" json:"param,omitempty"` // contains filtered or unexported fields }
Deprecated: Marked as deprecated in aserto/directory/writer/v2/writer.proto.
func (*DeleteRelationRequest) Descriptor
deprecated
func (*DeleteRelationRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRelationRequest.ProtoReflect.Descriptor instead.
func (*DeleteRelationRequest) GetParam ¶
func (x *DeleteRelationRequest) GetParam() *v2.RelationIdentifier
func (*DeleteRelationRequest) ProtoMessage ¶
func (*DeleteRelationRequest) ProtoMessage()
func (*DeleteRelationRequest) ProtoReflect ¶
func (x *DeleteRelationRequest) ProtoReflect() protoreflect.Message
func (*DeleteRelationRequest) Reset ¶
func (x *DeleteRelationRequest) Reset()
func (*DeleteRelationRequest) String ¶
func (x *DeleteRelationRequest) String() string
type DeleteRelationResponse
deprecated
type DeleteRelationResponse struct { // empty result Result *emptypb.Empty `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` // contains filtered or unexported fields }
Deprecated: Marked as deprecated in aserto/directory/writer/v2/writer.proto.
func (*DeleteRelationResponse) Descriptor
deprecated
func (*DeleteRelationResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRelationResponse.ProtoReflect.Descriptor instead.
func (*DeleteRelationResponse) GetResult ¶
func (x *DeleteRelationResponse) GetResult() *emptypb.Empty
func (*DeleteRelationResponse) ProtoMessage ¶
func (*DeleteRelationResponse) ProtoMessage()
func (*DeleteRelationResponse) ProtoReflect ¶
func (x *DeleteRelationResponse) ProtoReflect() protoreflect.Message
func (*DeleteRelationResponse) Reset ¶
func (x *DeleteRelationResponse) Reset()
func (*DeleteRelationResponse) String ¶
func (x *DeleteRelationResponse) String() string
type DeleteRelationTypeRequest
deprecated
type DeleteRelationTypeRequest struct { // relation type identifier Param *v2.RelationTypeIdentifier `protobuf:"bytes,1,opt,name=param,proto3" json:"param,omitempty"` // contains filtered or unexported fields }
Deprecated: Marked as deprecated in aserto/directory/writer/v2/writer.proto.
func (*DeleteRelationTypeRequest) Descriptor
deprecated
func (*DeleteRelationTypeRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRelationTypeRequest.ProtoReflect.Descriptor instead.
func (*DeleteRelationTypeRequest) GetParam ¶
func (x *DeleteRelationTypeRequest) GetParam() *v2.RelationTypeIdentifier
func (*DeleteRelationTypeRequest) ProtoMessage ¶
func (*DeleteRelationTypeRequest) ProtoMessage()
func (*DeleteRelationTypeRequest) ProtoReflect ¶
func (x *DeleteRelationTypeRequest) ProtoReflect() protoreflect.Message
func (*DeleteRelationTypeRequest) Reset ¶
func (x *DeleteRelationTypeRequest) Reset()
func (*DeleteRelationTypeRequest) String ¶
func (x *DeleteRelationTypeRequest) String() string
type DeleteRelationTypeResponse
deprecated
type DeleteRelationTypeResponse struct { // empty result Result *emptypb.Empty `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` // contains filtered or unexported fields }
Deprecated: Marked as deprecated in aserto/directory/writer/v2/writer.proto.
func (*DeleteRelationTypeResponse) Descriptor
deprecated
func (*DeleteRelationTypeResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRelationTypeResponse.ProtoReflect.Descriptor instead.
func (*DeleteRelationTypeResponse) GetResult ¶
func (x *DeleteRelationTypeResponse) GetResult() *emptypb.Empty
func (*DeleteRelationTypeResponse) ProtoMessage ¶
func (*DeleteRelationTypeResponse) ProtoMessage()
func (*DeleteRelationTypeResponse) ProtoReflect ¶
func (x *DeleteRelationTypeResponse) ProtoReflect() protoreflect.Message
func (*DeleteRelationTypeResponse) Reset ¶
func (x *DeleteRelationTypeResponse) Reset()
func (*DeleteRelationTypeResponse) String ¶
func (x *DeleteRelationTypeResponse) String() string
type SetObjectRequest
deprecated
type SetObjectRequest struct { // object instance Object *v2.Object `protobuf:"bytes,1,opt,name=object,proto3" json:"object,omitempty"` // contains filtered or unexported fields }
Deprecated: Marked as deprecated in aserto/directory/writer/v2/writer.proto.
func (*SetObjectRequest) Descriptor
deprecated
func (*SetObjectRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetObjectRequest.ProtoReflect.Descriptor instead.
func (*SetObjectRequest) GetObject ¶
func (x *SetObjectRequest) GetObject() *v2.Object
func (*SetObjectRequest) ProtoMessage ¶
func (*SetObjectRequest) ProtoMessage()
func (*SetObjectRequest) ProtoReflect ¶
func (x *SetObjectRequest) ProtoReflect() protoreflect.Message
func (*SetObjectRequest) Reset ¶
func (x *SetObjectRequest) Reset()
func (*SetObjectRequest) String ¶
func (x *SetObjectRequest) String() string
type SetObjectResponse
deprecated
type SetObjectResponse struct { // object instance Result *v2.Object `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` // contains filtered or unexported fields }
Deprecated: Marked as deprecated in aserto/directory/writer/v2/writer.proto.
func (*SetObjectResponse) Descriptor
deprecated
func (*SetObjectResponse) Descriptor() ([]byte, []int)
Deprecated: Use SetObjectResponse.ProtoReflect.Descriptor instead.
func (*SetObjectResponse) GetResult ¶
func (x *SetObjectResponse) GetResult() *v2.Object
func (*SetObjectResponse) ProtoMessage ¶
func (*SetObjectResponse) ProtoMessage()
func (*SetObjectResponse) ProtoReflect ¶
func (x *SetObjectResponse) ProtoReflect() protoreflect.Message
func (*SetObjectResponse) Reset ¶
func (x *SetObjectResponse) Reset()
func (*SetObjectResponse) String ¶
func (x *SetObjectResponse) String() string
type SetObjectTypeRequest
deprecated
type SetObjectTypeRequest struct { // object type instance ObjectType *v2.ObjectType `protobuf:"bytes,1,opt,name=object_type,json=objectType,proto3" json:"object_type,omitempty"` // contains filtered or unexported fields }
Deprecated: Marked as deprecated in aserto/directory/writer/v2/writer.proto.
func (*SetObjectTypeRequest) Descriptor
deprecated
func (*SetObjectTypeRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetObjectTypeRequest.ProtoReflect.Descriptor instead.
func (*SetObjectTypeRequest) GetObjectType ¶
func (x *SetObjectTypeRequest) GetObjectType() *v2.ObjectType
func (*SetObjectTypeRequest) ProtoMessage ¶
func (*SetObjectTypeRequest) ProtoMessage()
func (*SetObjectTypeRequest) ProtoReflect ¶
func (x *SetObjectTypeRequest) ProtoReflect() protoreflect.Message
func (*SetObjectTypeRequest) Reset ¶
func (x *SetObjectTypeRequest) Reset()
func (*SetObjectTypeRequest) String ¶
func (x *SetObjectTypeRequest) String() string
type SetObjectTypeResponse
deprecated
type SetObjectTypeResponse struct { // object type instance Result *v2.ObjectType `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` // contains filtered or unexported fields }
Deprecated: Marked as deprecated in aserto/directory/writer/v2/writer.proto.
func (*SetObjectTypeResponse) Descriptor
deprecated
func (*SetObjectTypeResponse) Descriptor() ([]byte, []int)
Deprecated: Use SetObjectTypeResponse.ProtoReflect.Descriptor instead.
func (*SetObjectTypeResponse) GetResult ¶
func (x *SetObjectTypeResponse) GetResult() *v2.ObjectType
func (*SetObjectTypeResponse) ProtoMessage ¶
func (*SetObjectTypeResponse) ProtoMessage()
func (*SetObjectTypeResponse) ProtoReflect ¶
func (x *SetObjectTypeResponse) ProtoReflect() protoreflect.Message
func (*SetObjectTypeResponse) Reset ¶
func (x *SetObjectTypeResponse) Reset()
func (*SetObjectTypeResponse) String ¶
func (x *SetObjectTypeResponse) String() string
type SetPermissionRequest
deprecated
type SetPermissionRequest struct { // permission instance Permission *v2.Permission `protobuf:"bytes,1,opt,name=permission,proto3" json:"permission,omitempty"` // contains filtered or unexported fields }
Deprecated: Marked as deprecated in aserto/directory/writer/v2/writer.proto.
func (*SetPermissionRequest) Descriptor
deprecated
func (*SetPermissionRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetPermissionRequest.ProtoReflect.Descriptor instead.
func (*SetPermissionRequest) GetPermission ¶
func (x *SetPermissionRequest) GetPermission() *v2.Permission
func (*SetPermissionRequest) ProtoMessage ¶
func (*SetPermissionRequest) ProtoMessage()
func (*SetPermissionRequest) ProtoReflect ¶
func (x *SetPermissionRequest) ProtoReflect() protoreflect.Message
func (*SetPermissionRequest) Reset ¶
func (x *SetPermissionRequest) Reset()
func (*SetPermissionRequest) String ¶
func (x *SetPermissionRequest) String() string
type SetPermissionResponse
deprecated
type SetPermissionResponse struct { // permission instance Result *v2.Permission `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` // contains filtered or unexported fields }
Deprecated: Marked as deprecated in aserto/directory/writer/v2/writer.proto.
func (*SetPermissionResponse) Descriptor
deprecated
func (*SetPermissionResponse) Descriptor() ([]byte, []int)
Deprecated: Use SetPermissionResponse.ProtoReflect.Descriptor instead.
func (*SetPermissionResponse) GetResult ¶
func (x *SetPermissionResponse) GetResult() *v2.Permission
func (*SetPermissionResponse) ProtoMessage ¶
func (*SetPermissionResponse) ProtoMessage()
func (*SetPermissionResponse) ProtoReflect ¶
func (x *SetPermissionResponse) ProtoReflect() protoreflect.Message
func (*SetPermissionResponse) Reset ¶
func (x *SetPermissionResponse) Reset()
func (*SetPermissionResponse) String ¶
func (x *SetPermissionResponse) String() string
type SetRelationRequest
deprecated
type SetRelationRequest struct { // relation instance Relation *v2.Relation `protobuf:"bytes,1,opt,name=relation,proto3" json:"relation,omitempty"` // contains filtered or unexported fields }
Deprecated: Marked as deprecated in aserto/directory/writer/v2/writer.proto.
func (*SetRelationRequest) Descriptor
deprecated
func (*SetRelationRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetRelationRequest.ProtoReflect.Descriptor instead.
func (*SetRelationRequest) GetRelation ¶
func (x *SetRelationRequest) GetRelation() *v2.Relation
func (*SetRelationRequest) ProtoMessage ¶
func (*SetRelationRequest) ProtoMessage()
func (*SetRelationRequest) ProtoReflect ¶
func (x *SetRelationRequest) ProtoReflect() protoreflect.Message
func (*SetRelationRequest) Reset ¶
func (x *SetRelationRequest) Reset()
func (*SetRelationRequest) String ¶
func (x *SetRelationRequest) String() string
type SetRelationResponse
deprecated
type SetRelationResponse struct { // relation instance Result *v2.Relation `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` // contains filtered or unexported fields }
Deprecated: Marked as deprecated in aserto/directory/writer/v2/writer.proto.
func (*SetRelationResponse) Descriptor
deprecated
func (*SetRelationResponse) Descriptor() ([]byte, []int)
Deprecated: Use SetRelationResponse.ProtoReflect.Descriptor instead.
func (*SetRelationResponse) GetResult ¶
func (x *SetRelationResponse) GetResult() *v2.Relation
func (*SetRelationResponse) ProtoMessage ¶
func (*SetRelationResponse) ProtoMessage()
func (*SetRelationResponse) ProtoReflect ¶
func (x *SetRelationResponse) ProtoReflect() protoreflect.Message
func (*SetRelationResponse) Reset ¶
func (x *SetRelationResponse) Reset()
func (*SetRelationResponse) String ¶
func (x *SetRelationResponse) String() string
type SetRelationTypeRequest
deprecated
type SetRelationTypeRequest struct { // relation type instance RelationType *v2.RelationType `protobuf:"bytes,1,opt,name=relation_type,json=relationType,proto3" json:"relation_type,omitempty"` // contains filtered or unexported fields }
Deprecated: Marked as deprecated in aserto/directory/writer/v2/writer.proto.
func (*SetRelationTypeRequest) Descriptor
deprecated
func (*SetRelationTypeRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetRelationTypeRequest.ProtoReflect.Descriptor instead.
func (*SetRelationTypeRequest) GetRelationType ¶
func (x *SetRelationTypeRequest) GetRelationType() *v2.RelationType
func (*SetRelationTypeRequest) ProtoMessage ¶
func (*SetRelationTypeRequest) ProtoMessage()
func (*SetRelationTypeRequest) ProtoReflect ¶
func (x *SetRelationTypeRequest) ProtoReflect() protoreflect.Message
func (*SetRelationTypeRequest) Reset ¶
func (x *SetRelationTypeRequest) Reset()
func (*SetRelationTypeRequest) String ¶
func (x *SetRelationTypeRequest) String() string
type SetRelationTypeResponse
deprecated
type SetRelationTypeResponse struct { // relation types instance Result *v2.RelationType `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` // contains filtered or unexported fields }
Deprecated: Marked as deprecated in aserto/directory/writer/v2/writer.proto.
func (*SetRelationTypeResponse) Descriptor
deprecated
func (*SetRelationTypeResponse) Descriptor() ([]byte, []int)
Deprecated: Use SetRelationTypeResponse.ProtoReflect.Descriptor instead.
func (*SetRelationTypeResponse) GetResult ¶
func (x *SetRelationTypeResponse) GetResult() *v2.RelationType
func (*SetRelationTypeResponse) ProtoMessage ¶
func (*SetRelationTypeResponse) ProtoMessage()
func (*SetRelationTypeResponse) ProtoReflect ¶
func (x *SetRelationTypeResponse) ProtoReflect() protoreflect.Message
func (*SetRelationTypeResponse) Reset ¶
func (x *SetRelationTypeResponse) Reset()
func (*SetRelationTypeResponse) String ¶
func (x *SetRelationTypeResponse) String() string
type UnimplementedWriterServer ¶
type UnimplementedWriterServer struct{}
UnimplementedWriterServer should be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedWriterServer) DeleteObject ¶
func (UnimplementedWriterServer) DeleteObject(context.Context, *DeleteObjectRequest) (*DeleteObjectResponse, error)
func (UnimplementedWriterServer) DeleteObjectType ¶
func (UnimplementedWriterServer) DeleteObjectType(context.Context, *DeleteObjectTypeRequest) (*DeleteObjectTypeResponse, error)
func (UnimplementedWriterServer) DeletePermission ¶
func (UnimplementedWriterServer) DeletePermission(context.Context, *DeletePermissionRequest) (*DeletePermissionResponse, error)
func (UnimplementedWriterServer) DeleteRelation ¶
func (UnimplementedWriterServer) DeleteRelation(context.Context, *DeleteRelationRequest) (*DeleteRelationResponse, error)
func (UnimplementedWriterServer) DeleteRelationType ¶
func (UnimplementedWriterServer) DeleteRelationType(context.Context, *DeleteRelationTypeRequest) (*DeleteRelationTypeResponse, error)
func (UnimplementedWriterServer) SetObject ¶
func (UnimplementedWriterServer) SetObject(context.Context, *SetObjectRequest) (*SetObjectResponse, error)
func (UnimplementedWriterServer) SetObjectType ¶
func (UnimplementedWriterServer) SetObjectType(context.Context, *SetObjectTypeRequest) (*SetObjectTypeResponse, error)
func (UnimplementedWriterServer) SetPermission ¶
func (UnimplementedWriterServer) SetPermission(context.Context, *SetPermissionRequest) (*SetPermissionResponse, error)
func (UnimplementedWriterServer) SetRelation ¶
func (UnimplementedWriterServer) SetRelation(context.Context, *SetRelationRequest) (*SetRelationResponse, error)
func (UnimplementedWriterServer) SetRelationType ¶
func (UnimplementedWriterServer) SetRelationType(context.Context, *SetRelationTypeRequest) (*SetRelationTypeResponse, error)
type UnsafeWriterServer ¶
type UnsafeWriterServer interface {
// contains filtered or unexported methods
}
UnsafeWriterServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to WriterServer will result in compilation errors.
type WriterClient ¶
type WriterClient interface { // Deprecated: Do not use. SetObjectType(ctx context.Context, in *SetObjectTypeRequest, opts ...grpc.CallOption) (*SetObjectTypeResponse, error) // Deprecated: Do not use. DeleteObjectType(ctx context.Context, in *DeleteObjectTypeRequest, opts ...grpc.CallOption) (*DeleteObjectTypeResponse, error) // Deprecated: Do not use. SetRelationType(ctx context.Context, in *SetRelationTypeRequest, opts ...grpc.CallOption) (*SetRelationTypeResponse, error) // Deprecated: Do not use. DeleteRelationType(ctx context.Context, in *DeleteRelationTypeRequest, opts ...grpc.CallOption) (*DeleteRelationTypeResponse, error) // Deprecated: Do not use. SetPermission(ctx context.Context, in *SetPermissionRequest, opts ...grpc.CallOption) (*SetPermissionResponse, error) // Deprecated: Do not use. DeletePermission(ctx context.Context, in *DeletePermissionRequest, opts ...grpc.CallOption) (*DeletePermissionResponse, error) // Deprecated: Do not use. // set object instance // Deprecated: directory.v2.SetObject is deprecated, use directory.v3.SetObject. SetObject(ctx context.Context, in *SetObjectRequest, opts ...grpc.CallOption) (*SetObjectResponse, error) // Deprecated: Do not use. // delete object instance // Deprecated: directory.v2.DeleteObject is deprecated, use directory.v3.DeleteObject. DeleteObject(ctx context.Context, in *DeleteObjectRequest, opts ...grpc.CallOption) (*DeleteObjectResponse, error) // Deprecated: Do not use. // set relation instance // Deprecated: directory.v2.SetRelation is deprecated, use directory.v3.SetRelation. SetRelation(ctx context.Context, in *SetRelationRequest, opts ...grpc.CallOption) (*SetRelationResponse, error) // Deprecated: Do not use. // delete relation instance // Deprecated: directory.v2.DeleteRelation is deprecated, use directory.v3.DeleteRelation. DeleteRelation(ctx context.Context, in *DeleteRelationRequest, opts ...grpc.CallOption) (*DeleteRelationResponse, error) }
WriterClient is the client API for Writer 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 NewWriterClient ¶
func NewWriterClient(cc grpc.ClientConnInterface) WriterClient
type WriterServer ¶
type WriterServer interface { // Deprecated: Do not use. SetObjectType(context.Context, *SetObjectTypeRequest) (*SetObjectTypeResponse, error) // Deprecated: Do not use. DeleteObjectType(context.Context, *DeleteObjectTypeRequest) (*DeleteObjectTypeResponse, error) // Deprecated: Do not use. SetRelationType(context.Context, *SetRelationTypeRequest) (*SetRelationTypeResponse, error) // Deprecated: Do not use. DeleteRelationType(context.Context, *DeleteRelationTypeRequest) (*DeleteRelationTypeResponse, error) // Deprecated: Do not use. SetPermission(context.Context, *SetPermissionRequest) (*SetPermissionResponse, error) // Deprecated: Do not use. DeletePermission(context.Context, *DeletePermissionRequest) (*DeletePermissionResponse, error) // Deprecated: Do not use. // set object instance // Deprecated: directory.v2.SetObject is deprecated, use directory.v3.SetObject. SetObject(context.Context, *SetObjectRequest) (*SetObjectResponse, error) // Deprecated: Do not use. // delete object instance // Deprecated: directory.v2.DeleteObject is deprecated, use directory.v3.DeleteObject. DeleteObject(context.Context, *DeleteObjectRequest) (*DeleteObjectResponse, error) // Deprecated: Do not use. // set relation instance // Deprecated: directory.v2.SetRelation is deprecated, use directory.v3.SetRelation. SetRelation(context.Context, *SetRelationRequest) (*SetRelationResponse, error) // Deprecated: Do not use. // delete relation instance // Deprecated: directory.v2.DeleteRelation is deprecated, use directory.v3.DeleteRelation. DeleteRelation(context.Context, *DeleteRelationRequest) (*DeleteRelationResponse, error) }
WriterServer is the server API for Writer service. All implementations should embed UnimplementedWriterServer for forward compatibility.