Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)
- type AgentConfig
- func (*AgentConfig) Descriptor() ([]byte, []int)deprecated
- func (x *AgentConfig) GetAttestedTls() bool
- func (x *AgentConfig) GetCertFile() string
- func (x *AgentConfig) GetClientCaFile() string
- func (x *AgentConfig) GetKeyFile() string
- func (x *AgentConfig) GetLogLevel() string
- func (x *AgentConfig) GetPort() string
- func (x *AgentConfig) GetServerCaFile() string
- func (*AgentConfig) ProtoMessage()
- func (x *AgentConfig) ProtoReflect() protoreflect.Message
- func (x *AgentConfig) Reset()
- func (x *AgentConfig) String() string
- type AgentEvent
- func (*AgentEvent) Descriptor() ([]byte, []int)deprecated
- func (x *AgentEvent) GetComputationId() string
- func (x *AgentEvent) GetDetails() []byte
- func (x *AgentEvent) GetEventType() string
- func (x *AgentEvent) GetOriginator() string
- func (x *AgentEvent) GetStatus() string
- func (x *AgentEvent) GetTimestamp() *timestamppb.Timestamp
- func (*AgentEvent) ProtoMessage()
- func (x *AgentEvent) ProtoReflect() protoreflect.Message
- func (x *AgentEvent) Reset()
- func (x *AgentEvent) String() string
- type AgentLog
- func (*AgentLog) Descriptor() ([]byte, []int)deprecated
- func (x *AgentLog) GetComputationId() string
- func (x *AgentLog) GetLevel() string
- func (x *AgentLog) GetMessage() string
- func (x *AgentLog) GetTimestamp() *timestamppb.Timestamp
- func (*AgentLog) ProtoMessage()
- func (x *AgentLog) ProtoReflect() protoreflect.Message
- func (x *AgentLog) Reset()
- func (x *AgentLog) String() string
- type AgentStateReq
- type AgentStateRes
- func (*AgentStateRes) Descriptor() ([]byte, []int)deprecated
- func (x *AgentStateRes) GetId() string
- func (x *AgentStateRes) GetState() string
- func (*AgentStateRes) ProtoMessage()
- func (x *AgentStateRes) ProtoReflect() protoreflect.Message
- func (x *AgentStateRes) Reset()
- func (x *AgentStateRes) String() string
- type Algorithm
- func (*Algorithm) Descriptor() ([]byte, []int)deprecated
- func (x *Algorithm) GetAlgoArgs() []string
- func (x *Algorithm) GetAlgoType() string
- func (x *Algorithm) GetHash() []byte
- func (x *Algorithm) GetKbs() *KBSConfig
- func (x *Algorithm) GetSource() *Source
- func (x *Algorithm) GetUserKey() []byte
- func (*Algorithm) ProtoMessage()
- func (x *Algorithm) ProtoReflect() protoreflect.Message
- func (x *Algorithm) Reset()
- func (x *Algorithm) String() string
- type AttestationResponse
- func (*AttestationResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AttestationResponse) GetCertSerialNumber() string
- func (x *AttestationResponse) GetFile() []byte
- func (*AttestationResponse) ProtoMessage()
- func (x *AttestationResponse) ProtoReflect() protoreflect.Message
- func (x *AttestationResponse) Reset()
- func (x *AttestationResponse) String() string
- type AzureAttestationToken
- func (*AzureAttestationToken) Descriptor() ([]byte, []int)deprecated
- func (x *AzureAttestationToken) GetCertSerialNumber() string
- func (x *AzureAttestationToken) GetFile() []byte
- func (*AzureAttestationToken) ProtoMessage()
- func (x *AzureAttestationToken) ProtoReflect() protoreflect.Message
- func (x *AzureAttestationToken) Reset()
- func (x *AzureAttestationToken) String() string
- type ClientStreamMessage
- func (*ClientStreamMessage) Descriptor() ([]byte, []int)deprecated
- func (x *ClientStreamMessage) GetAgentEvent() *AgentEvent
- func (x *ClientStreamMessage) GetAgentLog() *AgentLog
- func (x *ClientStreamMessage) GetAgentStateRes() *AgentStateRes
- func (x *ClientStreamMessage) GetAzureAttestationToken() *AzureAttestationToken
- func (x *ClientStreamMessage) GetMessage() isClientStreamMessage_Message
- func (x *ClientStreamMessage) GetRunRes() *RunResponse
- func (x *ClientStreamMessage) GetStopComputationRes() *StopComputationResponse
- func (x *ClientStreamMessage) GetVTPMattestationReport() *AttestationResponse
- func (*ClientStreamMessage) ProtoMessage()
- func (x *ClientStreamMessage) ProtoReflect() protoreflect.Message
- func (x *ClientStreamMessage) Reset()
- func (x *ClientStreamMessage) String() string
- type ClientStreamMessage_AgentEvent
- type ClientStreamMessage_AgentLog
- type ClientStreamMessage_AgentStateRes
- type ClientStreamMessage_AzureAttestationToken
- type ClientStreamMessage_RunRes
- type ClientStreamMessage_StopComputationRes
- type ClientStreamMessage_VTPMattestationReport
- type ComputationRunReq
- func (*ComputationRunReq) Descriptor() ([]byte, []int)deprecated
- func (x *ComputationRunReq) GetAgentConfig() *AgentConfig
- func (x *ComputationRunReq) GetAlgorithm() *Algorithm
- func (x *ComputationRunReq) GetDatasets() []*Dataset
- func (x *ComputationRunReq) GetDescription() string
- func (x *ComputationRunReq) GetId() string
- func (x *ComputationRunReq) GetName() string
- func (x *ComputationRunReq) GetResultConsumers() []*ResultConsumer
- func (*ComputationRunReq) ProtoMessage()
- func (x *ComputationRunReq) ProtoReflect() protoreflect.Message
- func (x *ComputationRunReq) Reset()
- func (x *ComputationRunReq) String() string
- type Dataset
- func (*Dataset) Descriptor() ([]byte, []int)deprecated
- func (x *Dataset) GetDecompress() bool
- func (x *Dataset) GetFilename() string
- func (x *Dataset) GetHash() []byte
- func (x *Dataset) GetKbs() *KBSConfig
- func (x *Dataset) GetSource() *Source
- func (x *Dataset) GetUserKey() []byte
- func (*Dataset) ProtoMessage()
- func (x *Dataset) ProtoReflect() protoreflect.Message
- func (x *Dataset) Reset()
- func (x *Dataset) String() string
- type DisconnectReq
- type KBSConfig
- type ResultConsumer
- type RunReqChunks
- func (*RunReqChunks) Descriptor() ([]byte, []int)deprecated
- func (x *RunReqChunks) GetData() []byte
- func (x *RunReqChunks) GetId() string
- func (x *RunReqChunks) GetIsLast() bool
- func (*RunReqChunks) ProtoMessage()
- func (x *RunReqChunks) ProtoReflect() protoreflect.Message
- func (x *RunReqChunks) Reset()
- func (x *RunReqChunks) String() string
- type RunResponse
- func (*RunResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RunResponse) GetComputationId() string
- func (x *RunResponse) GetError() string
- func (*RunResponse) ProtoMessage()
- func (x *RunResponse) ProtoReflect() protoreflect.Message
- func (x *RunResponse) Reset()
- func (x *RunResponse) String() string
- type ServerStreamMessage
- func (*ServerStreamMessage) Descriptor() ([]byte, []int)deprecated
- func (x *ServerStreamMessage) GetAgentStateReq() *AgentStateReq
- func (x *ServerStreamMessage) GetDisconnectReq() *DisconnectReq
- func (x *ServerStreamMessage) GetMessage() isServerStreamMessage_Message
- func (x *ServerStreamMessage) GetRunReq() *ComputationRunReq
- func (x *ServerStreamMessage) GetRunReqChunks() *RunReqChunks
- func (x *ServerStreamMessage) GetStopComputation() *StopComputation
- func (*ServerStreamMessage) ProtoMessage()
- func (x *ServerStreamMessage) ProtoReflect() protoreflect.Message
- func (x *ServerStreamMessage) Reset()
- func (x *ServerStreamMessage) String() string
- type ServerStreamMessage_AgentStateReq
- type ServerStreamMessage_DisconnectReq
- type ServerStreamMessage_RunReq
- type ServerStreamMessage_RunReqChunks
- type ServerStreamMessage_StopComputation
- type ServiceClient
- type ServiceServer
- type Service_ProcessClient
- type Service_ProcessServer
- type Source
- func (*Source) Descriptor() ([]byte, []int)deprecated
- func (x *Source) GetEncrypted() bool
- func (x *Source) GetKbsResourcePath() string
- func (x *Source) GetType() string
- func (x *Source) GetUrl() string
- func (*Source) ProtoMessage()
- func (x *Source) ProtoReflect() protoreflect.Message
- func (x *Source) Reset()
- func (x *Source) String() string
- type StopComputation
- type StopComputationResponse
- func (*StopComputationResponse) Descriptor() ([]byte, []int)deprecated
- func (x *StopComputationResponse) GetComputationId() string
- func (x *StopComputationResponse) GetMessage() string
- func (*StopComputationResponse) ProtoMessage()
- func (x *StopComputationResponse) ProtoReflect() protoreflect.Message
- func (x *StopComputationResponse) Reset()
- func (x *StopComputationResponse) String() string
- type UnimplementedServiceServer
- type UnsafeServiceServer
Constants ¶
const (
Service_Process_FullMethodName = "/cvms.Service/Process"
)
Variables ¶
var File_agent_cvms_cvms_proto protoreflect.FileDescriptor
var Service_ServiceDesc = grpc.ServiceDesc{ ServiceName: "cvms.Service", HandlerType: (*ServiceServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "Process", Handler: _Service_Process_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "agent/cvms/cvms.proto", }
Service_ServiceDesc is the grpc.ServiceDesc for Service service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterServiceServer ¶
func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)
Types ¶
type AgentConfig ¶
type AgentConfig struct {
Port string `protobuf:"bytes,1,opt,name=port,proto3" json:"port,omitempty"`
CertFile string `protobuf:"bytes,2,opt,name=cert_file,json=certFile,proto3" json:"cert_file,omitempty"`
KeyFile string `protobuf:"bytes,3,opt,name=key_file,json=keyFile,proto3" json:"key_file,omitempty"`
ClientCaFile string `protobuf:"bytes,4,opt,name=client_ca_file,json=clientCaFile,proto3" json:"client_ca_file,omitempty"`
ServerCaFile string `protobuf:"bytes,5,opt,name=server_ca_file,json=serverCaFile,proto3" json:"server_ca_file,omitempty"`
LogLevel string `protobuf:"bytes,6,opt,name=log_level,json=logLevel,proto3" json:"log_level,omitempty"`
AttestedTls bool `protobuf:"varint,7,opt,name=attested_tls,json=attestedTls,proto3" json:"attested_tls,omitempty"`
// contains filtered or unexported fields
}
func (*AgentConfig) Descriptor
deprecated
func (*AgentConfig) Descriptor() ([]byte, []int)
Deprecated: Use AgentConfig.ProtoReflect.Descriptor instead.
func (*AgentConfig) GetAttestedTls ¶
func (x *AgentConfig) GetAttestedTls() bool
func (*AgentConfig) GetCertFile ¶
func (x *AgentConfig) GetCertFile() string
func (*AgentConfig) GetClientCaFile ¶
func (x *AgentConfig) GetClientCaFile() string
func (*AgentConfig) GetKeyFile ¶
func (x *AgentConfig) GetKeyFile() string
func (*AgentConfig) GetLogLevel ¶
func (x *AgentConfig) GetLogLevel() string
func (*AgentConfig) GetPort ¶
func (x *AgentConfig) GetPort() string
func (*AgentConfig) GetServerCaFile ¶
func (x *AgentConfig) GetServerCaFile() string
func (*AgentConfig) ProtoMessage ¶
func (*AgentConfig) ProtoMessage()
func (*AgentConfig) ProtoReflect ¶
func (x *AgentConfig) ProtoReflect() protoreflect.Message
func (*AgentConfig) Reset ¶
func (x *AgentConfig) Reset()
func (*AgentConfig) String ¶
func (x *AgentConfig) String() string
type AgentEvent ¶
type AgentEvent struct {
EventType string `protobuf:"bytes,1,opt,name=event_type,json=eventType,proto3" json:"event_type,omitempty"`
Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
ComputationId string `protobuf:"bytes,3,opt,name=computation_id,json=computationId,proto3" json:"computation_id,omitempty"`
Details []byte `protobuf:"bytes,4,opt,name=details,proto3" json:"details,omitempty"`
Originator string `protobuf:"bytes,5,opt,name=originator,proto3" json:"originator,omitempty"`
Status string `protobuf:"bytes,6,opt,name=status,proto3" json:"status,omitempty"`
// contains filtered or unexported fields
}
func (*AgentEvent) Descriptor
deprecated
func (*AgentEvent) Descriptor() ([]byte, []int)
Deprecated: Use AgentEvent.ProtoReflect.Descriptor instead.
func (*AgentEvent) GetComputationId ¶
func (x *AgentEvent) GetComputationId() string
func (*AgentEvent) GetDetails ¶
func (x *AgentEvent) GetDetails() []byte
func (*AgentEvent) GetEventType ¶
func (x *AgentEvent) GetEventType() string
func (*AgentEvent) GetOriginator ¶
func (x *AgentEvent) GetOriginator() string
func (*AgentEvent) GetStatus ¶
func (x *AgentEvent) GetStatus() string
func (*AgentEvent) GetTimestamp ¶
func (x *AgentEvent) GetTimestamp() *timestamppb.Timestamp
func (*AgentEvent) ProtoMessage ¶
func (*AgentEvent) ProtoMessage()
func (*AgentEvent) ProtoReflect ¶
func (x *AgentEvent) ProtoReflect() protoreflect.Message
func (*AgentEvent) Reset ¶
func (x *AgentEvent) Reset()
func (*AgentEvent) String ¶
func (x *AgentEvent) String() string
type AgentLog ¶
type AgentLog struct {
Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
ComputationId string `protobuf:"bytes,2,opt,name=computation_id,json=computationId,proto3" json:"computation_id,omitempty"`
Level string `protobuf:"bytes,3,opt,name=level,proto3" json:"level,omitempty"`
Timestamp *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
// contains filtered or unexported fields
}
func (*AgentLog) Descriptor
deprecated
func (*AgentLog) GetComputationId ¶
func (*AgentLog) GetMessage ¶
func (*AgentLog) GetTimestamp ¶
func (x *AgentLog) GetTimestamp() *timestamppb.Timestamp
func (*AgentLog) ProtoMessage ¶
func (*AgentLog) ProtoMessage()
func (*AgentLog) ProtoReflect ¶
func (x *AgentLog) ProtoReflect() protoreflect.Message
type AgentStateReq ¶
type AgentStateReq struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
func (*AgentStateReq) Descriptor
deprecated
func (*AgentStateReq) Descriptor() ([]byte, []int)
Deprecated: Use AgentStateReq.ProtoReflect.Descriptor instead.
func (*AgentStateReq) GetId ¶
func (x *AgentStateReq) GetId() string
func (*AgentStateReq) ProtoMessage ¶
func (*AgentStateReq) ProtoMessage()
func (*AgentStateReq) ProtoReflect ¶
func (x *AgentStateReq) ProtoReflect() protoreflect.Message
func (*AgentStateReq) Reset ¶
func (x *AgentStateReq) Reset()
func (*AgentStateReq) String ¶
func (x *AgentStateReq) String() string
type AgentStateRes ¶
type AgentStateRes struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
State string `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"`
// contains filtered or unexported fields
}
func (*AgentStateRes) Descriptor
deprecated
func (*AgentStateRes) Descriptor() ([]byte, []int)
Deprecated: Use AgentStateRes.ProtoReflect.Descriptor instead.
func (*AgentStateRes) GetId ¶
func (x *AgentStateRes) GetId() string
func (*AgentStateRes) GetState ¶
func (x *AgentStateRes) GetState() string
func (*AgentStateRes) ProtoMessage ¶
func (*AgentStateRes) ProtoMessage()
func (*AgentStateRes) ProtoReflect ¶
func (x *AgentStateRes) ProtoReflect() protoreflect.Message
func (*AgentStateRes) Reset ¶
func (x *AgentStateRes) Reset()
func (*AgentStateRes) String ¶
func (x *AgentStateRes) String() string
type Algorithm ¶
type Algorithm struct {
Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` // should be sha3.Sum256, 32 byte length.
UserKey []byte `protobuf:"bytes,2,opt,name=userKey,proto3" json:"userKey,omitempty"`
Source *Source `protobuf:"bytes,3,opt,name=source,proto3" json:"source,omitempty"` // Optional remote source for encrypted algorithm
AlgoType string `protobuf:"bytes,4,opt,name=algo_type,json=algoType,proto3" json:"algo_type,omitempty"`
AlgoArgs []string `protobuf:"bytes,5,rep,name=algo_args,json=algoArgs,proto3" json:"algo_args,omitempty"`
Kbs *KBSConfig `protobuf:"bytes,6,opt,name=kbs,proto3" json:"kbs,omitempty"` // Optional KBS configuration override
// contains filtered or unexported fields
}
func (*Algorithm) Descriptor
deprecated
func (*Algorithm) GetAlgoArgs ¶ added in v0.9.0
func (*Algorithm) GetAlgoType ¶ added in v0.9.0
func (*Algorithm) GetUserKey ¶
func (*Algorithm) ProtoMessage ¶
func (*Algorithm) ProtoMessage()
func (*Algorithm) ProtoReflect ¶
func (x *Algorithm) ProtoReflect() protoreflect.Message
type AttestationResponse ¶ added in v0.5.1
type AttestationResponse struct {
File []byte `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"`
CertSerialNumber string `protobuf:"bytes,2,opt,name=certSerialNumber,proto3" json:"certSerialNumber,omitempty"`
// contains filtered or unexported fields
}
func (*AttestationResponse) Descriptor
deprecated
added in
v0.5.1
func (*AttestationResponse) Descriptor() ([]byte, []int)
Deprecated: Use AttestationResponse.ProtoReflect.Descriptor instead.
func (*AttestationResponse) GetCertSerialNumber ¶ added in v0.5.1
func (x *AttestationResponse) GetCertSerialNumber() string
func (*AttestationResponse) GetFile ¶ added in v0.5.1
func (x *AttestationResponse) GetFile() []byte
func (*AttestationResponse) ProtoMessage ¶ added in v0.5.1
func (*AttestationResponse) ProtoMessage()
func (*AttestationResponse) ProtoReflect ¶ added in v0.5.1
func (x *AttestationResponse) ProtoReflect() protoreflect.Message
func (*AttestationResponse) Reset ¶ added in v0.5.1
func (x *AttestationResponse) Reset()
func (*AttestationResponse) String ¶ added in v0.5.1
func (x *AttestationResponse) String() string
type AzureAttestationToken ¶ added in v0.8.0
type AzureAttestationToken struct {
File []byte `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"`
CertSerialNumber string `protobuf:"bytes,2,opt,name=certSerialNumber,proto3" json:"certSerialNumber,omitempty"`
// contains filtered or unexported fields
}
func (*AzureAttestationToken) Descriptor
deprecated
added in
v0.8.0
func (*AzureAttestationToken) Descriptor() ([]byte, []int)
Deprecated: Use AzureAttestationToken.ProtoReflect.Descriptor instead.
func (*AzureAttestationToken) GetCertSerialNumber ¶ added in v0.8.0
func (x *AzureAttestationToken) GetCertSerialNumber() string
func (*AzureAttestationToken) GetFile ¶ added in v0.8.0
func (x *AzureAttestationToken) GetFile() []byte
func (*AzureAttestationToken) ProtoMessage ¶ added in v0.8.0
func (*AzureAttestationToken) ProtoMessage()
func (*AzureAttestationToken) ProtoReflect ¶ added in v0.8.0
func (x *AzureAttestationToken) ProtoReflect() protoreflect.Message
func (*AzureAttestationToken) Reset ¶ added in v0.8.0
func (x *AzureAttestationToken) Reset()
func (*AzureAttestationToken) String ¶ added in v0.8.0
func (x *AzureAttestationToken) String() string
type ClientStreamMessage ¶
type ClientStreamMessage struct {
// Types that are valid to be assigned to Message:
//
// *ClientStreamMessage_AgentLog
// *ClientStreamMessage_AgentEvent
// *ClientStreamMessage_RunRes
// *ClientStreamMessage_StopComputationRes
// *ClientStreamMessage_AgentStateRes
// *ClientStreamMessage_VTPMattestationReport
// *ClientStreamMessage_AzureAttestationToken
Message isClientStreamMessage_Message `protobuf_oneof:"message"`
// contains filtered or unexported fields
}
func (*ClientStreamMessage) Descriptor
deprecated
func (*ClientStreamMessage) Descriptor() ([]byte, []int)
Deprecated: Use ClientStreamMessage.ProtoReflect.Descriptor instead.
func (*ClientStreamMessage) GetAgentEvent ¶
func (x *ClientStreamMessage) GetAgentEvent() *AgentEvent
func (*ClientStreamMessage) GetAgentLog ¶
func (x *ClientStreamMessage) GetAgentLog() *AgentLog
func (*ClientStreamMessage) GetAgentStateRes ¶
func (x *ClientStreamMessage) GetAgentStateRes() *AgentStateRes
func (*ClientStreamMessage) GetAzureAttestationToken ¶ added in v0.8.0
func (x *ClientStreamMessage) GetAzureAttestationToken() *AzureAttestationToken
func (*ClientStreamMessage) GetMessage ¶
func (x *ClientStreamMessage) GetMessage() isClientStreamMessage_Message
func (*ClientStreamMessage) GetRunRes ¶
func (x *ClientStreamMessage) GetRunRes() *RunResponse
func (*ClientStreamMessage) GetStopComputationRes ¶
func (x *ClientStreamMessage) GetStopComputationRes() *StopComputationResponse
func (*ClientStreamMessage) GetVTPMattestationReport ¶ added in v0.5.1
func (x *ClientStreamMessage) GetVTPMattestationReport() *AttestationResponse
func (*ClientStreamMessage) ProtoMessage ¶
func (*ClientStreamMessage) ProtoMessage()
func (*ClientStreamMessage) ProtoReflect ¶
func (x *ClientStreamMessage) ProtoReflect() protoreflect.Message
func (*ClientStreamMessage) Reset ¶
func (x *ClientStreamMessage) Reset()
func (*ClientStreamMessage) String ¶
func (x *ClientStreamMessage) String() string
type ClientStreamMessage_AgentEvent ¶
type ClientStreamMessage_AgentEvent struct {
AgentEvent *AgentEvent `protobuf:"bytes,2,opt,name=agent_event,json=agentEvent,proto3,oneof"`
}
type ClientStreamMessage_AgentLog ¶
type ClientStreamMessage_AgentLog struct {
AgentLog *AgentLog `protobuf:"bytes,1,opt,name=agent_log,json=agentLog,proto3,oneof"`
}
type ClientStreamMessage_AgentStateRes ¶
type ClientStreamMessage_AgentStateRes struct {
AgentStateRes *AgentStateRes `protobuf:"bytes,5,opt,name=agentStateRes,proto3,oneof"`
}
type ClientStreamMessage_AzureAttestationToken ¶ added in v0.8.0
type ClientStreamMessage_AzureAttestationToken struct {
AzureAttestationToken *AzureAttestationToken `protobuf:"bytes,7,opt,name=azureAttestationToken,proto3,oneof"`
}
type ClientStreamMessage_RunRes ¶
type ClientStreamMessage_RunRes struct {
RunRes *RunResponse `protobuf:"bytes,3,opt,name=run_res,json=runRes,proto3,oneof"`
}
type ClientStreamMessage_StopComputationRes ¶
type ClientStreamMessage_StopComputationRes struct {
StopComputationRes *StopComputationResponse `protobuf:"bytes,4,opt,name=stopComputationRes,proto3,oneof"`
}
type ClientStreamMessage_VTPMattestationReport ¶ added in v0.5.1
type ClientStreamMessage_VTPMattestationReport struct {
VTPMattestationReport *AttestationResponse `protobuf:"bytes,6,opt,name=vTPMattestationReport,proto3,oneof"`
}
type ComputationRunReq ¶
type ComputationRunReq struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
Datasets []*Dataset `protobuf:"bytes,4,rep,name=datasets,proto3" json:"datasets,omitempty"`
Algorithm *Algorithm `protobuf:"bytes,5,opt,name=algorithm,proto3" json:"algorithm,omitempty"`
ResultConsumers []*ResultConsumer `protobuf:"bytes,6,rep,name=result_consumers,json=resultConsumers,proto3" json:"result_consumers,omitempty"`
AgentConfig *AgentConfig `protobuf:"bytes,7,opt,name=agent_config,json=agentConfig,proto3" json:"agent_config,omitempty"`
// contains filtered or unexported fields
}
func (*ComputationRunReq) Descriptor
deprecated
func (*ComputationRunReq) Descriptor() ([]byte, []int)
Deprecated: Use ComputationRunReq.ProtoReflect.Descriptor instead.
func (*ComputationRunReq) GetAgentConfig ¶
func (x *ComputationRunReq) GetAgentConfig() *AgentConfig
func (*ComputationRunReq) GetAlgorithm ¶
func (x *ComputationRunReq) GetAlgorithm() *Algorithm
func (*ComputationRunReq) GetDatasets ¶
func (x *ComputationRunReq) GetDatasets() []*Dataset
func (*ComputationRunReq) GetDescription ¶
func (x *ComputationRunReq) GetDescription() string
func (*ComputationRunReq) GetId ¶
func (x *ComputationRunReq) GetId() string
func (*ComputationRunReq) GetName ¶
func (x *ComputationRunReq) GetName() string
func (*ComputationRunReq) GetResultConsumers ¶
func (x *ComputationRunReq) GetResultConsumers() []*ResultConsumer
func (*ComputationRunReq) ProtoMessage ¶
func (*ComputationRunReq) ProtoMessage()
func (*ComputationRunReq) ProtoReflect ¶
func (x *ComputationRunReq) ProtoReflect() protoreflect.Message
func (*ComputationRunReq) Reset ¶
func (x *ComputationRunReq) Reset()
func (*ComputationRunReq) String ¶
func (x *ComputationRunReq) String() string
type Dataset ¶
type Dataset struct {
Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` // should be sha3.Sum256, 32 byte length.
UserKey []byte `protobuf:"bytes,2,opt,name=userKey,proto3" json:"userKey,omitempty"`
Filename string `protobuf:"bytes,3,opt,name=filename,proto3" json:"filename,omitempty"`
Source *Source `protobuf:"bytes,4,opt,name=source,proto3" json:"source,omitempty"` // Optional remote source for encrypted dataset
Decompress bool `protobuf:"varint,5,opt,name=decompress,proto3" json:"decompress,omitempty"`
Kbs *KBSConfig `protobuf:"bytes,6,opt,name=kbs,proto3" json:"kbs,omitempty"` // Optional KBS configuration override
// contains filtered or unexported fields
}
func (*Dataset) Descriptor
deprecated
func (*Dataset) GetDecompress ¶ added in v0.9.0
func (*Dataset) GetFilename ¶
func (*Dataset) GetUserKey ¶
func (*Dataset) ProtoMessage ¶
func (*Dataset) ProtoMessage()
func (*Dataset) ProtoReflect ¶
func (x *Dataset) ProtoReflect() protoreflect.Message
type DisconnectReq ¶ added in v0.5.2
type DisconnectReq struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
func (*DisconnectReq) Descriptor
deprecated
added in
v0.5.2
func (*DisconnectReq) Descriptor() ([]byte, []int)
Deprecated: Use DisconnectReq.ProtoReflect.Descriptor instead.
func (*DisconnectReq) GetId ¶ added in v0.5.2
func (x *DisconnectReq) GetId() string
func (*DisconnectReq) ProtoMessage ¶ added in v0.5.2
func (*DisconnectReq) ProtoMessage()
func (*DisconnectReq) ProtoReflect ¶ added in v0.5.2
func (x *DisconnectReq) ProtoReflect() protoreflect.Message
func (*DisconnectReq) Reset ¶ added in v0.5.2
func (x *DisconnectReq) Reset()
func (*DisconnectReq) String ¶ added in v0.5.2
func (x *DisconnectReq) String() string
type KBSConfig ¶ added in v0.9.0
type KBSConfig struct {
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` // KBS endpoint URL (e.g., "https://kbs.example.com")
Enabled bool `protobuf:"varint,2,opt,name=enabled,proto3" json:"enabled,omitempty"` // Whether to use KBS for key retrieval
// contains filtered or unexported fields
}
func (*KBSConfig) Descriptor
deprecated
added in
v0.9.0
func (*KBSConfig) GetEnabled ¶ added in v0.9.0
func (*KBSConfig) ProtoMessage ¶ added in v0.9.0
func (*KBSConfig) ProtoMessage()
func (*KBSConfig) ProtoReflect ¶ added in v0.9.0
func (x *KBSConfig) ProtoReflect() protoreflect.Message
type ResultConsumer ¶
type ResultConsumer struct {
UserKey []byte `protobuf:"bytes,1,opt,name=userKey,proto3" json:"userKey,omitempty"`
// contains filtered or unexported fields
}
func (*ResultConsumer) Descriptor
deprecated
func (*ResultConsumer) Descriptor() ([]byte, []int)
Deprecated: Use ResultConsumer.ProtoReflect.Descriptor instead.
func (*ResultConsumer) GetUserKey ¶
func (x *ResultConsumer) GetUserKey() []byte
func (*ResultConsumer) ProtoMessage ¶
func (*ResultConsumer) ProtoMessage()
func (*ResultConsumer) ProtoReflect ¶
func (x *ResultConsumer) ProtoReflect() protoreflect.Message
func (*ResultConsumer) Reset ¶
func (x *ResultConsumer) Reset()
func (*ResultConsumer) String ¶
func (x *ResultConsumer) String() string
type RunReqChunks ¶
type RunReqChunks struct {
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
IsLast bool `protobuf:"varint,3,opt,name=is_last,json=isLast,proto3" json:"is_last,omitempty"`
// contains filtered or unexported fields
}
func (*RunReqChunks) Descriptor
deprecated
func (*RunReqChunks) Descriptor() ([]byte, []int)
Deprecated: Use RunReqChunks.ProtoReflect.Descriptor instead.
func (*RunReqChunks) GetData ¶
func (x *RunReqChunks) GetData() []byte
func (*RunReqChunks) GetId ¶
func (x *RunReqChunks) GetId() string
func (*RunReqChunks) GetIsLast ¶
func (x *RunReqChunks) GetIsLast() bool
func (*RunReqChunks) ProtoMessage ¶
func (*RunReqChunks) ProtoMessage()
func (*RunReqChunks) ProtoReflect ¶
func (x *RunReqChunks) ProtoReflect() protoreflect.Message
func (*RunReqChunks) Reset ¶
func (x *RunReqChunks) Reset()
func (*RunReqChunks) String ¶
func (x *RunReqChunks) String() string
type RunResponse ¶
type RunResponse struct {
ComputationId string `protobuf:"bytes,1,opt,name=computation_id,json=computationId,proto3" json:"computation_id,omitempty"`
Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
// contains filtered or unexported fields
}
func (*RunResponse) Descriptor
deprecated
func (*RunResponse) Descriptor() ([]byte, []int)
Deprecated: Use RunResponse.ProtoReflect.Descriptor instead.
func (*RunResponse) GetComputationId ¶
func (x *RunResponse) GetComputationId() string
func (*RunResponse) GetError ¶
func (x *RunResponse) GetError() string
func (*RunResponse) ProtoMessage ¶
func (*RunResponse) ProtoMessage()
func (*RunResponse) ProtoReflect ¶
func (x *RunResponse) ProtoReflect() protoreflect.Message
func (*RunResponse) Reset ¶
func (x *RunResponse) Reset()
func (*RunResponse) String ¶
func (x *RunResponse) String() string
type ServerStreamMessage ¶
type ServerStreamMessage struct {
// Types that are valid to be assigned to Message:
//
// *ServerStreamMessage_RunReqChunks
// *ServerStreamMessage_RunReq
// *ServerStreamMessage_StopComputation
// *ServerStreamMessage_AgentStateReq
// *ServerStreamMessage_DisconnectReq
Message isServerStreamMessage_Message `protobuf_oneof:"message"`
// contains filtered or unexported fields
}
func (*ServerStreamMessage) Descriptor
deprecated
func (*ServerStreamMessage) Descriptor() ([]byte, []int)
Deprecated: Use ServerStreamMessage.ProtoReflect.Descriptor instead.
func (*ServerStreamMessage) GetAgentStateReq ¶
func (x *ServerStreamMessage) GetAgentStateReq() *AgentStateReq
func (*ServerStreamMessage) GetDisconnectReq ¶ added in v0.5.2
func (x *ServerStreamMessage) GetDisconnectReq() *DisconnectReq
func (*ServerStreamMessage) GetMessage ¶
func (x *ServerStreamMessage) GetMessage() isServerStreamMessage_Message
func (*ServerStreamMessage) GetRunReq ¶
func (x *ServerStreamMessage) GetRunReq() *ComputationRunReq
func (*ServerStreamMessage) GetRunReqChunks ¶
func (x *ServerStreamMessage) GetRunReqChunks() *RunReqChunks
func (*ServerStreamMessage) GetStopComputation ¶
func (x *ServerStreamMessage) GetStopComputation() *StopComputation
func (*ServerStreamMessage) ProtoMessage ¶
func (*ServerStreamMessage) ProtoMessage()
func (*ServerStreamMessage) ProtoReflect ¶
func (x *ServerStreamMessage) ProtoReflect() protoreflect.Message
func (*ServerStreamMessage) Reset ¶
func (x *ServerStreamMessage) Reset()
func (*ServerStreamMessage) String ¶
func (x *ServerStreamMessage) String() string
type ServerStreamMessage_AgentStateReq ¶
type ServerStreamMessage_AgentStateReq struct {
AgentStateReq *AgentStateReq `protobuf:"bytes,4,opt,name=agentStateReq,proto3,oneof"`
}
type ServerStreamMessage_DisconnectReq ¶ added in v0.5.2
type ServerStreamMessage_DisconnectReq struct {
DisconnectReq *DisconnectReq `protobuf:"bytes,5,opt,name=disconnectReq,proto3,oneof"`
}
type ServerStreamMessage_RunReq ¶
type ServerStreamMessage_RunReq struct {
RunReq *ComputationRunReq `protobuf:"bytes,2,opt,name=runReq,proto3,oneof"`
}
type ServerStreamMessage_RunReqChunks ¶
type ServerStreamMessage_RunReqChunks struct {
RunReqChunks *RunReqChunks `protobuf:"bytes,1,opt,name=runReqChunks,proto3,oneof"`
}
type ServerStreamMessage_StopComputation ¶
type ServerStreamMessage_StopComputation struct {
StopComputation *StopComputation `protobuf:"bytes,3,opt,name=stopComputation,proto3,oneof"`
}
type ServiceClient ¶
type ServiceClient interface {
Process(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[ClientStreamMessage, ServerStreamMessage], error)
}
ServiceClient is the client API for Service 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 NewServiceClient ¶
func NewServiceClient(cc grpc.ClientConnInterface) ServiceClient
type ServiceServer ¶
type ServiceServer interface {
Process(grpc.BidiStreamingServer[ClientStreamMessage, ServerStreamMessage]) error
// contains filtered or unexported methods
}
ServiceServer is the server API for Service service. All implementations must embed UnimplementedServiceServer for forward compatibility.
type Service_ProcessClient ¶
type Service_ProcessClient = grpc.BidiStreamingClient[ClientStreamMessage, ServerStreamMessage]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type Service_ProcessServer ¶
type Service_ProcessServer = grpc.BidiStreamingServer[ClientStreamMessage, ServerStreamMessage]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type Source ¶ added in v0.9.0
type Source struct {
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` // Type of source: "oci-image", "s3", "gcs", "https", "http"
Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` // URL of the resource (e.g., docker://registry/repo:tag, s3://bucket/key, https://host/path)
KbsResourcePath string `protobuf:"bytes,3,opt,name=kbs_resource_path,json=kbsResourcePath,proto3" json:"kbs_resource_path,omitempty"` // Path to decryption key in KBS (e.g., "default/key/my-key")
Encrypted bool `protobuf:"varint,4,opt,name=encrypted,proto3" json:"encrypted,omitempty"` // Whether the resource is encrypted (requires KBS)
// contains filtered or unexported fields
}
func (*Source) Descriptor
deprecated
added in
v0.9.0
func (*Source) GetEncrypted ¶ added in v0.9.0
func (*Source) GetKbsResourcePath ¶ added in v0.9.0
func (*Source) ProtoMessage ¶ added in v0.9.0
func (*Source) ProtoMessage()
func (*Source) ProtoReflect ¶ added in v0.9.0
func (x *Source) ProtoReflect() protoreflect.Message
type StopComputation ¶
type StopComputation struct {
ComputationId string `protobuf:"bytes,1,opt,name=computation_id,json=computationId,proto3" json:"computation_id,omitempty"`
// contains filtered or unexported fields
}
func (*StopComputation) Descriptor
deprecated
func (*StopComputation) Descriptor() ([]byte, []int)
Deprecated: Use StopComputation.ProtoReflect.Descriptor instead.
func (*StopComputation) GetComputationId ¶
func (x *StopComputation) GetComputationId() string
func (*StopComputation) ProtoMessage ¶
func (*StopComputation) ProtoMessage()
func (*StopComputation) ProtoReflect ¶
func (x *StopComputation) ProtoReflect() protoreflect.Message
func (*StopComputation) Reset ¶
func (x *StopComputation) Reset()
func (*StopComputation) String ¶
func (x *StopComputation) String() string
type StopComputationResponse ¶
type StopComputationResponse struct {
ComputationId string `protobuf:"bytes,1,opt,name=computation_id,json=computationId,proto3" json:"computation_id,omitempty"`
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
// contains filtered or unexported fields
}
func (*StopComputationResponse) Descriptor
deprecated
func (*StopComputationResponse) Descriptor() ([]byte, []int)
Deprecated: Use StopComputationResponse.ProtoReflect.Descriptor instead.
func (*StopComputationResponse) GetComputationId ¶
func (x *StopComputationResponse) GetComputationId() string
func (*StopComputationResponse) GetMessage ¶
func (x *StopComputationResponse) GetMessage() string
func (*StopComputationResponse) ProtoMessage ¶
func (*StopComputationResponse) ProtoMessage()
func (*StopComputationResponse) ProtoReflect ¶
func (x *StopComputationResponse) ProtoReflect() protoreflect.Message
func (*StopComputationResponse) Reset ¶
func (x *StopComputationResponse) Reset()
func (*StopComputationResponse) String ¶
func (x *StopComputationResponse) String() string
type UnimplementedServiceServer ¶
type UnimplementedServiceServer struct{}
UnimplementedServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedServiceServer) Process ¶
func (UnimplementedServiceServer) Process(grpc.BidiStreamingServer[ClientStreamMessage, ServerStreamMessage]) error
type UnsafeServiceServer ¶
type UnsafeServiceServer interface {
// contains filtered or unexported methods
}
UnsafeServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ServiceServer will result in compilation errors.