Documentation ¶
Overview ¶
Copyright (c) Ultraviolet SPDX-License-Identifier: Apache-2.0
Copyright (c) Ultraviolet SPDX-License-Identifier: Apache-2.0
Index ¶
- Constants
- Variables
- func RegisterManagerServiceServer(s grpc.ServiceRegistrar, srv ManagerServiceServer)
- 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) GetHost() 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 Algorithm
- type AttestationPolicy
- func (*AttestationPolicy) Descriptor() ([]byte, []int)deprecated
- func (x *AttestationPolicy) GetId() string
- func (x *AttestationPolicy) GetInfo() []byte
- func (*AttestationPolicy) ProtoMessage()
- func (x *AttestationPolicy) ProtoReflect() protoreflect.Message
- func (x *AttestationPolicy) Reset()
- func (x *AttestationPolicy) String() string
- type AttestationPolicyReq
- func (*AttestationPolicyReq) Descriptor() ([]byte, []int)deprecated
- func (x *AttestationPolicyReq) GetId() string
- func (*AttestationPolicyReq) ProtoMessage()
- func (x *AttestationPolicyReq) ProtoReflect() protoreflect.Message
- func (x *AttestationPolicyReq) Reset()
- func (x *AttestationPolicyReq) String() string
- type ClientStreamMessage
- func (*ClientStreamMessage) Descriptor() ([]byte, []int)deprecated
- func (x *ClientStreamMessage) GetAgentEvent() *AgentEvent
- func (x *ClientStreamMessage) GetAgentLog() *AgentLog
- func (x *ClientStreamMessage) GetAttestationPolicy() *AttestationPolicy
- func (m *ClientStreamMessage) GetMessage() isClientStreamMessage_Message
- func (x *ClientStreamMessage) GetRunRes() *RunResponse
- func (x *ClientStreamMessage) GetStopComputationRes() *StopComputationResponse
- func (x *ClientStreamMessage) GetSvmInfo() *SVMInfo
- 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_AttestationPolicy
- type ClientStreamMessage_RunRes
- type ClientStreamMessage_StopComputationRes
- type ClientStreamMessage_SvmInfo
- 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) GetFilename() string
- func (x *Dataset) GetHash() []byte
- func (x *Dataset) GetUserKey() []byte
- func (*Dataset) ProtoMessage()
- func (x *Dataset) ProtoReflect() protoreflect.Message
- func (x *Dataset) Reset()
- func (x *Dataset) String() string
- type ManagerServiceClient
- type ManagerServiceServer
- type ManagerService_ProcessClient
- type ManagerService_ProcessServer
- 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) GetAgentPort() string
- func (x *RunResponse) GetComputationId() string
- func (*RunResponse) ProtoMessage()
- func (x *RunResponse) ProtoReflect() protoreflect.Message
- func (x *RunResponse) Reset()
- func (x *RunResponse) String() string
- type SVMInfo
- func (*SVMInfo) Descriptor() ([]byte, []int)deprecated
- func (x *SVMInfo) GetCpuNum() int32
- func (x *SVMInfo) GetCpuType() string
- func (x *SVMInfo) GetEosVersion() string
- func (x *SVMInfo) GetId() string
- func (x *SVMInfo) GetKernelCmd() string
- func (x *SVMInfo) GetOvmfVersion() string
- func (*SVMInfo) ProtoMessage()
- func (x *SVMInfo) ProtoReflect() protoreflect.Message
- func (x *SVMInfo) Reset()
- func (x *SVMInfo) String() string
- type SVMInfoReq
- type ServerStreamMessage
- func (*ServerStreamMessage) Descriptor() ([]byte, []int)deprecated
- func (x *ServerStreamMessage) GetAttestationPolicyReq() *AttestationPolicyReq
- func (m *ServerStreamMessage) GetMessage() isServerStreamMessage_Message
- func (x *ServerStreamMessage) GetRunReq() *ComputationRunReq
- func (x *ServerStreamMessage) GetRunReqChunks() *RunReqChunks
- func (x *ServerStreamMessage) GetStopComputation() *StopComputation
- func (x *ServerStreamMessage) GetSvmInfoReq() *SVMInfoReq
- func (x *ServerStreamMessage) GetTerminateReq() *Terminate
- func (*ServerStreamMessage) ProtoMessage()
- func (x *ServerStreamMessage) ProtoReflect() protoreflect.Message
- func (x *ServerStreamMessage) Reset()
- func (x *ServerStreamMessage) String() string
- type ServerStreamMessage_AttestationPolicyReq
- type ServerStreamMessage_RunReq
- type ServerStreamMessage_RunReqChunks
- type ServerStreamMessage_StopComputation
- type ServerStreamMessage_SvmInfoReq
- type ServerStreamMessage_TerminateReq
- type Service
- 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 Terminate
- type UnimplementedManagerServiceServer
- type UnsafeManagerServiceServer
Constants ¶
const (
ManagerService_Process_FullMethodName = "/manager.ManagerService/Process"
)
Variables ¶
var ( // ErrMalformedEntity indicates malformed entity specification (e.g. // invalid username or password). ErrMalformedEntity = errors.New("malformed entity specification") // when accessing a protected resource. ErrUnauthorizedAccess = errors.New("missing or invalid credentials provided") // ErrNotFound indicates a non-existent entity request. ErrNotFound = errors.New("entity not found") // ErrFailedToAllocatePort indicates no free port was found on host. ErrFailedToAllocatePort = errors.New("failed to allocate free port on host") // ErrFailedToCalculateHash indicates that agent computation returned an error while calculating the hash of the computation. ErrFailedToCalculateHash = errors.New("error while calculating the hash of the computation") )
var File_manager_manager_proto protoreflect.FileDescriptor
var ManagerService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "manager.ManagerService", HandlerType: (*ManagerServiceServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "Process", Handler: _ManagerService_Process_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "manager/manager.proto", }
ManagerService_ServiceDesc is the grpc.ServiceDesc for ManagerService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterManagerServiceServer ¶
func RegisterManagerServiceServer(s grpc.ServiceRegistrar, srv ManagerServiceServer)
Types ¶
type AgentConfig ¶ added in v0.4.0
type AgentConfig struct { Port string `protobuf:"bytes,1,opt,name=port,proto3" json:"port,omitempty"` Host string `protobuf:"bytes,2,opt,name=host,proto3" json:"host,omitempty"` CertFile string `protobuf:"bytes,3,opt,name=cert_file,json=certFile,proto3" json:"cert_file,omitempty"` KeyFile string `protobuf:"bytes,4,opt,name=key_file,json=keyFile,proto3" json:"key_file,omitempty"` ClientCaFile string `protobuf:"bytes,5,opt,name=client_ca_file,json=clientCaFile,proto3" json:"client_ca_file,omitempty"` ServerCaFile string `protobuf:"bytes,6,opt,name=server_ca_file,json=serverCaFile,proto3" json:"server_ca_file,omitempty"` LogLevel string `protobuf:"bytes,7,opt,name=log_level,json=logLevel,proto3" json:"log_level,omitempty"` AttestedTls bool `protobuf:"varint,8,opt,name=attested_tls,json=attestedTls,proto3" json:"attested_tls,omitempty"` // contains filtered or unexported fields }
func (*AgentConfig) Descriptor
deprecated
added in
v0.4.0
func (*AgentConfig) Descriptor() ([]byte, []int)
Deprecated: Use AgentConfig.ProtoReflect.Descriptor instead.
func (*AgentConfig) GetAttestedTls ¶ added in v0.4.0
func (x *AgentConfig) GetAttestedTls() bool
func (*AgentConfig) GetCertFile ¶ added in v0.4.0
func (x *AgentConfig) GetCertFile() string
func (*AgentConfig) GetClientCaFile ¶ added in v0.4.0
func (x *AgentConfig) GetClientCaFile() string
func (*AgentConfig) GetHost ¶ added in v0.4.0
func (x *AgentConfig) GetHost() string
func (*AgentConfig) GetKeyFile ¶ added in v0.4.0
func (x *AgentConfig) GetKeyFile() string
func (*AgentConfig) GetLogLevel ¶ added in v0.4.0
func (x *AgentConfig) GetLogLevel() string
func (*AgentConfig) GetPort ¶ added in v0.4.0
func (x *AgentConfig) GetPort() string
func (*AgentConfig) GetServerCaFile ¶ added in v0.4.0
func (x *AgentConfig) GetServerCaFile() string
func (*AgentConfig) ProtoMessage ¶ added in v0.4.0
func (*AgentConfig) ProtoMessage()
func (*AgentConfig) ProtoReflect ¶ added in v0.4.0
func (x *AgentConfig) ProtoReflect() protoreflect.Message
func (*AgentConfig) Reset ¶ added in v0.4.0
func (x *AgentConfig) Reset()
func (*AgentConfig) String ¶ added in v0.4.0
func (x *AgentConfig) String() string
type AgentEvent ¶ added in v0.4.0
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
added in
v0.4.0
func (*AgentEvent) Descriptor() ([]byte, []int)
Deprecated: Use AgentEvent.ProtoReflect.Descriptor instead.
func (*AgentEvent) GetComputationId ¶ added in v0.4.0
func (x *AgentEvent) GetComputationId() string
func (*AgentEvent) GetDetails ¶ added in v0.4.0
func (x *AgentEvent) GetDetails() []byte
func (*AgentEvent) GetEventType ¶ added in v0.4.0
func (x *AgentEvent) GetEventType() string
func (*AgentEvent) GetOriginator ¶ added in v0.4.0
func (x *AgentEvent) GetOriginator() string
func (*AgentEvent) GetStatus ¶ added in v0.4.0
func (x *AgentEvent) GetStatus() string
func (*AgentEvent) GetTimestamp ¶ added in v0.4.0
func (x *AgentEvent) GetTimestamp() *timestamppb.Timestamp
func (*AgentEvent) ProtoMessage ¶ added in v0.4.0
func (*AgentEvent) ProtoMessage()
func (*AgentEvent) ProtoReflect ¶ added in v0.4.0
func (x *AgentEvent) ProtoReflect() protoreflect.Message
func (*AgentEvent) Reset ¶ added in v0.4.0
func (x *AgentEvent) Reset()
func (*AgentEvent) String ¶ added in v0.4.0
func (x *AgentEvent) String() string
type AgentLog ¶ added in v0.4.0
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
added in
v0.4.0
func (*AgentLog) GetComputationId ¶ added in v0.4.0
func (*AgentLog) GetMessage ¶ added in v0.4.0
func (*AgentLog) GetTimestamp ¶ added in v0.4.0
func (x *AgentLog) GetTimestamp() *timestamppb.Timestamp
func (*AgentLog) ProtoMessage ¶ added in v0.4.0
func (*AgentLog) ProtoMessage()
func (*AgentLog) ProtoReflect ¶ added in v0.4.0
func (x *AgentLog) ProtoReflect() protoreflect.Message
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"` // contains filtered or unexported fields }
func (*Algorithm) Descriptor
deprecated
func (*Algorithm) GetUserKey ¶ added in v0.4.0
func (*Algorithm) ProtoMessage ¶
func (*Algorithm) ProtoMessage()
func (*Algorithm) ProtoReflect ¶
func (x *Algorithm) ProtoReflect() protoreflect.Message
type AttestationPolicy ¶ added in v0.4.0
type AttestationPolicy struct { Info []byte `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*AttestationPolicy) Descriptor
deprecated
added in
v0.4.0
func (*AttestationPolicy) Descriptor() ([]byte, []int)
Deprecated: Use AttestationPolicy.ProtoReflect.Descriptor instead.
func (*AttestationPolicy) GetId ¶ added in v0.4.0
func (x *AttestationPolicy) GetId() string
func (*AttestationPolicy) GetInfo ¶ added in v0.4.0
func (x *AttestationPolicy) GetInfo() []byte
func (*AttestationPolicy) ProtoMessage ¶ added in v0.4.0
func (*AttestationPolicy) ProtoMessage()
func (*AttestationPolicy) ProtoReflect ¶ added in v0.4.0
func (x *AttestationPolicy) ProtoReflect() protoreflect.Message
func (*AttestationPolicy) Reset ¶ added in v0.4.0
func (x *AttestationPolicy) Reset()
func (*AttestationPolicy) String ¶ added in v0.4.0
func (x *AttestationPolicy) String() string
type AttestationPolicyReq ¶ added in v0.4.0
type AttestationPolicyReq struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*AttestationPolicyReq) Descriptor
deprecated
added in
v0.4.0
func (*AttestationPolicyReq) Descriptor() ([]byte, []int)
Deprecated: Use AttestationPolicyReq.ProtoReflect.Descriptor instead.
func (*AttestationPolicyReq) GetId ¶ added in v0.4.0
func (x *AttestationPolicyReq) GetId() string
func (*AttestationPolicyReq) ProtoMessage ¶ added in v0.4.0
func (*AttestationPolicyReq) ProtoMessage()
func (*AttestationPolicyReq) ProtoReflect ¶ added in v0.4.0
func (x *AttestationPolicyReq) ProtoReflect() protoreflect.Message
func (*AttestationPolicyReq) Reset ¶ added in v0.4.0
func (x *AttestationPolicyReq) Reset()
func (*AttestationPolicyReq) String ¶ added in v0.4.0
func (x *AttestationPolicyReq) String() string
type ClientStreamMessage ¶ added in v0.4.0
type ClientStreamMessage struct { // Types that are assignable to Message: // // *ClientStreamMessage_AgentLog // *ClientStreamMessage_AgentEvent // *ClientStreamMessage_RunRes // *ClientStreamMessage_AttestationPolicy // *ClientStreamMessage_StopComputationRes // *ClientStreamMessage_SvmInfo Message isClientStreamMessage_Message `protobuf_oneof:"message"` // contains filtered or unexported fields }
func (*ClientStreamMessage) Descriptor
deprecated
added in
v0.4.0
func (*ClientStreamMessage) Descriptor() ([]byte, []int)
Deprecated: Use ClientStreamMessage.ProtoReflect.Descriptor instead.
func (*ClientStreamMessage) GetAgentEvent ¶ added in v0.4.0
func (x *ClientStreamMessage) GetAgentEvent() *AgentEvent
func (*ClientStreamMessage) GetAgentLog ¶ added in v0.4.0
func (x *ClientStreamMessage) GetAgentLog() *AgentLog
func (*ClientStreamMessage) GetAttestationPolicy ¶ added in v0.4.0
func (x *ClientStreamMessage) GetAttestationPolicy() *AttestationPolicy
func (*ClientStreamMessage) GetMessage ¶ added in v0.4.0
func (m *ClientStreamMessage) GetMessage() isClientStreamMessage_Message
func (*ClientStreamMessage) GetRunRes ¶ added in v0.4.0
func (x *ClientStreamMessage) GetRunRes() *RunResponse
func (*ClientStreamMessage) GetStopComputationRes ¶ added in v0.4.0
func (x *ClientStreamMessage) GetStopComputationRes() *StopComputationResponse
func (*ClientStreamMessage) GetSvmInfo ¶ added in v0.4.0
func (x *ClientStreamMessage) GetSvmInfo() *SVMInfo
func (*ClientStreamMessage) ProtoMessage ¶ added in v0.4.0
func (*ClientStreamMessage) ProtoMessage()
func (*ClientStreamMessage) ProtoReflect ¶ added in v0.4.0
func (x *ClientStreamMessage) ProtoReflect() protoreflect.Message
func (*ClientStreamMessage) Reset ¶ added in v0.4.0
func (x *ClientStreamMessage) Reset()
func (*ClientStreamMessage) String ¶ added in v0.4.0
func (x *ClientStreamMessage) String() string
type ClientStreamMessage_AgentEvent ¶ added in v0.4.0
type ClientStreamMessage_AgentEvent struct {
AgentEvent *AgentEvent `protobuf:"bytes,2,opt,name=agent_event,json=agentEvent,proto3,oneof"`
}
type ClientStreamMessage_AgentLog ¶ added in v0.4.0
type ClientStreamMessage_AgentLog struct {
AgentLog *AgentLog `protobuf:"bytes,1,opt,name=agent_log,json=agentLog,proto3,oneof"`
}
type ClientStreamMessage_AttestationPolicy ¶ added in v0.4.0
type ClientStreamMessage_AttestationPolicy struct {
AttestationPolicy *AttestationPolicy `protobuf:"bytes,4,opt,name=attestationPolicy,proto3,oneof"`
}
type ClientStreamMessage_RunRes ¶ added in v0.4.0
type ClientStreamMessage_RunRes struct {
RunRes *RunResponse `protobuf:"bytes,3,opt,name=run_res,json=runRes,proto3,oneof"`
}
type ClientStreamMessage_StopComputationRes ¶ added in v0.4.0
type ClientStreamMessage_StopComputationRes struct {
StopComputationRes *StopComputationResponse `protobuf:"bytes,5,opt,name=stopComputationRes,proto3,oneof"`
}
type ClientStreamMessage_SvmInfo ¶ added in v0.4.0
type ClientStreamMessage_SvmInfo struct {
SvmInfo *SVMInfo `protobuf:"bytes,6,opt,name=svm_info,json=svmInfo,proto3,oneof"`
}
type ComputationRunReq ¶ added in v0.4.0
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
added in
v0.4.0
func (*ComputationRunReq) Descriptor() ([]byte, []int)
Deprecated: Use ComputationRunReq.ProtoReflect.Descriptor instead.
func (*ComputationRunReq) GetAgentConfig ¶ added in v0.4.0
func (x *ComputationRunReq) GetAgentConfig() *AgentConfig
func (*ComputationRunReq) GetAlgorithm ¶ added in v0.4.0
func (x *ComputationRunReq) GetAlgorithm() *Algorithm
func (*ComputationRunReq) GetDatasets ¶ added in v0.4.0
func (x *ComputationRunReq) GetDatasets() []*Dataset
func (*ComputationRunReq) GetDescription ¶ added in v0.4.0
func (x *ComputationRunReq) GetDescription() string
func (*ComputationRunReq) GetId ¶ added in v0.4.0
func (x *ComputationRunReq) GetId() string
func (*ComputationRunReq) GetName ¶ added in v0.4.0
func (x *ComputationRunReq) GetName() string
func (*ComputationRunReq) GetResultConsumers ¶ added in v0.4.0
func (x *ComputationRunReq) GetResultConsumers() []*ResultConsumer
func (*ComputationRunReq) ProtoMessage ¶ added in v0.4.0
func (*ComputationRunReq) ProtoMessage()
func (*ComputationRunReq) ProtoReflect ¶ added in v0.4.0
func (x *ComputationRunReq) ProtoReflect() protoreflect.Message
func (*ComputationRunReq) Reset ¶ added in v0.4.0
func (x *ComputationRunReq) Reset()
func (*ComputationRunReq) String ¶ added in v0.4.0
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"` // contains filtered or unexported fields }
func (*Dataset) Descriptor
deprecated
func (*Dataset) GetFilename ¶ added in v0.4.0
func (*Dataset) GetUserKey ¶ added in v0.4.0
func (*Dataset) ProtoMessage ¶
func (*Dataset) ProtoMessage()
func (*Dataset) ProtoReflect ¶
func (x *Dataset) ProtoReflect() protoreflect.Message
type ManagerServiceClient ¶
type ManagerServiceClient interface {
Process(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[ClientStreamMessage, ServerStreamMessage], error)
}
ManagerServiceClient is the client API for ManagerService 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 NewManagerServiceClient ¶
func NewManagerServiceClient(cc grpc.ClientConnInterface) ManagerServiceClient
type ManagerServiceServer ¶
type ManagerServiceServer interface { Process(grpc.BidiStreamingServer[ClientStreamMessage, ServerStreamMessage]) error // contains filtered or unexported methods }
ManagerServiceServer is the server API for ManagerService service. All implementations must embed UnimplementedManagerServiceServer for forward compatibility.
type ManagerService_ProcessClient ¶ added in v0.4.0
type ManagerService_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 ManagerService_ProcessServer ¶ added in v0.4.0
type ManagerService_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 ResultConsumer ¶ added in v0.4.0
type ResultConsumer struct { UserKey []byte `protobuf:"bytes,1,opt,name=userKey,proto3" json:"userKey,omitempty"` // contains filtered or unexported fields }
func (*ResultConsumer) Descriptor
deprecated
added in
v0.4.0
func (*ResultConsumer) Descriptor() ([]byte, []int)
Deprecated: Use ResultConsumer.ProtoReflect.Descriptor instead.
func (*ResultConsumer) GetUserKey ¶ added in v0.4.0
func (x *ResultConsumer) GetUserKey() []byte
func (*ResultConsumer) ProtoMessage ¶ added in v0.4.0
func (*ResultConsumer) ProtoMessage()
func (*ResultConsumer) ProtoReflect ¶ added in v0.4.0
func (x *ResultConsumer) ProtoReflect() protoreflect.Message
func (*ResultConsumer) Reset ¶ added in v0.4.0
func (x *ResultConsumer) Reset()
func (*ResultConsumer) String ¶ added in v0.4.0
func (x *ResultConsumer) String() string
type RunReqChunks ¶ added in v0.4.0
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
added in
v0.4.0
func (*RunReqChunks) Descriptor() ([]byte, []int)
Deprecated: Use RunReqChunks.ProtoReflect.Descriptor instead.
func (*RunReqChunks) GetData ¶ added in v0.4.0
func (x *RunReqChunks) GetData() []byte
func (*RunReqChunks) GetId ¶ added in v0.4.0
func (x *RunReqChunks) GetId() string
func (*RunReqChunks) GetIsLast ¶ added in v0.4.0
func (x *RunReqChunks) GetIsLast() bool
func (*RunReqChunks) ProtoMessage ¶ added in v0.4.0
func (*RunReqChunks) ProtoMessage()
func (*RunReqChunks) ProtoReflect ¶ added in v0.4.0
func (x *RunReqChunks) ProtoReflect() protoreflect.Message
func (*RunReqChunks) Reset ¶ added in v0.4.0
func (x *RunReqChunks) Reset()
func (*RunReqChunks) String ¶ added in v0.4.0
func (x *RunReqChunks) String() string
type RunResponse ¶
type RunResponse struct { AgentPort string `protobuf:"bytes,1,opt,name=agent_port,json=agentPort,proto3" json:"agent_port,omitempty"` ComputationId string `protobuf:"bytes,2,opt,name=computation_id,json=computationId,proto3" json:"computation_id,omitempty"` // contains filtered or unexported fields }
func (*RunResponse) Descriptor
deprecated
func (*RunResponse) Descriptor() ([]byte, []int)
Deprecated: Use RunResponse.ProtoReflect.Descriptor instead.
func (*RunResponse) GetAgentPort ¶ added in v0.4.0
func (x *RunResponse) GetAgentPort() string
func (*RunResponse) GetComputationId ¶ added in v0.4.0
func (x *RunResponse) GetComputationId() 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 SVMInfo ¶ added in v0.4.0
type SVMInfo struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` OvmfVersion string `protobuf:"bytes,2,opt,name=ovmf_version,json=ovmfVersion,proto3" json:"ovmf_version,omitempty"` CpuNum int32 `protobuf:"varint,3,opt,name=cpu_num,json=cpuNum,proto3" json:"cpu_num,omitempty"` CpuType string `protobuf:"bytes,4,opt,name=cpu_type,json=cpuType,proto3" json:"cpu_type,omitempty"` KernelCmd string `protobuf:"bytes,5,opt,name=kernel_cmd,json=kernelCmd,proto3" json:"kernel_cmd,omitempty"` EosVersion string `protobuf:"bytes,6,opt,name=eos_version,json=eosVersion,proto3" json:"eos_version,omitempty"` // contains filtered or unexported fields }
func (*SVMInfo) Descriptor
deprecated
added in
v0.4.0
func (*SVMInfo) GetCpuType ¶ added in v0.4.0
func (*SVMInfo) GetEosVersion ¶ added in v0.4.0
func (*SVMInfo) GetKernelCmd ¶ added in v0.4.0
func (*SVMInfo) GetOvmfVersion ¶ added in v0.4.0
func (*SVMInfo) ProtoMessage ¶ added in v0.4.0
func (*SVMInfo) ProtoMessage()
func (*SVMInfo) ProtoReflect ¶ added in v0.4.0
func (x *SVMInfo) ProtoReflect() protoreflect.Message
type SVMInfoReq ¶ added in v0.4.0
type SVMInfoReq struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*SVMInfoReq) Descriptor
deprecated
added in
v0.4.0
func (*SVMInfoReq) Descriptor() ([]byte, []int)
Deprecated: Use SVMInfoReq.ProtoReflect.Descriptor instead.
func (*SVMInfoReq) GetId ¶ added in v0.4.0
func (x *SVMInfoReq) GetId() string
func (*SVMInfoReq) ProtoMessage ¶ added in v0.4.0
func (*SVMInfoReq) ProtoMessage()
func (*SVMInfoReq) ProtoReflect ¶ added in v0.4.0
func (x *SVMInfoReq) ProtoReflect() protoreflect.Message
func (*SVMInfoReq) Reset ¶ added in v0.4.0
func (x *SVMInfoReq) Reset()
func (*SVMInfoReq) String ¶ added in v0.4.0
func (x *SVMInfoReq) String() string
type ServerStreamMessage ¶ added in v0.4.0
type ServerStreamMessage struct { // Types that are assignable to Message: // // *ServerStreamMessage_RunReqChunks // *ServerStreamMessage_RunReq // *ServerStreamMessage_TerminateReq // *ServerStreamMessage_StopComputation // *ServerStreamMessage_AttestationPolicyReq // *ServerStreamMessage_SvmInfoReq Message isServerStreamMessage_Message `protobuf_oneof:"message"` // contains filtered or unexported fields }
func (*ServerStreamMessage) Descriptor
deprecated
added in
v0.4.0
func (*ServerStreamMessage) Descriptor() ([]byte, []int)
Deprecated: Use ServerStreamMessage.ProtoReflect.Descriptor instead.
func (*ServerStreamMessage) GetAttestationPolicyReq ¶ added in v0.4.0
func (x *ServerStreamMessage) GetAttestationPolicyReq() *AttestationPolicyReq
func (*ServerStreamMessage) GetMessage ¶ added in v0.4.0
func (m *ServerStreamMessage) GetMessage() isServerStreamMessage_Message
func (*ServerStreamMessage) GetRunReq ¶ added in v0.4.0
func (x *ServerStreamMessage) GetRunReq() *ComputationRunReq
func (*ServerStreamMessage) GetRunReqChunks ¶ added in v0.4.0
func (x *ServerStreamMessage) GetRunReqChunks() *RunReqChunks
func (*ServerStreamMessage) GetStopComputation ¶ added in v0.4.0
func (x *ServerStreamMessage) GetStopComputation() *StopComputation
func (*ServerStreamMessage) GetSvmInfoReq ¶ added in v0.4.0
func (x *ServerStreamMessage) GetSvmInfoReq() *SVMInfoReq
func (*ServerStreamMessage) GetTerminateReq ¶ added in v0.4.0
func (x *ServerStreamMessage) GetTerminateReq() *Terminate
func (*ServerStreamMessage) ProtoMessage ¶ added in v0.4.0
func (*ServerStreamMessage) ProtoMessage()
func (*ServerStreamMessage) ProtoReflect ¶ added in v0.4.0
func (x *ServerStreamMessage) ProtoReflect() protoreflect.Message
func (*ServerStreamMessage) Reset ¶ added in v0.4.0
func (x *ServerStreamMessage) Reset()
func (*ServerStreamMessage) String ¶ added in v0.4.0
func (x *ServerStreamMessage) String() string
type ServerStreamMessage_AttestationPolicyReq ¶ added in v0.4.0
type ServerStreamMessage_AttestationPolicyReq struct {
AttestationPolicyReq *AttestationPolicyReq `protobuf:"bytes,5,opt,name=attestationPolicyReq,proto3,oneof"`
}
type ServerStreamMessage_RunReq ¶ added in v0.4.0
type ServerStreamMessage_RunReq struct {
RunReq *ComputationRunReq `protobuf:"bytes,2,opt,name=runReq,proto3,oneof"`
}
type ServerStreamMessage_RunReqChunks ¶ added in v0.4.0
type ServerStreamMessage_RunReqChunks struct {
RunReqChunks *RunReqChunks `protobuf:"bytes,1,opt,name=runReqChunks,proto3,oneof"`
}
type ServerStreamMessage_StopComputation ¶ added in v0.4.0
type ServerStreamMessage_StopComputation struct {
StopComputation *StopComputation `protobuf:"bytes,4,opt,name=stopComputation,proto3,oneof"`
}
type ServerStreamMessage_SvmInfoReq ¶ added in v0.4.0
type ServerStreamMessage_SvmInfoReq struct {
SvmInfoReq *SVMInfoReq `protobuf:"bytes,6,opt,name=svmInfoReq,proto3,oneof"`
}
type ServerStreamMessage_TerminateReq ¶ added in v0.4.0
type ServerStreamMessage_TerminateReq struct {
TerminateReq *Terminate `protobuf:"bytes,3,opt,name=terminateReq,proto3,oneof"`
}
type Service ¶
type Service interface { // Run create a computation. Run(ctx context.Context, c *ComputationRunReq) (string, error) // Stop stops a computation. Stop(ctx context.Context, computationID string) error // FetchAttestationPolicy measures and fetches the attestation policy. FetchAttestationPolicy(ctx context.Context, computationID string) ([]byte, error) // ReportBrokenConnection reports a broken connection. ReportBrokenConnection(addr string) // ReturnSVMInfo returns SVM information needed for attestation verification and validation. ReturnSVMInfo(ctx context.Context) (string, int, string, string) }
Service specifies an API that must be fulfilled by the domain service implementation, and all of its decorators (e.g. logging & metrics).
type StopComputation ¶ added in v0.4.0
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
added in
v0.4.0
func (*StopComputation) Descriptor() ([]byte, []int)
Deprecated: Use StopComputation.ProtoReflect.Descriptor instead.
func (*StopComputation) GetComputationId ¶ added in v0.4.0
func (x *StopComputation) GetComputationId() string
func (*StopComputation) ProtoMessage ¶ added in v0.4.0
func (*StopComputation) ProtoMessage()
func (*StopComputation) ProtoReflect ¶ added in v0.4.0
func (x *StopComputation) ProtoReflect() protoreflect.Message
func (*StopComputation) Reset ¶ added in v0.4.0
func (x *StopComputation) Reset()
func (*StopComputation) String ¶ added in v0.4.0
func (x *StopComputation) String() string
type StopComputationResponse ¶ added in v0.4.0
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
added in
v0.4.0
func (*StopComputationResponse) Descriptor() ([]byte, []int)
Deprecated: Use StopComputationResponse.ProtoReflect.Descriptor instead.
func (*StopComputationResponse) GetComputationId ¶ added in v0.4.0
func (x *StopComputationResponse) GetComputationId() string
func (*StopComputationResponse) GetMessage ¶ added in v0.4.0
func (x *StopComputationResponse) GetMessage() string
func (*StopComputationResponse) ProtoMessage ¶ added in v0.4.0
func (*StopComputationResponse) ProtoMessage()
func (*StopComputationResponse) ProtoReflect ¶ added in v0.4.0
func (x *StopComputationResponse) ProtoReflect() protoreflect.Message
func (*StopComputationResponse) Reset ¶ added in v0.4.0
func (x *StopComputationResponse) Reset()
func (*StopComputationResponse) String ¶ added in v0.4.0
func (x *StopComputationResponse) String() string
type Terminate ¶ added in v0.4.0
type Terminate struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*Terminate) Descriptor
deprecated
added in
v0.4.0
func (*Terminate) GetMessage ¶ added in v0.4.0
func (*Terminate) ProtoMessage ¶ added in v0.4.0
func (*Terminate) ProtoMessage()
func (*Terminate) ProtoReflect ¶ added in v0.4.0
func (x *Terminate) ProtoReflect() protoreflect.Message
type UnimplementedManagerServiceServer ¶
type UnimplementedManagerServiceServer struct{}
UnimplementedManagerServiceServer 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.
type UnsafeManagerServiceServer ¶
type UnsafeManagerServiceServer interface {
// contains filtered or unexported methods
}
UnsafeManagerServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ManagerServiceServer will result in compilation errors.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package api contains API-related concerns: endpoint definitions, middlewares and all resource representations.
|
Package api contains API-related concerns: endpoint definitions, middlewares and all resource representations. |
Package tracing provides tracing instrumentation for cocos auth service.
|
Package tracing provides tracing instrumentation for cocos auth service. |