Documentation ¶
Overview ¶
clientapi package implements the grpc communication between rac and ras.
Index ¶
- Variables
- func RegisterRasServer(s grpc.ServiceRegistrar, srv RasServer)
- type ClientConfig
- func (*ClientConfig) Descriptor() ([]byte, []int)deprecated
- func (x *ClientConfig) GetDigestAlgorithm() string
- func (x *ClientConfig) GetHbDurationSeconds() int64
- func (x *ClientConfig) GetNonce() uint64
- func (x *ClientConfig) GetTrustDurationSeconds() int64
- func (*ClientConfig) ProtoMessage()
- func (x *ClientConfig) ProtoReflect() protoreflect.Message
- func (x *ClientConfig) Reset()
- func (x *ClientConfig) String() string
- type GenerateEKCertReply
- func (*GenerateEKCertReply) Descriptor() ([]byte, []int)deprecated
- func (x *GenerateEKCertReply) GetEkCert() []byte
- func (*GenerateEKCertReply) ProtoMessage()
- func (x *GenerateEKCertReply) ProtoReflect() protoreflect.Message
- func (x *GenerateEKCertReply) Reset()
- func (x *GenerateEKCertReply) String() string
- type GenerateEKCertRequest
- func (*GenerateEKCertRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GenerateEKCertRequest) GetEkPub() []byte
- func (*GenerateEKCertRequest) ProtoMessage()
- func (x *GenerateEKCertRequest) ProtoReflect() protoreflect.Message
- func (x *GenerateEKCertRequest) Reset()
- func (x *GenerateEKCertRequest) String() string
- type GenerateIKCertReply
- func (*GenerateIKCertReply) Descriptor() ([]byte, []int)deprecated
- func (x *GenerateIKCertReply) GetCredBlob() []byte
- func (x *GenerateIKCertReply) GetEncryptAlg() string
- func (x *GenerateIKCertReply) GetEncryptParam() []byte
- func (x *GenerateIKCertReply) GetEncryptedIC() []byte
- func (x *GenerateIKCertReply) GetEncryptedSecret() []byte
- func (*GenerateIKCertReply) ProtoMessage()
- func (x *GenerateIKCertReply) ProtoReflect() protoreflect.Message
- func (x *GenerateIKCertReply) Reset()
- func (x *GenerateIKCertReply) String() string
- type GenerateIKCertRequest
- func (*GenerateIKCertRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GenerateIKCertRequest) GetEkCert() []byte
- func (x *GenerateIKCertRequest) GetIkName() []byte
- func (x *GenerateIKCertRequest) GetIkPub() []byte
- func (*GenerateIKCertRequest) ProtoMessage()
- func (x *GenerateIKCertRequest) ProtoReflect() protoreflect.Message
- func (x *GenerateIKCertRequest) Reset()
- func (x *GenerateIKCertRequest) String() string
- type KeyOperationReply
- func (*KeyOperationReply) Descriptor() ([]byte, []int)deprecated
- func (x *KeyOperationReply) GetEncRetMessage() []byte
- func (x *KeyOperationReply) GetResult() bool
- func (*KeyOperationReply) ProtoMessage()
- func (x *KeyOperationReply) ProtoReflect() protoreflect.Message
- func (x *KeyOperationReply) Reset()
- func (x *KeyOperationReply) String() string
- type KeyOperationRequest
- func (*KeyOperationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *KeyOperationRequest) GetClientId() int64
- func (x *KeyOperationRequest) GetEncMessage() []byte
- func (*KeyOperationRequest) ProtoMessage()
- func (x *KeyOperationRequest) ProtoReflect() protoreflect.Message
- func (x *KeyOperationRequest) Reset()
- func (x *KeyOperationRequest) String() string
- type Manifest
- type RasClient
- type RasServer
- type RegisterClientReply
- func (*RegisterClientReply) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterClientReply) GetClientConfig() *ClientConfig
- func (x *RegisterClientReply) GetClientId() int64
- func (*RegisterClientReply) ProtoMessage()
- func (x *RegisterClientReply) ProtoReflect() protoreflect.Message
- func (x *RegisterClientReply) Reset()
- func (x *RegisterClientReply) String() string
- type RegisterClientRequest
- func (*RegisterClientRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterClientRequest) GetCert() []byte
- func (x *RegisterClientRequest) GetClientInfo() string
- func (*RegisterClientRequest) ProtoMessage()
- func (x *RegisterClientRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterClientRequest) Reset()
- func (x *RegisterClientRequest) String() string
- type SendHeartbeatReply
- func (*SendHeartbeatReply) Descriptor() ([]byte, []int)deprecated
- func (x *SendHeartbeatReply) GetClientConfig() *ClientConfig
- func (x *SendHeartbeatReply) GetNextAction() uint64
- func (*SendHeartbeatReply) ProtoMessage()
- func (x *SendHeartbeatReply) ProtoReflect() protoreflect.Message
- func (x *SendHeartbeatReply) Reset()
- func (x *SendHeartbeatReply) String() string
- type SendHeartbeatRequest
- func (*SendHeartbeatRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SendHeartbeatRequest) GetClientId() int64
- func (*SendHeartbeatRequest) ProtoMessage()
- func (x *SendHeartbeatRequest) ProtoReflect() protoreflect.Message
- func (x *SendHeartbeatRequest) Reset()
- func (x *SendHeartbeatRequest) String() string
- type SendKCMPubKeyCertReply
- func (*SendKCMPubKeyCertReply) Descriptor() ([]byte, []int)deprecated
- func (x *SendKCMPubKeyCertReply) GetKcmPubKeyCert() []byte
- func (x *SendKCMPubKeyCertReply) GetResult() bool
- func (*SendKCMPubKeyCertReply) ProtoMessage()
- func (x *SendKCMPubKeyCertReply) ProtoReflect() protoreflect.Message
- func (x *SendKCMPubKeyCertReply) Reset()
- func (x *SendKCMPubKeyCertReply) String() string
- type SendKCMPubKeyCertRequest
- type SendReportReply
- type SendReportRequest
- func (*SendReportRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SendReportRequest) GetClientId() int64
- func (x *SendReportRequest) GetClientInfo() string
- func (x *SendReportRequest) GetManifests() []*Manifest
- func (x *SendReportRequest) GetNonce() uint64
- func (x *SendReportRequest) GetQuoted() []byte
- func (x *SendReportRequest) GetSignature() []byte
- func (x *SendReportRequest) GetTaReports() map[string][]byte
- func (*SendReportRequest) ProtoMessage()
- func (x *SendReportRequest) ProtoReflect() protoreflect.Message
- func (x *SendReportRequest) Reset()
- func (x *SendReportRequest) String() string
- type UnimplementedRasServer
- func (UnimplementedRasServer) GenerateEKCert(context.Context, *GenerateEKCertRequest) (*GenerateEKCertReply, error)
- func (UnimplementedRasServer) GenerateIKCert(context.Context, *GenerateIKCertRequest) (*GenerateIKCertReply, error)
- func (UnimplementedRasServer) KeyOperation(context.Context, *KeyOperationRequest) (*KeyOperationReply, error)
- func (UnimplementedRasServer) RegisterClient(context.Context, *RegisterClientRequest) (*RegisterClientReply, error)
- func (UnimplementedRasServer) SendHeartbeat(context.Context, *SendHeartbeatRequest) (*SendHeartbeatReply, error)
- func (UnimplementedRasServer) SendKCMPubKeyCert(context.Context, *SendKCMPubKeyCertRequest) (*SendKCMPubKeyCertReply, error)
- func (UnimplementedRasServer) SendReport(context.Context, *SendReportRequest) (*SendReportReply, error)
- func (UnimplementedRasServer) UnregisterClient(context.Context, *UnregisterClientRequest) (*UnregisterClientReply, error)
- func (UnimplementedRasServer) VerifyKTAPubKeyCert(context.Context, *VerifyKTAPubKeyCertRequest) (*VerifyKTAPubKeyCertReply, error)
- type UnregisterClientReply
- func (*UnregisterClientReply) Descriptor() ([]byte, []int)deprecated
- func (x *UnregisterClientReply) GetResult() bool
- func (*UnregisterClientReply) ProtoMessage()
- func (x *UnregisterClientReply) ProtoReflect() protoreflect.Message
- func (x *UnregisterClientReply) Reset()
- func (x *UnregisterClientReply) String() string
- type UnregisterClientRequest
- func (*UnregisterClientRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UnregisterClientRequest) GetClientId() int64
- func (*UnregisterClientRequest) ProtoMessage()
- func (x *UnregisterClientRequest) ProtoReflect() protoreflect.Message
- func (x *UnregisterClientRequest) Reset()
- func (x *UnregisterClientRequest) String() string
- type UnsafeRasServer
- type VerifyKTAPubKeyCertReply
- func (*VerifyKTAPubKeyCertReply) Descriptor() ([]byte, []int)deprecated
- func (x *VerifyKTAPubKeyCertReply) GetResult() bool
- func (*VerifyKTAPubKeyCertReply) ProtoMessage()
- func (x *VerifyKTAPubKeyCertReply) ProtoReflect() protoreflect.Message
- func (x *VerifyKTAPubKeyCertReply) Reset()
- func (x *VerifyKTAPubKeyCertReply) String() string
- type VerifyKTAPubKeyCertRequest
- func (*VerifyKTAPubKeyCertRequest) Descriptor() ([]byte, []int)deprecated
- func (x *VerifyKTAPubKeyCertRequest) GetClientId() int64
- func (x *VerifyKTAPubKeyCertRequest) GetKtaPubKeyCert() []byte
- func (*VerifyKTAPubKeyCertRequest) ProtoMessage()
- func (x *VerifyKTAPubKeyCertRequest) ProtoReflect() protoreflect.Message
- func (x *VerifyKTAPubKeyCertRequest) Reset()
- func (x *VerifyKTAPubKeyCertRequest) String() string
Constants ¶
This section is empty.
Variables ¶
var File_clientapi_api_proto protoreflect.FileDescriptor
var Ras_ServiceDesc = grpc.ServiceDesc{ ServiceName: "Ras", HandlerType: (*RasServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GenerateEKCert", Handler: _Ras_GenerateEKCert_Handler, }, { MethodName: "GenerateIKCert", Handler: _Ras_GenerateIKCert_Handler, }, { MethodName: "RegisterClient", Handler: _Ras_RegisterClient_Handler, }, { MethodName: "UnregisterClient", Handler: _Ras_UnregisterClient_Handler, }, { MethodName: "SendHeartbeat", Handler: _Ras_SendHeartbeat_Handler, }, { MethodName: "SendReport", Handler: _Ras_SendReport_Handler, }, { MethodName: "SendKCMPubKeyCert", Handler: _Ras_SendKCMPubKeyCert_Handler, }, { MethodName: "VerifyKTAPubKeyCert", Handler: _Ras_VerifyKTAPubKeyCert_Handler, }, { MethodName: "KeyOperation", Handler: _Ras_KeyOperation_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "clientapi/api.proto", }
Ras_ServiceDesc is the grpc.ServiceDesc for Ras service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterRasServer ¶
func RegisterRasServer(s grpc.ServiceRegistrar, srv RasServer)
Types ¶
type ClientConfig ¶
type ClientConfig struct { HbDurationSeconds int64 `protobuf:"varint,1,opt,name=hbDurationSeconds,proto3" json:"hbDurationSeconds,omitempty"` TrustDurationSeconds int64 `protobuf:"varint,2,opt,name=trustDurationSeconds,proto3" json:"trustDurationSeconds,omitempty"` Nonce uint64 `protobuf:"varint,3,opt,name=nonce,proto3" json:"nonce,omitempty"` DigestAlgorithm string `protobuf:"bytes,4,opt,name=digestAlgorithm,proto3" json:"digestAlgorithm,omitempty"` // contains filtered or unexported fields }
func (*ClientConfig) Descriptor
deprecated
func (*ClientConfig) Descriptor() ([]byte, []int)
Deprecated: Use ClientConfig.ProtoReflect.Descriptor instead.
func (*ClientConfig) GetDigestAlgorithm ¶
func (x *ClientConfig) GetDigestAlgorithm() string
func (*ClientConfig) GetHbDurationSeconds ¶
func (x *ClientConfig) GetHbDurationSeconds() int64
func (*ClientConfig) GetNonce ¶
func (x *ClientConfig) GetNonce() uint64
func (*ClientConfig) GetTrustDurationSeconds ¶
func (x *ClientConfig) GetTrustDurationSeconds() int64
func (*ClientConfig) ProtoMessage ¶
func (*ClientConfig) ProtoMessage()
func (*ClientConfig) ProtoReflect ¶
func (x *ClientConfig) ProtoReflect() protoreflect.Message
func (*ClientConfig) Reset ¶
func (x *ClientConfig) Reset()
func (*ClientConfig) String ¶
func (x *ClientConfig) String() string
type GenerateEKCertReply ¶
type GenerateEKCertReply struct { EkCert []byte `protobuf:"bytes,1,opt,name=ekCert,proto3" json:"ekCert,omitempty"` // contains filtered or unexported fields }
func (*GenerateEKCertReply) Descriptor
deprecated
func (*GenerateEKCertReply) Descriptor() ([]byte, []int)
Deprecated: Use GenerateEKCertReply.ProtoReflect.Descriptor instead.
func (*GenerateEKCertReply) GetEkCert ¶
func (x *GenerateEKCertReply) GetEkCert() []byte
func (*GenerateEKCertReply) ProtoMessage ¶
func (*GenerateEKCertReply) ProtoMessage()
func (*GenerateEKCertReply) ProtoReflect ¶
func (x *GenerateEKCertReply) ProtoReflect() protoreflect.Message
func (*GenerateEKCertReply) Reset ¶
func (x *GenerateEKCertReply) Reset()
func (*GenerateEKCertReply) String ¶
func (x *GenerateEKCertReply) String() string
type GenerateEKCertRequest ¶
type GenerateEKCertRequest struct { EkPub []byte `protobuf:"bytes,1,opt,name=ekPub,proto3" json:"ekPub,omitempty"` // contains filtered or unexported fields }
func (*GenerateEKCertRequest) Descriptor
deprecated
func (*GenerateEKCertRequest) Descriptor() ([]byte, []int)
Deprecated: Use GenerateEKCertRequest.ProtoReflect.Descriptor instead.
func (*GenerateEKCertRequest) GetEkPub ¶
func (x *GenerateEKCertRequest) GetEkPub() []byte
func (*GenerateEKCertRequest) ProtoMessage ¶
func (*GenerateEKCertRequest) ProtoMessage()
func (*GenerateEKCertRequest) ProtoReflect ¶
func (x *GenerateEKCertRequest) ProtoReflect() protoreflect.Message
func (*GenerateEKCertRequest) Reset ¶
func (x *GenerateEKCertRequest) Reset()
func (*GenerateEKCertRequest) String ¶
func (x *GenerateEKCertRequest) String() string
type GenerateIKCertReply ¶
type GenerateIKCertReply struct { EncryptedIC []byte `protobuf:"bytes,1,opt,name=encryptedIC,proto3" json:"encryptedIC,omitempty"` CredBlob []byte `protobuf:"bytes,2,opt,name=credBlob,proto3" json:"credBlob,omitempty"` EncryptedSecret []byte `protobuf:"bytes,3,opt,name=encryptedSecret,proto3" json:"encryptedSecret,omitempty"` EncryptAlg string `protobuf:"bytes,4,opt,name=encryptAlg,proto3" json:"encryptAlg,omitempty"` EncryptParam []byte `protobuf:"bytes,5,opt,name=encryptParam,proto3" json:"encryptParam,omitempty"` // contains filtered or unexported fields }
func (*GenerateIKCertReply) Descriptor
deprecated
func (*GenerateIKCertReply) Descriptor() ([]byte, []int)
Deprecated: Use GenerateIKCertReply.ProtoReflect.Descriptor instead.
func (*GenerateIKCertReply) GetCredBlob ¶
func (x *GenerateIKCertReply) GetCredBlob() []byte
func (*GenerateIKCertReply) GetEncryptAlg ¶
func (x *GenerateIKCertReply) GetEncryptAlg() string
func (*GenerateIKCertReply) GetEncryptParam ¶
func (x *GenerateIKCertReply) GetEncryptParam() []byte
func (*GenerateIKCertReply) GetEncryptedIC ¶
func (x *GenerateIKCertReply) GetEncryptedIC() []byte
func (*GenerateIKCertReply) GetEncryptedSecret ¶
func (x *GenerateIKCertReply) GetEncryptedSecret() []byte
func (*GenerateIKCertReply) ProtoMessage ¶
func (*GenerateIKCertReply) ProtoMessage()
func (*GenerateIKCertReply) ProtoReflect ¶
func (x *GenerateIKCertReply) ProtoReflect() protoreflect.Message
func (*GenerateIKCertReply) Reset ¶
func (x *GenerateIKCertReply) Reset()
func (*GenerateIKCertReply) String ¶
func (x *GenerateIKCertReply) String() string
type GenerateIKCertRequest ¶
type GenerateIKCertRequest struct { EkCert []byte `protobuf:"bytes,1,opt,name=ekCert,proto3" json:"ekCert,omitempty"` IkPub []byte `protobuf:"bytes,2,opt,name=ikPub,proto3" json:"ikPub,omitempty"` IkName []byte `protobuf:"bytes,3,opt,name=ikName,proto3" json:"ikName,omitempty"` // contains filtered or unexported fields }
func (*GenerateIKCertRequest) Descriptor
deprecated
func (*GenerateIKCertRequest) Descriptor() ([]byte, []int)
Deprecated: Use GenerateIKCertRequest.ProtoReflect.Descriptor instead.
func (*GenerateIKCertRequest) GetEkCert ¶
func (x *GenerateIKCertRequest) GetEkCert() []byte
func (*GenerateIKCertRequest) GetIkName ¶
func (x *GenerateIKCertRequest) GetIkName() []byte
func (*GenerateIKCertRequest) GetIkPub ¶
func (x *GenerateIKCertRequest) GetIkPub() []byte
func (*GenerateIKCertRequest) ProtoMessage ¶
func (*GenerateIKCertRequest) ProtoMessage()
func (*GenerateIKCertRequest) ProtoReflect ¶
func (x *GenerateIKCertRequest) ProtoReflect() protoreflect.Message
func (*GenerateIKCertRequest) Reset ¶
func (x *GenerateIKCertRequest) Reset()
func (*GenerateIKCertRequest) String ¶
func (x *GenerateIKCertRequest) String() string
type KeyOperationReply ¶
type KeyOperationReply struct { Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"` EncRetMessage []byte `protobuf:"bytes,2,opt,name=encRetMessage,proto3" json:"encRetMessage,omitempty"` // contains filtered or unexported fields }
func (*KeyOperationReply) Descriptor
deprecated
func (*KeyOperationReply) Descriptor() ([]byte, []int)
Deprecated: Use KeyOperationReply.ProtoReflect.Descriptor instead.
func (*KeyOperationReply) GetEncRetMessage ¶
func (x *KeyOperationReply) GetEncRetMessage() []byte
func (*KeyOperationReply) GetResult ¶
func (x *KeyOperationReply) GetResult() bool
func (*KeyOperationReply) ProtoMessage ¶
func (*KeyOperationReply) ProtoMessage()
func (*KeyOperationReply) ProtoReflect ¶
func (x *KeyOperationReply) ProtoReflect() protoreflect.Message
func (*KeyOperationReply) Reset ¶
func (x *KeyOperationReply) Reset()
func (*KeyOperationReply) String ¶
func (x *KeyOperationReply) String() string
type KeyOperationRequest ¶
type KeyOperationRequest struct { ClientId int64 `protobuf:"varint,1,opt,name=clientId,proto3" json:"clientId,omitempty"` EncMessage []byte `protobuf:"bytes,2,opt,name=encMessage,proto3" json:"encMessage,omitempty"` // contains filtered or unexported fields }
func (*KeyOperationRequest) Descriptor
deprecated
func (*KeyOperationRequest) Descriptor() ([]byte, []int)
Deprecated: Use KeyOperationRequest.ProtoReflect.Descriptor instead.
func (*KeyOperationRequest) GetClientId ¶
func (x *KeyOperationRequest) GetClientId() int64
func (*KeyOperationRequest) GetEncMessage ¶
func (x *KeyOperationRequest) GetEncMessage() []byte
func (*KeyOperationRequest) ProtoMessage ¶
func (*KeyOperationRequest) ProtoMessage()
func (*KeyOperationRequest) ProtoReflect ¶
func (x *KeyOperationRequest) ProtoReflect() protoreflect.Message
func (*KeyOperationRequest) Reset ¶
func (x *KeyOperationRequest) Reset()
func (*KeyOperationRequest) String ¶
func (x *KeyOperationRequest) String() string
type Manifest ¶
type Manifest struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*Manifest) Descriptor
deprecated
func (*Manifest) ProtoMessage ¶
func (*Manifest) ProtoMessage()
func (*Manifest) ProtoReflect ¶
func (x *Manifest) ProtoReflect() protoreflect.Message
type RasClient ¶
type RasClient interface { GenerateEKCert(ctx context.Context, in *GenerateEKCertRequest, opts ...grpc.CallOption) (*GenerateEKCertReply, error) GenerateIKCert(ctx context.Context, in *GenerateIKCertRequest, opts ...grpc.CallOption) (*GenerateIKCertReply, error) RegisterClient(ctx context.Context, in *RegisterClientRequest, opts ...grpc.CallOption) (*RegisterClientReply, error) UnregisterClient(ctx context.Context, in *UnregisterClientRequest, opts ...grpc.CallOption) (*UnregisterClientReply, error) SendHeartbeat(ctx context.Context, in *SendHeartbeatRequest, opts ...grpc.CallOption) (*SendHeartbeatReply, error) SendReport(ctx context.Context, in *SendReportRequest, opts ...grpc.CallOption) (*SendReportReply, error) SendKCMPubKeyCert(ctx context.Context, in *SendKCMPubKeyCertRequest, opts ...grpc.CallOption) (*SendKCMPubKeyCertReply, error) VerifyKTAPubKeyCert(ctx context.Context, in *VerifyKTAPubKeyCertRequest, opts ...grpc.CallOption) (*VerifyKTAPubKeyCertReply, error) KeyOperation(ctx context.Context, in *KeyOperationRequest, opts ...grpc.CallOption) (*KeyOperationReply, error) }
RasClient is the client API for Ras 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 NewRasClient ¶
func NewRasClient(cc grpc.ClientConnInterface) RasClient
type RasServer ¶
type RasServer interface { GenerateEKCert(context.Context, *GenerateEKCertRequest) (*GenerateEKCertReply, error) GenerateIKCert(context.Context, *GenerateIKCertRequest) (*GenerateIKCertReply, error) RegisterClient(context.Context, *RegisterClientRequest) (*RegisterClientReply, error) UnregisterClient(context.Context, *UnregisterClientRequest) (*UnregisterClientReply, error) SendHeartbeat(context.Context, *SendHeartbeatRequest) (*SendHeartbeatReply, error) SendReport(context.Context, *SendReportRequest) (*SendReportReply, error) SendKCMPubKeyCert(context.Context, *SendKCMPubKeyCertRequest) (*SendKCMPubKeyCertReply, error) VerifyKTAPubKeyCert(context.Context, *VerifyKTAPubKeyCertRequest) (*VerifyKTAPubKeyCertReply, error) KeyOperation(context.Context, *KeyOperationRequest) (*KeyOperationReply, error) // contains filtered or unexported methods }
RasServer is the server API for Ras service. All implementations must embed UnimplementedRasServer for forward compatibility
type RegisterClientReply ¶
type RegisterClientReply struct { ClientId int64 `protobuf:"varint,1,opt,name=clientId,proto3" json:"clientId,omitempty"` ClientConfig *ClientConfig `protobuf:"bytes,2,opt,name=clientConfig,proto3" json:"clientConfig,omitempty"` // contains filtered or unexported fields }
func (*RegisterClientReply) Descriptor
deprecated
func (*RegisterClientReply) Descriptor() ([]byte, []int)
Deprecated: Use RegisterClientReply.ProtoReflect.Descriptor instead.
func (*RegisterClientReply) GetClientConfig ¶
func (x *RegisterClientReply) GetClientConfig() *ClientConfig
func (*RegisterClientReply) GetClientId ¶
func (x *RegisterClientReply) GetClientId() int64
func (*RegisterClientReply) ProtoMessage ¶
func (*RegisterClientReply) ProtoMessage()
func (*RegisterClientReply) ProtoReflect ¶
func (x *RegisterClientReply) ProtoReflect() protoreflect.Message
func (*RegisterClientReply) Reset ¶
func (x *RegisterClientReply) Reset()
func (*RegisterClientReply) String ¶
func (x *RegisterClientReply) String() string
type RegisterClientRequest ¶
type RegisterClientRequest struct { Cert []byte `protobuf:"bytes,1,opt,name=cert,proto3" json:"cert,omitempty"` ClientInfo string `protobuf:"bytes,2,opt,name=clientInfo,proto3" json:"clientInfo,omitempty"` // contains filtered or unexported fields }
func (*RegisterClientRequest) Descriptor
deprecated
func (*RegisterClientRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterClientRequest.ProtoReflect.Descriptor instead.
func (*RegisterClientRequest) GetCert ¶
func (x *RegisterClientRequest) GetCert() []byte
func (*RegisterClientRequest) GetClientInfo ¶
func (x *RegisterClientRequest) GetClientInfo() string
func (*RegisterClientRequest) ProtoMessage ¶
func (*RegisterClientRequest) ProtoMessage()
func (*RegisterClientRequest) ProtoReflect ¶
func (x *RegisterClientRequest) ProtoReflect() protoreflect.Message
func (*RegisterClientRequest) Reset ¶
func (x *RegisterClientRequest) Reset()
func (*RegisterClientRequest) String ¶
func (x *RegisterClientRequest) String() string
type SendHeartbeatReply ¶
type SendHeartbeatReply struct { NextAction uint64 `protobuf:"varint,1,opt,name=nextAction,proto3" json:"nextAction,omitempty"` ClientConfig *ClientConfig `protobuf:"bytes,3,opt,name=clientConfig,proto3" json:"clientConfig,omitempty"` // contains filtered or unexported fields }
func (*SendHeartbeatReply) Descriptor
deprecated
func (*SendHeartbeatReply) Descriptor() ([]byte, []int)
Deprecated: Use SendHeartbeatReply.ProtoReflect.Descriptor instead.
func (*SendHeartbeatReply) GetClientConfig ¶
func (x *SendHeartbeatReply) GetClientConfig() *ClientConfig
func (*SendHeartbeatReply) GetNextAction ¶
func (x *SendHeartbeatReply) GetNextAction() uint64
func (*SendHeartbeatReply) ProtoMessage ¶
func (*SendHeartbeatReply) ProtoMessage()
func (*SendHeartbeatReply) ProtoReflect ¶
func (x *SendHeartbeatReply) ProtoReflect() protoreflect.Message
func (*SendHeartbeatReply) Reset ¶
func (x *SendHeartbeatReply) Reset()
func (*SendHeartbeatReply) String ¶
func (x *SendHeartbeatReply) String() string
type SendHeartbeatRequest ¶
type SendHeartbeatRequest struct { ClientId int64 `protobuf:"varint,1,opt,name=clientId,proto3" json:"clientId,omitempty"` // contains filtered or unexported fields }
func (*SendHeartbeatRequest) Descriptor
deprecated
func (*SendHeartbeatRequest) Descriptor() ([]byte, []int)
Deprecated: Use SendHeartbeatRequest.ProtoReflect.Descriptor instead.
func (*SendHeartbeatRequest) GetClientId ¶
func (x *SendHeartbeatRequest) GetClientId() int64
func (*SendHeartbeatRequest) ProtoMessage ¶
func (*SendHeartbeatRequest) ProtoMessage()
func (*SendHeartbeatRequest) ProtoReflect ¶
func (x *SendHeartbeatRequest) ProtoReflect() protoreflect.Message
func (*SendHeartbeatRequest) Reset ¶
func (x *SendHeartbeatRequest) Reset()
func (*SendHeartbeatRequest) String ¶
func (x *SendHeartbeatRequest) String() string
type SendKCMPubKeyCertReply ¶
type SendKCMPubKeyCertReply struct { Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"` KcmPubKeyCert []byte `protobuf:"bytes,2,opt,name=kcmPubKeyCert,proto3" json:"kcmPubKeyCert,omitempty"` // contains filtered or unexported fields }
func (*SendKCMPubKeyCertReply) Descriptor
deprecated
func (*SendKCMPubKeyCertReply) Descriptor() ([]byte, []int)
Deprecated: Use SendKCMPubKeyCertReply.ProtoReflect.Descriptor instead.
func (*SendKCMPubKeyCertReply) GetKcmPubKeyCert ¶
func (x *SendKCMPubKeyCertReply) GetKcmPubKeyCert() []byte
func (*SendKCMPubKeyCertReply) GetResult ¶
func (x *SendKCMPubKeyCertReply) GetResult() bool
func (*SendKCMPubKeyCertReply) ProtoMessage ¶
func (*SendKCMPubKeyCertReply) ProtoMessage()
func (*SendKCMPubKeyCertReply) ProtoReflect ¶
func (x *SendKCMPubKeyCertReply) ProtoReflect() protoreflect.Message
func (*SendKCMPubKeyCertReply) Reset ¶
func (x *SendKCMPubKeyCertReply) Reset()
func (*SendKCMPubKeyCertReply) String ¶
func (x *SendKCMPubKeyCertReply) String() string
type SendKCMPubKeyCertRequest ¶
type SendKCMPubKeyCertRequest struct {
// contains filtered or unexported fields
}
func (*SendKCMPubKeyCertRequest) Descriptor
deprecated
func (*SendKCMPubKeyCertRequest) Descriptor() ([]byte, []int)
Deprecated: Use SendKCMPubKeyCertRequest.ProtoReflect.Descriptor instead.
func (*SendKCMPubKeyCertRequest) ProtoMessage ¶
func (*SendKCMPubKeyCertRequest) ProtoMessage()
func (*SendKCMPubKeyCertRequest) ProtoReflect ¶
func (x *SendKCMPubKeyCertRequest) ProtoReflect() protoreflect.Message
func (*SendKCMPubKeyCertRequest) Reset ¶
func (x *SendKCMPubKeyCertRequest) Reset()
func (*SendKCMPubKeyCertRequest) String ¶
func (x *SendKCMPubKeyCertRequest) String() string
type SendReportReply ¶
type SendReportReply struct { Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"` // contains filtered or unexported fields }
func (*SendReportReply) Descriptor
deprecated
func (*SendReportReply) Descriptor() ([]byte, []int)
Deprecated: Use SendReportReply.ProtoReflect.Descriptor instead.
func (*SendReportReply) GetResult ¶
func (x *SendReportReply) GetResult() bool
func (*SendReportReply) ProtoMessage ¶
func (*SendReportReply) ProtoMessage()
func (*SendReportReply) ProtoReflect ¶
func (x *SendReportReply) ProtoReflect() protoreflect.Message
func (*SendReportReply) Reset ¶
func (x *SendReportReply) Reset()
func (*SendReportReply) String ¶
func (x *SendReportReply) String() string
type SendReportRequest ¶
type SendReportRequest struct { ClientId int64 `protobuf:"varint,1,opt,name=clientId,proto3" json:"clientId,omitempty"` Nonce uint64 `protobuf:"varint,2,opt,name=nonce,proto3" json:"nonce,omitempty"` ClientInfo string `protobuf:"bytes,3,opt,name=clientInfo,proto3" json:"clientInfo,omitempty"` Quoted []byte `protobuf:"bytes,4,opt,name=quoted,proto3" json:"quoted,omitempty"` Signature []byte `protobuf:"bytes,5,opt,name=signature,proto3" json:"signature,omitempty"` Manifests []*Manifest `protobuf:"bytes,6,rep,name=manifests,proto3" json:"manifests,omitempty"` TaReports map[string][]byte `` /* 159-byte string literal not displayed */ // contains filtered or unexported fields }
func (*SendReportRequest) Descriptor
deprecated
func (*SendReportRequest) Descriptor() ([]byte, []int)
Deprecated: Use SendReportRequest.ProtoReflect.Descriptor instead.
func (*SendReportRequest) GetClientId ¶
func (x *SendReportRequest) GetClientId() int64
func (*SendReportRequest) GetClientInfo ¶
func (x *SendReportRequest) GetClientInfo() string
func (*SendReportRequest) GetManifests ¶
func (x *SendReportRequest) GetManifests() []*Manifest
func (*SendReportRequest) GetNonce ¶
func (x *SendReportRequest) GetNonce() uint64
func (*SendReportRequest) GetQuoted ¶
func (x *SendReportRequest) GetQuoted() []byte
func (*SendReportRequest) GetSignature ¶
func (x *SendReportRequest) GetSignature() []byte
func (*SendReportRequest) GetTaReports ¶
func (x *SendReportRequest) GetTaReports() map[string][]byte
func (*SendReportRequest) ProtoMessage ¶
func (*SendReportRequest) ProtoMessage()
func (*SendReportRequest) ProtoReflect ¶
func (x *SendReportRequest) ProtoReflect() protoreflect.Message
func (*SendReportRequest) Reset ¶
func (x *SendReportRequest) Reset()
func (*SendReportRequest) String ¶
func (x *SendReportRequest) String() string
type UnimplementedRasServer ¶
type UnimplementedRasServer struct { }
UnimplementedRasServer must be embedded to have forward compatible implementations.
func (UnimplementedRasServer) GenerateEKCert ¶
func (UnimplementedRasServer) GenerateEKCert(context.Context, *GenerateEKCertRequest) (*GenerateEKCertReply, error)
func (UnimplementedRasServer) GenerateIKCert ¶
func (UnimplementedRasServer) GenerateIKCert(context.Context, *GenerateIKCertRequest) (*GenerateIKCertReply, error)
func (UnimplementedRasServer) KeyOperation ¶
func (UnimplementedRasServer) KeyOperation(context.Context, *KeyOperationRequest) (*KeyOperationReply, error)
func (UnimplementedRasServer) RegisterClient ¶
func (UnimplementedRasServer) RegisterClient(context.Context, *RegisterClientRequest) (*RegisterClientReply, error)
func (UnimplementedRasServer) SendHeartbeat ¶
func (UnimplementedRasServer) SendHeartbeat(context.Context, *SendHeartbeatRequest) (*SendHeartbeatReply, error)
func (UnimplementedRasServer) SendKCMPubKeyCert ¶
func (UnimplementedRasServer) SendKCMPubKeyCert(context.Context, *SendKCMPubKeyCertRequest) (*SendKCMPubKeyCertReply, error)
func (UnimplementedRasServer) SendReport ¶
func (UnimplementedRasServer) SendReport(context.Context, *SendReportRequest) (*SendReportReply, error)
func (UnimplementedRasServer) UnregisterClient ¶
func (UnimplementedRasServer) UnregisterClient(context.Context, *UnregisterClientRequest) (*UnregisterClientReply, error)
func (UnimplementedRasServer) VerifyKTAPubKeyCert ¶
func (UnimplementedRasServer) VerifyKTAPubKeyCert(context.Context, *VerifyKTAPubKeyCertRequest) (*VerifyKTAPubKeyCertReply, error)
type UnregisterClientReply ¶
type UnregisterClientReply struct { Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"` // contains filtered or unexported fields }
func (*UnregisterClientReply) Descriptor
deprecated
func (*UnregisterClientReply) Descriptor() ([]byte, []int)
Deprecated: Use UnregisterClientReply.ProtoReflect.Descriptor instead.
func (*UnregisterClientReply) GetResult ¶
func (x *UnregisterClientReply) GetResult() bool
func (*UnregisterClientReply) ProtoMessage ¶
func (*UnregisterClientReply) ProtoMessage()
func (*UnregisterClientReply) ProtoReflect ¶
func (x *UnregisterClientReply) ProtoReflect() protoreflect.Message
func (*UnregisterClientReply) Reset ¶
func (x *UnregisterClientReply) Reset()
func (*UnregisterClientReply) String ¶
func (x *UnregisterClientReply) String() string
type UnregisterClientRequest ¶
type UnregisterClientRequest struct { ClientId int64 `protobuf:"varint,1,opt,name=clientId,proto3" json:"clientId,omitempty"` // contains filtered or unexported fields }
func (*UnregisterClientRequest) Descriptor
deprecated
func (*UnregisterClientRequest) Descriptor() ([]byte, []int)
Deprecated: Use UnregisterClientRequest.ProtoReflect.Descriptor instead.
func (*UnregisterClientRequest) GetClientId ¶
func (x *UnregisterClientRequest) GetClientId() int64
func (*UnregisterClientRequest) ProtoMessage ¶
func (*UnregisterClientRequest) ProtoMessage()
func (*UnregisterClientRequest) ProtoReflect ¶
func (x *UnregisterClientRequest) ProtoReflect() protoreflect.Message
func (*UnregisterClientRequest) Reset ¶
func (x *UnregisterClientRequest) Reset()
func (*UnregisterClientRequest) String ¶
func (x *UnregisterClientRequest) String() string
type UnsafeRasServer ¶
type UnsafeRasServer interface {
// contains filtered or unexported methods
}
UnsafeRasServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RasServer will result in compilation errors.
type VerifyKTAPubKeyCertReply ¶
type VerifyKTAPubKeyCertReply struct { Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"` // contains filtered or unexported fields }
func (*VerifyKTAPubKeyCertReply) Descriptor
deprecated
func (*VerifyKTAPubKeyCertReply) Descriptor() ([]byte, []int)
Deprecated: Use VerifyKTAPubKeyCertReply.ProtoReflect.Descriptor instead.
func (*VerifyKTAPubKeyCertReply) GetResult ¶
func (x *VerifyKTAPubKeyCertReply) GetResult() bool
func (*VerifyKTAPubKeyCertReply) ProtoMessage ¶
func (*VerifyKTAPubKeyCertReply) ProtoMessage()
func (*VerifyKTAPubKeyCertReply) ProtoReflect ¶
func (x *VerifyKTAPubKeyCertReply) ProtoReflect() protoreflect.Message
func (*VerifyKTAPubKeyCertReply) Reset ¶
func (x *VerifyKTAPubKeyCertReply) Reset()
func (*VerifyKTAPubKeyCertReply) String ¶
func (x *VerifyKTAPubKeyCertReply) String() string
type VerifyKTAPubKeyCertRequest ¶
type VerifyKTAPubKeyCertRequest struct { ClientId int64 `protobuf:"varint,1,opt,name=clientId,proto3" json:"clientId,omitempty"` KtaPubKeyCert []byte `protobuf:"bytes,2,opt,name=ktaPubKeyCert,proto3" json:"ktaPubKeyCert,omitempty"` // contains filtered or unexported fields }
func (*VerifyKTAPubKeyCertRequest) Descriptor
deprecated
func (*VerifyKTAPubKeyCertRequest) Descriptor() ([]byte, []int)
Deprecated: Use VerifyKTAPubKeyCertRequest.ProtoReflect.Descriptor instead.
func (*VerifyKTAPubKeyCertRequest) GetClientId ¶
func (x *VerifyKTAPubKeyCertRequest) GetClientId() int64
func (*VerifyKTAPubKeyCertRequest) GetKtaPubKeyCert ¶
func (x *VerifyKTAPubKeyCertRequest) GetKtaPubKeyCert() []byte
func (*VerifyKTAPubKeyCertRequest) ProtoMessage ¶
func (*VerifyKTAPubKeyCertRequest) ProtoMessage()
func (*VerifyKTAPubKeyCertRequest) ProtoReflect ¶
func (x *VerifyKTAPubKeyCertRequest) ProtoReflect() protoreflect.Message
func (*VerifyKTAPubKeyCertRequest) Reset ¶
func (x *VerifyKTAPubKeyCertRequest) Reset()
func (*VerifyKTAPubKeyCertRequest) String ¶
func (x *VerifyKTAPubKeyCertRequest) String() string
Directories ¶
Path | Synopsis |
---|---|
clientapi package implements the grpc communication between rac and ras.
|
clientapi package implements the grpc communication between rac and ras. |
clientapi package implements the grpc communication between rac and ras.
|
clientapi package implements the grpc communication between rac and ras. |