writer

package
v0.21.7 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
var File_aserto_directory_writer_v2_writer_proto protoreflect.FileDescriptor
View Source
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 RegisterWriterServer

func RegisterWriterServer(s grpc.ServiceRegistrar, srv WriterServer)

Types

type DeleteObjectRequest

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
}

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

type DeleteObjectResponse struct {

	// empty result
	Result *emptypb.Empty `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
	// 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 {

	// object type identifier
	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 (*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 {

	// empty result
	Result *emptypb.Empty `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
	// 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 {

	// permission identifier
	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 (*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 {

	// empty result
	Result *emptypb.Empty `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
	// 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 {

	// relation identifier
	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 (*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 {

	// empty result
	Result *emptypb.Empty `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
	// 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 {

	// relation type identifier
	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 (*DeleteRelationTypeRequest) ProtoMessage

func (*DeleteRelationTypeRequest) ProtoMessage()

func (*DeleteRelationTypeRequest) ProtoReflect

func (*DeleteRelationTypeRequest) Reset

func (x *DeleteRelationTypeRequest) Reset()

func (*DeleteRelationTypeRequest) String

func (x *DeleteRelationTypeRequest) String() string

type DeleteRelationTypeResponse

type DeleteRelationTypeResponse struct {

	// empty result
	Result *emptypb.Empty `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
	// 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 (*DeleteRelationTypeResponse) Reset

func (x *DeleteRelationTypeResponse) Reset()

func (*DeleteRelationTypeResponse) String

func (x *DeleteRelationTypeResponse) String() string

type SetObjectRequest

type SetObjectRequest struct {

	// object instance
	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 {

	// object instance
	Result *v2.Object `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
	// 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 {

	// 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
}

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 {

	// object type instance
	Result *v2.ObjectType `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
	// 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 instance
	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 {

	// permission instance
	Result *v2.Permission `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
	// 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 instance
	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 {

	// relation instance
	Result *v2.Relation `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
	// 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 {

	// 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
}

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 {

	// relation types instance
	Result *v2.RelationType `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
	// 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) DeleteObjectType

func (UnimplementedWriterServer) DeletePermission

func (UnimplementedWriterServer) DeleteRelation

func (UnimplementedWriterServer) SetObject

func (UnimplementedWriterServer) SetObjectType

func (UnimplementedWriterServer) SetPermission

func (UnimplementedWriterServer) SetRelation

func (UnimplementedWriterServer) SetRelationType

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

Jump to

Keyboard shortcuts

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