Documentation
¶
Index ¶
- Variables
- func RegisterDMSDumpServiceServer(s *grpc.Server, srv DMSDumpServiceServer)
- func RegisterIdentityServiceServer(s *grpc.Server, srv IdentityServiceServer)
- func RegisterLookupServiceServer(s *grpc.Server, srv LookupServiceServer)
- func RegisterProxyServiceServer(s *grpc.Server, srv ProxyServiceServer)
- type AddressRegistrationRequest
- func (*AddressRegistrationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddressRegistrationRequest) GetAddress() string
- func (x *AddressRegistrationRequest) GetKey() []byte
- func (x *AddressRegistrationRequest) GetName() string
- func (x *AddressRegistrationRequest) GetProtocol() Protocol
- func (*AddressRegistrationRequest) ProtoMessage()
- func (x *AddressRegistrationRequest) ProtoReflect() protoreflect.Message
- func (x *AddressRegistrationRequest) Reset()
- func (x *AddressRegistrationRequest) String() string
- type ContentWithPOW
- func (*ContentWithPOW) Descriptor() ([]byte, []int)deprecated
- func (x *ContentWithPOW) GetContent() []byte
- func (x *ContentWithPOW) GetPow() []byte
- func (*ContentWithPOW) ProtoMessage()
- func (x *ContentWithPOW) ProtoReflect() protoreflect.Message
- func (x *ContentWithPOW) Reset()
- func (x *ContentWithPOW) String() string
- type DMSDumpServiceClient
- type DMSDumpServiceServer
- type DMSMessage
- func (*DMSMessage) Descriptor() ([]byte, []int)deprecated
- func (x *DMSMessage) GetContent() []byte
- func (x *DMSMessage) GetReceiver() string
- func (x *DMSMessage) GetSender() string
- func (x *DMSMessage) GetSignature() *Signature
- func (*DMSMessage) ProtoMessage()
- func (x *DMSMessage) ProtoReflect() protoreflect.Message
- func (x *DMSMessage) Reset()
- func (x *DMSMessage) String() string
- type IdentityServiceClient
- type IdentityServiceServer
- type KeyDisableRequest
- type KeyRecord
- func (*KeyRecord) Descriptor() ([]byte, []int)deprecated
- func (x *KeyRecord) GetDisabled() bool
- func (x *KeyRecord) GetDisabledBy() []byte
- func (x *KeyRecord) GetDisabledTimestamp() int64
- func (x *KeyRecord) GetParentKey() [][]byte
- func (x *KeyRecord) GetRegistrationTimestamp() int64
- func (*KeyRecord) ProtoMessage()
- func (x *KeyRecord) ProtoReflect() protoreflect.Message
- func (x *KeyRecord) Reset()
- func (x *KeyRecord) String() string
- type KeyRegistrationRequest
- func (*KeyRegistrationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *KeyRegistrationRequest) GetKey() []byte
- func (*KeyRegistrationRequest) ProtoMessage()
- func (x *KeyRegistrationRequest) ProtoReflect() protoreflect.Message
- func (x *KeyRegistrationRequest) Reset()
- func (x *KeyRegistrationRequest) String() string
- type KeyRelationship
- func (KeyRelationship) Descriptor() protoreflect.EnumDescriptor
- func (x KeyRelationship) Enum() *KeyRelationship
- func (KeyRelationship) EnumDescriptor() ([]byte, []int)deprecated
- func (x KeyRelationship) Number() protoreflect.EnumNumber
- func (x KeyRelationship) String() string
- func (KeyRelationship) Type() protoreflect.EnumType
- type KeyRelationshipRegistrationRequest
- func (*KeyRelationshipRegistrationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *KeyRelationshipRegistrationRequest) GetRelationship() KeyRelationship
- func (x *KeyRelationshipRegistrationRequest) GetTargetKey() []byte
- func (*KeyRelationshipRegistrationRequest) ProtoMessage()
- func (x *KeyRelationshipRegistrationRequest) ProtoReflect() protoreflect.Message
- func (x *KeyRelationshipRegistrationRequest) Reset()
- func (x *KeyRelationshipRegistrationRequest) String() string
- type LookupAddressRequest
- func (*LookupAddressRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LookupAddressRequest) GetName() string
- func (x *LookupAddressRequest) GetProtocol() Protocol
- func (*LookupAddressRequest) ProtoMessage()
- func (x *LookupAddressRequest) ProtoReflect() protoreflect.Message
- func (x *LookupAddressRequest) Reset()
- func (x *LookupAddressRequest) String() string
- type LookupAddressResponse
- func (*LookupAddressResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LookupAddressResponse) GetAddress() string
- func (x *LookupAddressResponse) GetMessage() string
- func (x *LookupAddressResponse) GetResult() *Result
- func (*LookupAddressResponse) ProtoMessage()
- func (x *LookupAddressResponse) ProtoReflect() protoreflect.Message
- func (x *LookupAddressResponse) Reset()
- func (x *LookupAddressResponse) String() string
- type LookupKeyRequest
- type LookupKeyResponse
- func (*LookupKeyResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LookupKeyResponse) GetDisabled() bool
- func (x *LookupKeyResponse) GetDisabledBy() []byte
- func (x *LookupKeyResponse) GetDisabledTimestamp() int64
- func (x *LookupKeyResponse) GetParentKey() [][]byte
- func (x *LookupKeyResponse) GetRegistrationTimestamp() int64
- func (x *LookupKeyResponse) GetResult() *Result
- func (*LookupKeyResponse) ProtoMessage()
- func (x *LookupKeyResponse) ProtoReflect() protoreflect.Message
- func (x *LookupKeyResponse) Reset()
- func (x *LookupKeyResponse) String() string
- type LookupNameRequest
- type LookupNameResponse
- func (*LookupNameResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LookupNameResponse) GetKey() []byte
- func (x *LookupNameResponse) GetMessage() string
- func (x *LookupNameResponse) GetResult() *Result
- func (*LookupNameResponse) ProtoMessage()
- func (x *LookupNameResponse) ProtoReflect() protoreflect.Message
- func (x *LookupNameResponse) Reset()
- func (x *LookupNameResponse) String() string
- type LookupServiceClient
- type LookupServiceServer
- type NameRegistrationRequest
- func (*NameRegistrationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *NameRegistrationRequest) GetKey() []byte
- func (x *NameRegistrationRequest) GetName() string
- func (*NameRegistrationRequest) ProtoMessage()
- func (x *NameRegistrationRequest) ProtoReflect() protoreflect.Message
- func (x *NameRegistrationRequest) Reset()
- func (x *NameRegistrationRequest) String() string
- type Protocol
- type ProxyServiceClient
- type ProxyServiceServer
- type Result
- type ResultCode
- type ResultWithContent
- func (*ResultWithContent) Descriptor() ([]byte, []int)deprecated
- func (x *ResultWithContent) GetContent() []byte
- func (x *ResultWithContent) GetResult() *Result
- func (*ResultWithContent) ProtoMessage()
- func (x *ResultWithContent) ProtoReflect() protoreflect.Message
- func (x *ResultWithContent) Reset()
- func (x *ResultWithContent) String() string
- type Signature
- type Signed
- func (*Signed) Descriptor() ([]byte, []int)deprecated
- func (x *Signed) GetContent() []byte
- func (x *Signed) GetKey() []byte
- func (x *Signed) GetSignature() *Signature
- func (*Signed) ProtoMessage()
- func (x *Signed) ProtoReflect() protoreflect.Message
- func (x *Signed) Reset()
- func (x *Signed) String() string
- type SignedWithPow
- func (*SignedWithPow) Descriptor() ([]byte, []int)deprecated
- func (x *SignedWithPow) GetContent() []byte
- func (x *SignedWithPow) GetKey() []byte
- func (x *SignedWithPow) GetPow() []byte
- func (x *SignedWithPow) GetSignature() *Signature
- func (*SignedWithPow) ProtoMessage()
- func (x *SignedWithPow) ProtoReflect() protoreflect.Message
- func (x *SignedWithPow) Reset()
- func (x *SignedWithPow) String() string
- type StoreEncryptedKeyRequest
- func (*StoreEncryptedKeyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *StoreEncryptedKeyRequest) GetEncryptedPrivateKey() []byte
- func (x *StoreEncryptedKeyRequest) GetName() string
- func (*StoreEncryptedKeyRequest) ProtoMessage()
- func (x *StoreEncryptedKeyRequest) ProtoReflect() protoreflect.Message
- func (x *StoreEncryptedKeyRequest) Reset()
- func (x *StoreEncryptedKeyRequest) String() string
- type UnimplementedDMSDumpServiceServer
- type UnimplementedIdentityServiceServer
- func (*UnimplementedIdentityServiceServer) DisableKey(context.Context, *SignedWithPow) (*Result, error)
- func (*UnimplementedIdentityServiceServer) RegisterAddress(context.Context, *SignedWithPow) (*Result, error)
- func (*UnimplementedIdentityServiceServer) RegisterKey(context.Context, *SignedWithPow) (*Result, error)
- func (*UnimplementedIdentityServiceServer) RegisterKeyRelationship(context.Context, *SignedWithPow) (*Result, error)
- func (*UnimplementedIdentityServiceServer) RegisterName(context.Context, *SignedWithPow) (*Result, error)
- type UnimplementedLookupServiceServer
- func (*UnimplementedLookupServiceServer) LookupAddress(context.Context, *LookupAddressRequest) (*LookupAddressResponse, error)
- func (*UnimplementedLookupServiceServer) LookupKey(context.Context, *LookupKeyRequest) (*LookupKeyResponse, error)
- func (*UnimplementedLookupServiceServer) LookupName(context.Context, *LookupNameRequest) (*LookupNameResponse, error)
- type UnimplementedProxyServiceServer
Constants ¶
This section is empty.
Variables ¶
var ( ResultCode_name = map[int32]string{ 0: "RC_OK", 1: "RC_INVALID_REQUEST", 2: "RC_INVALID_KEY", 3: "RC_RECORD_EXISTS", 4: "RC_RECORD_NOT_FOUND", 5: "RC_INSUFFICIENT_POW", 6: "RC_UNAUTHORIZED", 100: "RC_INTERNAL_ERROR", } ResultCode_value = map[string]int32{ "RC_OK": 0, "RC_INVALID_REQUEST": 1, "RC_INVALID_KEY": 2, "RC_RECORD_EXISTS": 3, "RC_RECORD_NOT_FOUND": 4, "RC_INSUFFICIENT_POW": 5, "RC_UNAUTHORIZED": 6, "RC_INTERNAL_ERROR": 100, } )
Enum value maps for ResultCode.
var ( Protocol_name = map[int32]string{ 0: "PL_UNKNOWN", 1: "PL_DMS", } Protocol_value = map[string]int32{ "PL_UNKNOWN": 0, "PL_DMS": 1, } )
Enum value maps for Protocol.
var ( KeyRelationship_name = map[int32]string{ 0: "KR_NONE", 1: "KR_PARENT", } KeyRelationship_value = map[string]int32{ "KR_NONE": 0, "KR_PARENT": 1, } )
Enum value maps for KeyRelationship.
var File_ubikom_internal_proto protoreflect.FileDescriptor
var File_ubikom_proto protoreflect.FileDescriptor
Functions ¶
func RegisterDMSDumpServiceServer ¶
func RegisterDMSDumpServiceServer(s *grpc.Server, srv DMSDumpServiceServer)
func RegisterIdentityServiceServer ¶
func RegisterIdentityServiceServer(s *grpc.Server, srv IdentityServiceServer)
func RegisterLookupServiceServer ¶
func RegisterLookupServiceServer(s *grpc.Server, srv LookupServiceServer)
func RegisterProxyServiceServer ¶
func RegisterProxyServiceServer(s *grpc.Server, srv ProxyServiceServer)
Types ¶
type AddressRegistrationRequest ¶
type AddressRegistrationRequest struct {
Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Protocol Protocol `protobuf:"varint,3,opt,name=protocol,proto3,enum=Ubikom.Protocol" json:"protocol,omitempty"`
Address string `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"`
// contains filtered or unexported fields
}
func (*AddressRegistrationRequest) Descriptor
deprecated
func (*AddressRegistrationRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddressRegistrationRequest.ProtoReflect.Descriptor instead.
func (*AddressRegistrationRequest) GetAddress ¶
func (x *AddressRegistrationRequest) GetAddress() string
func (*AddressRegistrationRequest) GetKey ¶
func (x *AddressRegistrationRequest) GetKey() []byte
func (*AddressRegistrationRequest) GetName ¶
func (x *AddressRegistrationRequest) GetName() string
func (*AddressRegistrationRequest) GetProtocol ¶
func (x *AddressRegistrationRequest) GetProtocol() Protocol
func (*AddressRegistrationRequest) ProtoMessage ¶
func (*AddressRegistrationRequest) ProtoMessage()
func (*AddressRegistrationRequest) ProtoReflect ¶
func (x *AddressRegistrationRequest) ProtoReflect() protoreflect.Message
func (*AddressRegistrationRequest) Reset ¶
func (x *AddressRegistrationRequest) Reset()
func (*AddressRegistrationRequest) String ¶
func (x *AddressRegistrationRequest) String() string
type ContentWithPOW ¶
type ContentWithPOW struct {
Content []byte `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
Pow []byte `protobuf:"bytes,2,opt,name=pow,proto3" json:"pow,omitempty"`
// contains filtered or unexported fields
}
func (*ContentWithPOW) Descriptor
deprecated
func (*ContentWithPOW) Descriptor() ([]byte, []int)
Deprecated: Use ContentWithPOW.ProtoReflect.Descriptor instead.
func (*ContentWithPOW) GetContent ¶
func (x *ContentWithPOW) GetContent() []byte
func (*ContentWithPOW) GetPow ¶
func (x *ContentWithPOW) GetPow() []byte
func (*ContentWithPOW) ProtoMessage ¶
func (*ContentWithPOW) ProtoMessage()
func (*ContentWithPOW) ProtoReflect ¶
func (x *ContentWithPOW) ProtoReflect() protoreflect.Message
func (*ContentWithPOW) Reset ¶
func (x *ContentWithPOW) Reset()
func (*ContentWithPOW) String ¶
func (x *ContentWithPOW) String() string
type DMSDumpServiceClient ¶
type DMSDumpServiceClient interface {
Send(ctx context.Context, in *DMSMessage, opts ...grpc.CallOption) (*Result, error)
Receive(ctx context.Context, in *Signed, opts ...grpc.CallOption) (*ResultWithContent, error)
}
DMSDumpServiceClient is the client API for DMSDumpService 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 NewDMSDumpServiceClient ¶
func NewDMSDumpServiceClient(cc grpc.ClientConnInterface) DMSDumpServiceClient
type DMSDumpServiceServer ¶
type DMSDumpServiceServer interface {
Send(context.Context, *DMSMessage) (*Result, error)
Receive(context.Context, *Signed) (*ResultWithContent, error)
// contains filtered or unexported methods
}
DMSDumpServiceServer is the server API for DMSDumpService service. All implementations must embed UnimplementedDMSDumpServiceServer for forward compatibility
type DMSMessage ¶
type DMSMessage struct {
// Sender's address.
Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
// Receiver's address.
Receiver string `protobuf:"bytes,2,opt,name=receiver,proto3" json:"receiver,omitempty"`
Content []byte `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"`
Signature *Signature `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"`
// contains filtered or unexported fields
}
func (*DMSMessage) Descriptor
deprecated
func (*DMSMessage) Descriptor() ([]byte, []int)
Deprecated: Use DMSMessage.ProtoReflect.Descriptor instead.
func (*DMSMessage) GetContent ¶
func (x *DMSMessage) GetContent() []byte
func (*DMSMessage) GetReceiver ¶
func (x *DMSMessage) GetReceiver() string
func (*DMSMessage) GetSender ¶
func (x *DMSMessage) GetSender() string
func (*DMSMessage) GetSignature ¶
func (x *DMSMessage) GetSignature() *Signature
func (*DMSMessage) ProtoMessage ¶
func (*DMSMessage) ProtoMessage()
func (*DMSMessage) ProtoReflect ¶
func (x *DMSMessage) ProtoReflect() protoreflect.Message
func (*DMSMessage) Reset ¶
func (x *DMSMessage) Reset()
func (*DMSMessage) String ¶
func (x *DMSMessage) String() string
type IdentityServiceClient ¶
type IdentityServiceClient interface {
// Register public key. Each public key can be registered only once.
// The key must be registered before it's associated with the name.
// Content is public key.
RegisterKey(ctx context.Context, in *SignedWithPow, opts ...grpc.CallOption) (*Result, error)
RegisterKeyRelationship(ctx context.Context, in *SignedWithPow, opts ...grpc.CallOption) (*Result, error)
// Once a key is disabled, it is dead forever. This happens
// if a key is compromised, or the owner has decided to kill
// it for another reason. Use with caution.
DisableKey(ctx context.Context, in *SignedWithPow, opts ...grpc.CallOption) (*Result, error)
// Links name and the public key.
// Content is NameRegistrationRequest.
RegisterName(ctx context.Context, in *SignedWithPow, opts ...grpc.CallOption) (*Result, error)
// Associate name and protocol with an address.
// Content is AddressRegistrationRequest.
RegisterAddress(ctx context.Context, in *SignedWithPow, opts ...grpc.CallOption) (*Result, error)
}
IdentityServiceClient is the client API for IdentityService 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 NewIdentityServiceClient ¶
func NewIdentityServiceClient(cc grpc.ClientConnInterface) IdentityServiceClient
type IdentityServiceServer ¶
type IdentityServiceServer interface {
// Register public key. Each public key can be registered only once.
// The key must be registered before it's associated with the name.
// Content is public key.
RegisterKey(context.Context, *SignedWithPow) (*Result, error)
RegisterKeyRelationship(context.Context, *SignedWithPow) (*Result, error)
// Once a key is disabled, it is dead forever. This happens
// if a key is compromised, or the owner has decided to kill
// it for another reason. Use with caution.
DisableKey(context.Context, *SignedWithPow) (*Result, error)
// Links name and the public key.
// Content is NameRegistrationRequest.
RegisterName(context.Context, *SignedWithPow) (*Result, error)
// Associate name and protocol with an address.
// Content is AddressRegistrationRequest.
RegisterAddress(context.Context, *SignedWithPow) (*Result, error)
// contains filtered or unexported methods
}
IdentityServiceServer is the server API for IdentityService service. All implementations must embed UnimplementedIdentityServiceServer for forward compatibility
type KeyDisableRequest ¶
type KeyDisableRequest struct {
Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
// contains filtered or unexported fields
}
func (*KeyDisableRequest) Descriptor
deprecated
func (*KeyDisableRequest) Descriptor() ([]byte, []int)
Deprecated: Use KeyDisableRequest.ProtoReflect.Descriptor instead.
func (*KeyDisableRequest) GetKey ¶
func (x *KeyDisableRequest) GetKey() []byte
func (*KeyDisableRequest) ProtoMessage ¶
func (*KeyDisableRequest) ProtoMessage()
func (*KeyDisableRequest) ProtoReflect ¶
func (x *KeyDisableRequest) ProtoReflect() protoreflect.Message
func (*KeyDisableRequest) Reset ¶
func (x *KeyDisableRequest) Reset()
func (*KeyDisableRequest) String ¶
func (x *KeyDisableRequest) String() string
type KeyRecord ¶
type KeyRecord struct {
// Timestamp when the key was registered.
RegistrationTimestamp int64 `protobuf:"varint,1,opt,name=registration_timestamp,json=registrationTimestamp,proto3" json:"registration_timestamp,omitempty"`
// Controls if the key is disabled. Once a key is disabled, it is dead forever.
Disabled bool `protobuf:"varint,2,opt,name=disabled,proto3" json:"disabled,omitempty"`
DisabledTimestamp int64 `protobuf:"varint,3,opt,name=disabled_timestamp,json=disabledTimestamp,proto3" json:"disabled_timestamp,omitempty"`
DisabledBy []byte `protobuf:"bytes,4,opt,name=disabled_by,json=disabledBy,proto3" json:"disabled_by,omitempty"`
// Parent key (it can do everything this key can do).
ParentKey [][]byte `protobuf:"bytes,5,rep,name=parent_key,json=parentKey,proto3" json:"parent_key,omitempty"`
// contains filtered or unexported fields
}
func (*KeyRecord) Descriptor
deprecated
func (*KeyRecord) GetDisabled ¶
func (*KeyRecord) GetDisabledBy ¶
func (*KeyRecord) GetDisabledTimestamp ¶
func (*KeyRecord) GetParentKey ¶
func (*KeyRecord) GetRegistrationTimestamp ¶
func (*KeyRecord) ProtoMessage ¶
func (*KeyRecord) ProtoMessage()
func (*KeyRecord) ProtoReflect ¶
func (x *KeyRecord) ProtoReflect() protoreflect.Message
type KeyRegistrationRequest ¶
type KeyRegistrationRequest struct {
Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
// contains filtered or unexported fields
}
func (*KeyRegistrationRequest) Descriptor
deprecated
func (*KeyRegistrationRequest) Descriptor() ([]byte, []int)
Deprecated: Use KeyRegistrationRequest.ProtoReflect.Descriptor instead.
func (*KeyRegistrationRequest) GetKey ¶
func (x *KeyRegistrationRequest) GetKey() []byte
func (*KeyRegistrationRequest) ProtoMessage ¶
func (*KeyRegistrationRequest) ProtoMessage()
func (*KeyRegistrationRequest) ProtoReflect ¶
func (x *KeyRegistrationRequest) ProtoReflect() protoreflect.Message
func (*KeyRegistrationRequest) Reset ¶
func (x *KeyRegistrationRequest) Reset()
func (*KeyRegistrationRequest) String ¶
func (x *KeyRegistrationRequest) String() string
type KeyRelationship ¶
type KeyRelationship int32
const ( KeyRelationship_KR_NONE KeyRelationship = 0 KeyRelationship_KR_PARENT KeyRelationship = 1 )
func (KeyRelationship) Descriptor ¶
func (KeyRelationship) Descriptor() protoreflect.EnumDescriptor
func (KeyRelationship) Enum ¶
func (x KeyRelationship) Enum() *KeyRelationship
func (KeyRelationship) EnumDescriptor
deprecated
func (KeyRelationship) EnumDescriptor() ([]byte, []int)
Deprecated: Use KeyRelationship.Descriptor instead.
func (KeyRelationship) Number ¶
func (x KeyRelationship) Number() protoreflect.EnumNumber
func (KeyRelationship) String ¶
func (x KeyRelationship) String() string
func (KeyRelationship) Type ¶
func (KeyRelationship) Type() protoreflect.EnumType
type KeyRelationshipRegistrationRequest ¶
type KeyRelationshipRegistrationRequest struct {
TargetKey []byte `protobuf:"bytes,1,opt,name=target_key,json=targetKey,proto3" json:"target_key,omitempty"`
Relationship KeyRelationship `protobuf:"varint,2,opt,name=relationship,proto3,enum=Ubikom.KeyRelationship" json:"relationship,omitempty"`
// contains filtered or unexported fields
}
func (*KeyRelationshipRegistrationRequest) Descriptor
deprecated
func (*KeyRelationshipRegistrationRequest) Descriptor() ([]byte, []int)
Deprecated: Use KeyRelationshipRegistrationRequest.ProtoReflect.Descriptor instead.
func (*KeyRelationshipRegistrationRequest) GetRelationship ¶
func (x *KeyRelationshipRegistrationRequest) GetRelationship() KeyRelationship
func (*KeyRelationshipRegistrationRequest) GetTargetKey ¶
func (x *KeyRelationshipRegistrationRequest) GetTargetKey() []byte
func (*KeyRelationshipRegistrationRequest) ProtoMessage ¶
func (*KeyRelationshipRegistrationRequest) ProtoMessage()
func (*KeyRelationshipRegistrationRequest) ProtoReflect ¶
func (x *KeyRelationshipRegistrationRequest) ProtoReflect() protoreflect.Message
func (*KeyRelationshipRegistrationRequest) Reset ¶
func (x *KeyRelationshipRegistrationRequest) Reset()
func (*KeyRelationshipRegistrationRequest) String ¶
func (x *KeyRelationshipRegistrationRequest) String() string
type LookupAddressRequest ¶
type LookupAddressRequest struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Protocol Protocol `protobuf:"varint,2,opt,name=protocol,proto3,enum=Ubikom.Protocol" json:"protocol,omitempty"`
// contains filtered or unexported fields
}
func (*LookupAddressRequest) Descriptor
deprecated
func (*LookupAddressRequest) Descriptor() ([]byte, []int)
Deprecated: Use LookupAddressRequest.ProtoReflect.Descriptor instead.
func (*LookupAddressRequest) GetName ¶
func (x *LookupAddressRequest) GetName() string
func (*LookupAddressRequest) GetProtocol ¶
func (x *LookupAddressRequest) GetProtocol() Protocol
func (*LookupAddressRequest) ProtoMessage ¶
func (*LookupAddressRequest) ProtoMessage()
func (*LookupAddressRequest) ProtoReflect ¶
func (x *LookupAddressRequest) ProtoReflect() protoreflect.Message
func (*LookupAddressRequest) Reset ¶
func (x *LookupAddressRequest) Reset()
func (*LookupAddressRequest) String ¶
func (x *LookupAddressRequest) String() string
type LookupAddressResponse ¶
type LookupAddressResponse struct {
Result *Result `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
Address string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
// contains filtered or unexported fields
}
func (*LookupAddressResponse) Descriptor
deprecated
func (*LookupAddressResponse) Descriptor() ([]byte, []int)
Deprecated: Use LookupAddressResponse.ProtoReflect.Descriptor instead.
func (*LookupAddressResponse) GetAddress ¶
func (x *LookupAddressResponse) GetAddress() string
func (*LookupAddressResponse) GetMessage ¶
func (x *LookupAddressResponse) GetMessage() string
func (*LookupAddressResponse) GetResult ¶
func (x *LookupAddressResponse) GetResult() *Result
func (*LookupAddressResponse) ProtoMessage ¶
func (*LookupAddressResponse) ProtoMessage()
func (*LookupAddressResponse) ProtoReflect ¶
func (x *LookupAddressResponse) ProtoReflect() protoreflect.Message
func (*LookupAddressResponse) Reset ¶
func (x *LookupAddressResponse) Reset()
func (*LookupAddressResponse) String ¶
func (x *LookupAddressResponse) String() string
type LookupKeyRequest ¶
type LookupKeyRequest struct {
Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
// contains filtered or unexported fields
}
func (*LookupKeyRequest) Descriptor
deprecated
func (*LookupKeyRequest) Descriptor() ([]byte, []int)
Deprecated: Use LookupKeyRequest.ProtoReflect.Descriptor instead.
func (*LookupKeyRequest) GetKey ¶
func (x *LookupKeyRequest) GetKey() []byte
func (*LookupKeyRequest) ProtoMessage ¶
func (*LookupKeyRequest) ProtoMessage()
func (*LookupKeyRequest) ProtoReflect ¶
func (x *LookupKeyRequest) ProtoReflect() protoreflect.Message
func (*LookupKeyRequest) Reset ¶
func (x *LookupKeyRequest) Reset()
func (*LookupKeyRequest) String ¶
func (x *LookupKeyRequest) String() string
type LookupKeyResponse ¶
type LookupKeyResponse struct {
Result *Result `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
RegistrationTimestamp int64 `protobuf:"varint,2,opt,name=registration_timestamp,json=registrationTimestamp,proto3" json:"registration_timestamp,omitempty"`
Disabled bool `protobuf:"varint,3,opt,name=disabled,proto3" json:"disabled,omitempty"`
DisabledTimestamp int64 `protobuf:"varint,4,opt,name=disabled_timestamp,json=disabledTimestamp,proto3" json:"disabled_timestamp,omitempty"`
DisabledBy []byte `protobuf:"bytes,5,opt,name=disabled_by,json=disabledBy,proto3" json:"disabled_by,omitempty"`
ParentKey [][]byte `protobuf:"bytes,6,rep,name=parent_key,json=parentKey,proto3" json:"parent_key,omitempty"`
// contains filtered or unexported fields
}
func (*LookupKeyResponse) Descriptor
deprecated
func (*LookupKeyResponse) Descriptor() ([]byte, []int)
Deprecated: Use LookupKeyResponse.ProtoReflect.Descriptor instead.
func (*LookupKeyResponse) GetDisabled ¶
func (x *LookupKeyResponse) GetDisabled() bool
func (*LookupKeyResponse) GetDisabledBy ¶
func (x *LookupKeyResponse) GetDisabledBy() []byte
func (*LookupKeyResponse) GetDisabledTimestamp ¶
func (x *LookupKeyResponse) GetDisabledTimestamp() int64
func (*LookupKeyResponse) GetParentKey ¶
func (x *LookupKeyResponse) GetParentKey() [][]byte
func (*LookupKeyResponse) GetRegistrationTimestamp ¶
func (x *LookupKeyResponse) GetRegistrationTimestamp() int64
func (*LookupKeyResponse) GetResult ¶
func (x *LookupKeyResponse) GetResult() *Result
func (*LookupKeyResponse) ProtoMessage ¶
func (*LookupKeyResponse) ProtoMessage()
func (*LookupKeyResponse) ProtoReflect ¶
func (x *LookupKeyResponse) ProtoReflect() protoreflect.Message
func (*LookupKeyResponse) Reset ¶
func (x *LookupKeyResponse) Reset()
func (*LookupKeyResponse) String ¶
func (x *LookupKeyResponse) String() string
type LookupNameRequest ¶
type LookupNameRequest struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
func (*LookupNameRequest) Descriptor
deprecated
func (*LookupNameRequest) Descriptor() ([]byte, []int)
Deprecated: Use LookupNameRequest.ProtoReflect.Descriptor instead.
func (*LookupNameRequest) GetName ¶
func (x *LookupNameRequest) GetName() string
func (*LookupNameRequest) ProtoMessage ¶
func (*LookupNameRequest) ProtoMessage()
func (*LookupNameRequest) ProtoReflect ¶
func (x *LookupNameRequest) ProtoReflect() protoreflect.Message
func (*LookupNameRequest) Reset ¶
func (x *LookupNameRequest) Reset()
func (*LookupNameRequest) String ¶
func (x *LookupNameRequest) String() string
type LookupNameResponse ¶
type LookupNameResponse struct {
Result *Result `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
Key []byte `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"`
// contains filtered or unexported fields
}
func (*LookupNameResponse) Descriptor
deprecated
func (*LookupNameResponse) Descriptor() ([]byte, []int)
Deprecated: Use LookupNameResponse.ProtoReflect.Descriptor instead.
func (*LookupNameResponse) GetKey ¶
func (x *LookupNameResponse) GetKey() []byte
func (*LookupNameResponse) GetMessage ¶
func (x *LookupNameResponse) GetMessage() string
func (*LookupNameResponse) GetResult ¶
func (x *LookupNameResponse) GetResult() *Result
func (*LookupNameResponse) ProtoMessage ¶
func (*LookupNameResponse) ProtoMessage()
func (*LookupNameResponse) ProtoReflect ¶
func (x *LookupNameResponse) ProtoReflect() protoreflect.Message
func (*LookupNameResponse) Reset ¶
func (x *LookupNameResponse) Reset()
func (*LookupNameResponse) String ¶
func (x *LookupNameResponse) String() string
type LookupServiceClient ¶
type LookupServiceClient interface {
LookupKey(ctx context.Context, in *LookupKeyRequest, opts ...grpc.CallOption) (*LookupKeyResponse, error)
LookupName(ctx context.Context, in *LookupNameRequest, opts ...grpc.CallOption) (*LookupNameResponse, error)
LookupAddress(ctx context.Context, in *LookupAddressRequest, opts ...grpc.CallOption) (*LookupAddressResponse, error)
}
LookupServiceClient is the client API for LookupService 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 NewLookupServiceClient ¶
func NewLookupServiceClient(cc grpc.ClientConnInterface) LookupServiceClient
type LookupServiceServer ¶
type LookupServiceServer interface {
LookupKey(context.Context, *LookupKeyRequest) (*LookupKeyResponse, error)
LookupName(context.Context, *LookupNameRequest) (*LookupNameResponse, error)
LookupAddress(context.Context, *LookupAddressRequest) (*LookupAddressResponse, error)
// contains filtered or unexported methods
}
LookupServiceServer is the server API for LookupService service. All implementations must embed UnimplementedLookupServiceServer for forward compatibility
type NameRegistrationRequest ¶
type NameRegistrationRequest struct {
// The key to be registered.
Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
// The name to be associated with this key.
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
func (*NameRegistrationRequest) Descriptor
deprecated
func (*NameRegistrationRequest) Descriptor() ([]byte, []int)
Deprecated: Use NameRegistrationRequest.ProtoReflect.Descriptor instead.
func (*NameRegistrationRequest) GetKey ¶
func (x *NameRegistrationRequest) GetKey() []byte
func (*NameRegistrationRequest) GetName ¶
func (x *NameRegistrationRequest) GetName() string
func (*NameRegistrationRequest) ProtoMessage ¶
func (*NameRegistrationRequest) ProtoMessage()
func (*NameRegistrationRequest) ProtoReflect ¶
func (x *NameRegistrationRequest) ProtoReflect() protoreflect.Message
func (*NameRegistrationRequest) Reset ¶
func (x *NameRegistrationRequest) Reset()
func (*NameRegistrationRequest) String ¶
func (x *NameRegistrationRequest) String() string
type Protocol ¶
type Protocol int32
func (Protocol) Descriptor ¶
func (Protocol) Descriptor() protoreflect.EnumDescriptor
func (Protocol) EnumDescriptor
deprecated
func (Protocol) Number ¶
func (x Protocol) Number() protoreflect.EnumNumber
func (Protocol) Type ¶
func (Protocol) Type() protoreflect.EnumType
type ProxyServiceClient ¶
type ProxyServiceClient interface {
StoreEncryptedKey(ctx context.Context, in *Signed, opts ...grpc.CallOption) (*Result, error)
}
ProxyServiceClient is the client API for ProxyService 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 NewProxyServiceClient ¶
func NewProxyServiceClient(cc grpc.ClientConnInterface) ProxyServiceClient
type ProxyServiceServer ¶
type ProxyServiceServer interface {
StoreEncryptedKey(context.Context, *Signed) (*Result, error)
// contains filtered or unexported methods
}
ProxyServiceServer is the server API for ProxyService service. All implementations must embed UnimplementedProxyServiceServer for forward compatibility
type Result ¶
type Result struct {
Result ResultCode `protobuf:"varint,1,opt,name=result,proto3,enum=Ubikom.ResultCode" json:"result,omitempty"`
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
// contains filtered or unexported fields
}
func (*Result) Descriptor
deprecated
func (*Result) GetMessage ¶
func (*Result) GetResult ¶
func (x *Result) GetResult() ResultCode
func (*Result) ProtoMessage ¶
func (*Result) ProtoMessage()
func (*Result) ProtoReflect ¶
func (x *Result) ProtoReflect() protoreflect.Message
type ResultCode ¶
type ResultCode int32
const ( ResultCode_RC_OK ResultCode = 0 ResultCode_RC_INVALID_REQUEST ResultCode = 1 ResultCode_RC_INVALID_KEY ResultCode = 2 ResultCode_RC_RECORD_EXISTS ResultCode = 3 ResultCode_RC_RECORD_NOT_FOUND ResultCode = 4 ResultCode_RC_INSUFFICIENT_POW ResultCode = 5 ResultCode_RC_UNAUTHORIZED ResultCode = 6 ResultCode_RC_INTERNAL_ERROR ResultCode = 100 )
func (ResultCode) Descriptor ¶
func (ResultCode) Descriptor() protoreflect.EnumDescriptor
func (ResultCode) Enum ¶
func (x ResultCode) Enum() *ResultCode
func (ResultCode) EnumDescriptor
deprecated
func (ResultCode) EnumDescriptor() ([]byte, []int)
Deprecated: Use ResultCode.Descriptor instead.
func (ResultCode) Number ¶
func (x ResultCode) Number() protoreflect.EnumNumber
func (ResultCode) String ¶
func (x ResultCode) String() string
func (ResultCode) Type ¶
func (ResultCode) Type() protoreflect.EnumType
type ResultWithContent ¶
type ResultWithContent struct {
Result *Result `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
Content []byte `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
// contains filtered or unexported fields
}
func (*ResultWithContent) Descriptor
deprecated
func (*ResultWithContent) Descriptor() ([]byte, []int)
Deprecated: Use ResultWithContent.ProtoReflect.Descriptor instead.
func (*ResultWithContent) GetContent ¶
func (x *ResultWithContent) GetContent() []byte
func (*ResultWithContent) GetResult ¶
func (x *ResultWithContent) GetResult() *Result
func (*ResultWithContent) ProtoMessage ¶
func (*ResultWithContent) ProtoMessage()
func (*ResultWithContent) ProtoReflect ¶
func (x *ResultWithContent) ProtoReflect() protoreflect.Message
func (*ResultWithContent) Reset ¶
func (x *ResultWithContent) Reset()
func (*ResultWithContent) String ¶
func (x *ResultWithContent) String() string
type Signature ¶
type Signature struct {
R []byte `protobuf:"bytes,1,opt,name=r,proto3" json:"r,omitempty"`
S []byte `protobuf:"bytes,2,opt,name=s,proto3" json:"s,omitempty"`
// contains filtered or unexported fields
}
func (*Signature) Descriptor
deprecated
func (*Signature) ProtoMessage ¶
func (*Signature) ProtoMessage()
func (*Signature) ProtoReflect ¶
func (x *Signature) ProtoReflect() protoreflect.Message
type Signed ¶
type Signed struct {
Content []byte `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
Signature *Signature `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
Key []byte `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"`
// contains filtered or unexported fields
}
func (*Signed) Descriptor
deprecated
func (*Signed) GetContent ¶
func (*Signed) GetSignature ¶
func (*Signed) ProtoMessage ¶
func (*Signed) ProtoMessage()
func (*Signed) ProtoReflect ¶
func (x *Signed) ProtoReflect() protoreflect.Message
type SignedWithPow ¶
type SignedWithPow struct {
Content []byte `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
Signature *Signature `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
Key []byte `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` // Public key used to sign the request.
Pow []byte `protobuf:"bytes,4,opt,name=pow,proto3" json:"pow,omitempty"`
// contains filtered or unexported fields
}
func (*SignedWithPow) Descriptor
deprecated
func (*SignedWithPow) Descriptor() ([]byte, []int)
Deprecated: Use SignedWithPow.ProtoReflect.Descriptor instead.
func (*SignedWithPow) GetContent ¶
func (x *SignedWithPow) GetContent() []byte
func (*SignedWithPow) GetKey ¶
func (x *SignedWithPow) GetKey() []byte
func (*SignedWithPow) GetPow ¶
func (x *SignedWithPow) GetPow() []byte
func (*SignedWithPow) GetSignature ¶
func (x *SignedWithPow) GetSignature() *Signature
func (*SignedWithPow) ProtoMessage ¶
func (*SignedWithPow) ProtoMessage()
func (*SignedWithPow) ProtoReflect ¶
func (x *SignedWithPow) ProtoReflect() protoreflect.Message
func (*SignedWithPow) Reset ¶
func (x *SignedWithPow) Reset()
func (*SignedWithPow) String ¶
func (x *SignedWithPow) String() string
type StoreEncryptedKeyRequest ¶
type StoreEncryptedKeyRequest struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
EncryptedPrivateKey []byte `protobuf:"bytes,2,opt,name=encryptedPrivateKey,proto3" json:"encryptedPrivateKey,omitempty"`
// contains filtered or unexported fields
}
func (*StoreEncryptedKeyRequest) Descriptor
deprecated
func (*StoreEncryptedKeyRequest) Descriptor() ([]byte, []int)
Deprecated: Use StoreEncryptedKeyRequest.ProtoReflect.Descriptor instead.
func (*StoreEncryptedKeyRequest) GetEncryptedPrivateKey ¶
func (x *StoreEncryptedKeyRequest) GetEncryptedPrivateKey() []byte
func (*StoreEncryptedKeyRequest) GetName ¶
func (x *StoreEncryptedKeyRequest) GetName() string
func (*StoreEncryptedKeyRequest) ProtoMessage ¶
func (*StoreEncryptedKeyRequest) ProtoMessage()
func (*StoreEncryptedKeyRequest) ProtoReflect ¶
func (x *StoreEncryptedKeyRequest) ProtoReflect() protoreflect.Message
func (*StoreEncryptedKeyRequest) Reset ¶
func (x *StoreEncryptedKeyRequest) Reset()
func (*StoreEncryptedKeyRequest) String ¶
func (x *StoreEncryptedKeyRequest) String() string
type UnimplementedDMSDumpServiceServer ¶
type UnimplementedDMSDumpServiceServer struct {
}
UnimplementedDMSDumpServiceServer must be embedded to have forward compatible implementations.
func (*UnimplementedDMSDumpServiceServer) Receive ¶
func (*UnimplementedDMSDumpServiceServer) Receive(context.Context, *Signed) (*ResultWithContent, error)
func (*UnimplementedDMSDumpServiceServer) Send ¶
func (*UnimplementedDMSDumpServiceServer) Send(context.Context, *DMSMessage) (*Result, error)
type UnimplementedIdentityServiceServer ¶
type UnimplementedIdentityServiceServer struct {
}
UnimplementedIdentityServiceServer must be embedded to have forward compatible implementations.
func (*UnimplementedIdentityServiceServer) DisableKey ¶
func (*UnimplementedIdentityServiceServer) DisableKey(context.Context, *SignedWithPow) (*Result, error)
func (*UnimplementedIdentityServiceServer) RegisterAddress ¶
func (*UnimplementedIdentityServiceServer) RegisterAddress(context.Context, *SignedWithPow) (*Result, error)
func (*UnimplementedIdentityServiceServer) RegisterKey ¶
func (*UnimplementedIdentityServiceServer) RegisterKey(context.Context, *SignedWithPow) (*Result, error)
func (*UnimplementedIdentityServiceServer) RegisterKeyRelationship ¶
func (*UnimplementedIdentityServiceServer) RegisterKeyRelationship(context.Context, *SignedWithPow) (*Result, error)
func (*UnimplementedIdentityServiceServer) RegisterName ¶
func (*UnimplementedIdentityServiceServer) RegisterName(context.Context, *SignedWithPow) (*Result, error)
type UnimplementedLookupServiceServer ¶
type UnimplementedLookupServiceServer struct {
}
UnimplementedLookupServiceServer must be embedded to have forward compatible implementations.
func (*UnimplementedLookupServiceServer) LookupAddress ¶
func (*UnimplementedLookupServiceServer) LookupAddress(context.Context, *LookupAddressRequest) (*LookupAddressResponse, error)
func (*UnimplementedLookupServiceServer) LookupKey ¶
func (*UnimplementedLookupServiceServer) LookupKey(context.Context, *LookupKeyRequest) (*LookupKeyResponse, error)
func (*UnimplementedLookupServiceServer) LookupName ¶
func (*UnimplementedLookupServiceServer) LookupName(context.Context, *LookupNameRequest) (*LookupNameResponse, error)
type UnimplementedProxyServiceServer ¶
type UnimplementedProxyServiceServer struct {
}
UnimplementedProxyServiceServer must be embedded to have forward compatible implementations.