Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterImporterServer(s grpc.ServiceRegistrar, srv ImporterServer)
- type ImportCounter
- func (*ImportCounter) Descriptor() ([]byte, []int)deprecated
- func (x *ImportCounter) GetDelete() uint64
- func (x *ImportCounter) GetError() uint64
- func (x *ImportCounter) GetRecv() uint64
- func (x *ImportCounter) GetSet() uint64
- func (*ImportCounter) ProtoMessage()
- func (x *ImportCounter) ProtoReflect() protoreflect.Message
- func (x *ImportCounter) Reset()
- func (x *ImportCounter) String() string
- type ImportRequest
- func (*ImportRequest) Descriptor() ([]byte, []int)deprecated
- func (m *ImportRequest) GetMsg() isImportRequest_Msg
- func (x *ImportRequest) GetObject() *v2.Object
- func (x *ImportRequest) GetObjectType() *v2.ObjectType
- func (x *ImportRequest) GetOpCode() Opcode
- func (x *ImportRequest) GetPermission() *v2.Permission
- func (x *ImportRequest) GetRelation() *v2.Relation
- func (x *ImportRequest) GetRelationType() *v2.RelationType
- func (*ImportRequest) ProtoMessage()
- func (x *ImportRequest) ProtoReflect() protoreflect.Message
- func (x *ImportRequest) Reset()
- func (x *ImportRequest) String() string
- type ImportRequest_Object
- type ImportRequest_ObjectType
- type ImportRequest_Permission
- type ImportRequest_Relation
- type ImportRequest_RelationType
- type ImportResponse
- func (*ImportResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ImportResponse) GetObject() *ImportCounter
- func (x *ImportResponse) GetObjectType() *ImportCounter
- func (x *ImportResponse) GetPermission() *ImportCounter
- func (x *ImportResponse) GetRelation() *ImportCounter
- func (x *ImportResponse) GetRelationType() *ImportCounter
- func (*ImportResponse) ProtoMessage()
- func (x *ImportResponse) ProtoReflect() protoreflect.Message
- func (x *ImportResponse) Reset()
- func (x *ImportResponse) String() string
- type ImporterClient
- type ImporterServer
- type Importer_ImportClient
- type Importer_ImportServer
- type Opcode
- type UnimplementedImporterServer
- type UnsafeImporterServer
Constants ¶
const (
Importer_Import_FullMethodName = "/aserto.directory.importer.v2.Importer/Import"
)
Variables ¶
var ( Opcode_name = map[int32]string{ 0: "OPCODE_UNKNOWN", 1: "OPCODE_SET", 2: "OPCODE_DELETE", } Opcode_value = map[string]int32{ "OPCODE_UNKNOWN": 0, "OPCODE_SET": 1, "OPCODE_DELETE": 2, } )
Enum value maps for Opcode.
var File_aserto_directory_importer_v2_importer_proto protoreflect.FileDescriptor
var Importer_ServiceDesc = grpc.ServiceDesc{ ServiceName: "aserto.directory.importer.v2.Importer", HandlerType: (*ImporterServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "Import", Handler: _Importer_Import_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "aserto/directory/importer/v2/importer.proto", }
Importer_ServiceDesc is the grpc.ServiceDesc for Importer service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterImporterServer ¶
func RegisterImporterServer(s grpc.ServiceRegistrar, srv ImporterServer)
Types ¶
type ImportCounter ¶
type ImportCounter struct { // number of messages received Recv uint64 `protobuf:"varint,1,opt,name=recv,proto3" json:"recv,omitempty"` // number of messages with OPCODE_SET Set uint64 `protobuf:"varint,2,opt,name=set,proto3" json:"set,omitempty"` // number of messages with OPCODE_DELETE Delete uint64 `protobuf:"varint,3,opt,name=delete,proto3" json:"delete,omitempty"` // number of messages resulting in error Error uint64 `protobuf:"varint,4,opt,name=error,proto3" json:"error,omitempty"` // contains filtered or unexported fields }
func (*ImportCounter) Descriptor
deprecated
func (*ImportCounter) Descriptor() ([]byte, []int)
Deprecated: Use ImportCounter.ProtoReflect.Descriptor instead.
func (*ImportCounter) GetDelete ¶
func (x *ImportCounter) GetDelete() uint64
func (*ImportCounter) GetError ¶
func (x *ImportCounter) GetError() uint64
func (*ImportCounter) GetRecv ¶
func (x *ImportCounter) GetRecv() uint64
func (*ImportCounter) GetSet ¶
func (x *ImportCounter) GetSet() uint64
func (*ImportCounter) ProtoMessage ¶
func (*ImportCounter) ProtoMessage()
func (*ImportCounter) ProtoReflect ¶
func (x *ImportCounter) ProtoReflect() protoreflect.Message
func (*ImportCounter) Reset ¶
func (x *ImportCounter) Reset()
func (*ImportCounter) String ¶
func (x *ImportCounter) String() string
type ImportRequest ¶
type ImportRequest struct { // operation Opcode enum value OpCode Opcode `protobuf:"varint,1,opt,name=op_code,json=opCode,proto3,enum=aserto.directory.importer.v2.Opcode" json:"op_code,omitempty"` // Types that are assignable to Msg: // // *ImportRequest_ObjectType // *ImportRequest_Permission // *ImportRequest_RelationType // *ImportRequest_Object // *ImportRequest_Relation Msg isImportRequest_Msg `protobuf_oneof:"msg"` // contains filtered or unexported fields }
func (*ImportRequest) Descriptor
deprecated
func (*ImportRequest) Descriptor() ([]byte, []int)
Deprecated: Use ImportRequest.ProtoReflect.Descriptor instead.
func (*ImportRequest) GetMsg ¶
func (m *ImportRequest) GetMsg() isImportRequest_Msg
func (*ImportRequest) GetObject ¶
func (x *ImportRequest) GetObject() *v2.Object
func (*ImportRequest) GetObjectType ¶
func (x *ImportRequest) GetObjectType() *v2.ObjectType
func (*ImportRequest) GetOpCode ¶
func (x *ImportRequest) GetOpCode() Opcode
func (*ImportRequest) GetPermission ¶
func (x *ImportRequest) GetPermission() *v2.Permission
func (*ImportRequest) GetRelation ¶
func (x *ImportRequest) GetRelation() *v2.Relation
func (*ImportRequest) GetRelationType ¶
func (x *ImportRequest) GetRelationType() *v2.RelationType
func (*ImportRequest) ProtoMessage ¶
func (*ImportRequest) ProtoMessage()
func (*ImportRequest) ProtoReflect ¶
func (x *ImportRequest) ProtoReflect() protoreflect.Message
func (*ImportRequest) Reset ¶
func (x *ImportRequest) Reset()
func (*ImportRequest) String ¶
func (x *ImportRequest) String() string
type ImportRequest_Object ¶
type ImportRequest_ObjectType ¶
type ImportRequest_ObjectType struct { // object_type import message ObjectType *v2.ObjectType `protobuf:"bytes,2,opt,name=object_type,json=objectType,proto3,oneof"` }
type ImportRequest_Permission ¶
type ImportRequest_Permission struct { // permission import message Permission *v2.Permission `protobuf:"bytes,3,opt,name=permission,proto3,oneof"` }
type ImportRequest_Relation ¶
type ImportRequest_RelationType ¶
type ImportRequest_RelationType struct { // relation_type import message RelationType *v2.RelationType `protobuf:"bytes,4,opt,name=relation_type,json=relationType,proto3,oneof"` }
type ImportResponse ¶
type ImportResponse struct { // object_type import counter ObjectType *ImportCounter `protobuf:"bytes,1,opt,name=object_type,json=objectType,proto3" json:"object_type,omitempty"` // object_type import counter Permission *ImportCounter `protobuf:"bytes,2,opt,name=permission,proto3" json:"permission,omitempty"` // object_type import counter RelationType *ImportCounter `protobuf:"bytes,3,opt,name=relation_type,json=relationType,proto3" json:"relation_type,omitempty"` // object import counter Object *ImportCounter `protobuf:"bytes,4,opt,name=object,proto3" json:"object,omitempty"` // object_type import counter Relation *ImportCounter `protobuf:"bytes,5,opt,name=relation,proto3" json:"relation,omitempty"` // contains filtered or unexported fields }
func (*ImportResponse) Descriptor
deprecated
func (*ImportResponse) Descriptor() ([]byte, []int)
Deprecated: Use ImportResponse.ProtoReflect.Descriptor instead.
func (*ImportResponse) GetObject ¶
func (x *ImportResponse) GetObject() *ImportCounter
func (*ImportResponse) GetObjectType ¶
func (x *ImportResponse) GetObjectType() *ImportCounter
func (*ImportResponse) GetPermission ¶
func (x *ImportResponse) GetPermission() *ImportCounter
func (*ImportResponse) GetRelation ¶
func (x *ImportResponse) GetRelation() *ImportCounter
func (*ImportResponse) GetRelationType ¶
func (x *ImportResponse) GetRelationType() *ImportCounter
func (*ImportResponse) ProtoMessage ¶
func (*ImportResponse) ProtoMessage()
func (*ImportResponse) ProtoReflect ¶
func (x *ImportResponse) ProtoReflect() protoreflect.Message
func (*ImportResponse) Reset ¶
func (x *ImportResponse) Reset()
func (*ImportResponse) String ¶
func (x *ImportResponse) String() string
type ImporterClient ¶
type ImporterClient interface {
Import(ctx context.Context, opts ...grpc.CallOption) (Importer_ImportClient, error)
}
ImporterClient is the client API for Importer 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 NewImporterClient ¶
func NewImporterClient(cc grpc.ClientConnInterface) ImporterClient
type ImporterServer ¶
type ImporterServer interface {
Import(Importer_ImportServer) error
}
ImporterServer is the server API for Importer service. All implementations should embed UnimplementedImporterServer for forward compatibility
type Importer_ImportClient ¶
type Importer_ImportClient interface { Send(*ImportRequest) error Recv() (*ImportResponse, error) grpc.ClientStream }
type Importer_ImportServer ¶
type Importer_ImportServer interface { Send(*ImportResponse) error Recv() (*ImportRequest, error) grpc.ServerStream }
type Opcode ¶
type Opcode int32
func (Opcode) Descriptor ¶
func (Opcode) Descriptor() protoreflect.EnumDescriptor
func (Opcode) EnumDescriptor
deprecated
func (Opcode) Number ¶
func (x Opcode) Number() protoreflect.EnumNumber
func (Opcode) Type ¶
func (Opcode) Type() protoreflect.EnumType
type UnimplementedImporterServer ¶
type UnimplementedImporterServer struct { }
UnimplementedImporterServer should be embedded to have forward compatible implementations.
func (UnimplementedImporterServer) Import ¶
func (UnimplementedImporterServer) Import(Importer_ImportServer) error
type UnsafeImporterServer ¶
type UnsafeImporterServer interface {
// contains filtered or unexported methods
}
UnsafeImporterServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ImporterServer will result in compilation errors.