Documentation ¶
Overview ¶
Package writer is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- 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 DeleteObjectRequest
- func (*DeleteObjectRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteObjectRequest) GetParam() *v2.ObjectIdentifier
- func (*DeleteObjectRequest) ProtoMessage()
- func (x *DeleteObjectRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteObjectRequest) Reset()
- func (x *DeleteObjectRequest) String() string
- type DeleteObjectResponse
- 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 DeleteObjectTypeRequest
- 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 DeleteObjectTypeResponse
- 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 DeletePermissionRequest
- 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 DeletePermissionResponse
- 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 DeleteRelationRequest
- 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 DeleteRelationResponse
- 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 DeleteRelationTypeRequest
- 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 DeleteRelationTypeResponse
- 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 SetObjectRequest
- type SetObjectResponse
- 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 SetObjectTypeRequest
- 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 SetObjectTypeResponse
- 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 SetPermissionRequest
- 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 SetPermissionResponse
- 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 SetRelationRequest
- 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 SetRelationResponse
- 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 SetRelationTypeRequest
- 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 SetRelationTypeResponse
- 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 ¶
This section is empty.
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.
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.
func RegisterWriterServer ¶
func RegisterWriterServer(s grpc.ServiceRegistrar, srv WriterServer)
Types ¶
type DeleteObjectRequest ¶
type DeleteObjectRequest struct { Param *v2.ObjectIdentifier `protobuf:"bytes,1,opt,name=param,proto3" json:"param,omitempty"` // // contains filtered or unexported fields }
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) 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 ¶
type DeleteObjectResponse struct { Result *emptypb.Empty `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` // empty result // contains filtered or unexported fields }
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 ¶
type DeleteObjectTypeRequest struct { Param *v2.ObjectTypeIdentifier `protobuf:"bytes,1,opt,name=param,proto3" json:"param,omitempty"` // // contains filtered or unexported fields }
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 ¶
type DeleteObjectTypeResponse struct { Result *emptypb.Empty `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` // empty result // contains filtered or unexported fields }
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 ¶
type DeletePermissionRequest struct { Param *v2.PermissionIdentifier `protobuf:"bytes,1,opt,name=param,proto3" json:"param,omitempty"` // // contains filtered or unexported fields }
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 ¶
type DeletePermissionResponse struct { Result *emptypb.Empty `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` // empty result // contains filtered or unexported fields }
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 ¶
type DeleteRelationRequest struct { Param *v2.RelationIdentifier `protobuf:"bytes,1,opt,name=param,proto3" json:"param,omitempty"` // // contains filtered or unexported fields }
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 ¶
type DeleteRelationResponse struct { Result *emptypb.Empty `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` // empty result // contains filtered or unexported fields }
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 ¶
type DeleteRelationTypeRequest struct { Param *v2.RelationTypeIdentifier `protobuf:"bytes,1,opt,name=param,proto3" json:"param,omitempty"` // // contains filtered or unexported fields }
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 ¶
type DeleteRelationTypeResponse struct { Result *emptypb.Empty `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` // empty result // contains filtered or unexported fields }
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 ¶
type SetObjectRequest struct { Object *v2.Object `protobuf:"bytes,1,opt,name=object,proto3" json:"object,omitempty"` // // contains filtered or unexported fields }
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 ¶
type SetObjectResponse struct { Result *v2.Object `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` // object instance // contains filtered or unexported fields }
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 ¶
type SetObjectTypeRequest struct { ObjectType *v2.ObjectType `protobuf:"bytes,1,opt,name=object_type,json=objectType,proto3" json:"object_type,omitempty"` // // contains filtered or unexported fields }
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 ¶
type SetObjectTypeResponse struct { Result *v2.ObjectType `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` // object type instance // contains filtered or unexported fields }
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 ¶
type SetPermissionRequest struct { Permission *v2.Permission `protobuf:"bytes,1,opt,name=permission,proto3" json:"permission,omitempty"` // // contains filtered or unexported fields }
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 ¶
type SetPermissionResponse struct { Result *v2.Permission `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` // permission instance // contains filtered or unexported fields }
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 ¶
type SetRelationRequest struct { Relation *v2.Relation `protobuf:"bytes,1,opt,name=relation,proto3" json:"relation,omitempty"` // // contains filtered or unexported fields }
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 ¶
type SetRelationResponse struct { Result *v2.Relation `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` // relation instance // contains filtered or unexported fields }
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 ¶
type SetRelationTypeRequest struct { RelationType *v2.RelationType `protobuf:"bytes,1,opt,name=relation_type,json=relationType,proto3" json:"relation_type,omitempty"` // // contains filtered or unexported fields }
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 ¶
type SetRelationTypeResponse struct { Result *v2.RelationType `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` // relation types instance // contains filtered or unexported fields }
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.
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 { // object type metadata methods SetObjectType(ctx context.Context, in *SetObjectTypeRequest, opts ...grpc.CallOption) (*SetObjectTypeResponse, error) DeleteObjectType(ctx context.Context, in *DeleteObjectTypeRequest, opts ...grpc.CallOption) (*DeleteObjectTypeResponse, error) // relation type metadata methods SetRelationType(ctx context.Context, in *SetRelationTypeRequest, opts ...grpc.CallOption) (*SetRelationTypeResponse, error) DeleteRelationType(ctx context.Context, in *DeleteRelationTypeRequest, opts ...grpc.CallOption) (*DeleteRelationTypeResponse, error) // permission metadata methods SetPermission(ctx context.Context, in *SetPermissionRequest, opts ...grpc.CallOption) (*SetPermissionResponse, error) DeletePermission(ctx context.Context, in *DeletePermissionRequest, opts ...grpc.CallOption) (*DeletePermissionResponse, error) // object methods SetObject(ctx context.Context, in *SetObjectRequest, opts ...grpc.CallOption) (*SetObjectResponse, error) DeleteObject(ctx context.Context, in *DeleteObjectRequest, opts ...grpc.CallOption) (*DeleteObjectResponse, error) // relation methods SetRelation(ctx context.Context, in *SetRelationRequest, opts ...grpc.CallOption) (*SetRelationResponse, error) 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 { // object type metadata methods SetObjectType(context.Context, *SetObjectTypeRequest) (*SetObjectTypeResponse, error) DeleteObjectType(context.Context, *DeleteObjectTypeRequest) (*DeleteObjectTypeResponse, error) // relation type metadata methods SetRelationType(context.Context, *SetRelationTypeRequest) (*SetRelationTypeResponse, error) DeleteRelationType(context.Context, *DeleteRelationTypeRequest) (*DeleteRelationTypeResponse, error) // permission metadata methods SetPermission(context.Context, *SetPermissionRequest) (*SetPermissionResponse, error) DeletePermission(context.Context, *DeletePermissionRequest) (*DeletePermissionResponse, error) // object methods SetObject(context.Context, *SetObjectRequest) (*SetObjectResponse, error) DeleteObject(context.Context, *DeleteObjectRequest) (*DeleteObjectResponse, error) // relation methods SetRelation(context.Context, *SetRelationRequest) (*SetRelationResponse, error) DeleteRelation(context.Context, *DeleteRelationRequest) (*DeleteRelationResponse, error) }
WriterServer is the server API for Writer service. All implementations should embed UnimplementedWriterServer for forward compatibility