Documentation
¶
Index ¶
- Variables
- func RegisterAgentServer(s grpc.ServiceRegistrar, srv AgentServer)
- type AgentClient
- type AgentServer
- type Archive
- func (*Archive) Descriptor() ([]byte, []int)deprecated
- func (x *Archive) GetBatchSize() int32
- func (x *Archive) GetDependencies() []string
- func (x *Archive) GetEnv() string
- func (x *Archive) GetLocal() string
- func (x *Archive) GetName() string
- func (x *Archive) GetRemote() string
- func (x *Archive) GetWorkers() []*Worker
- func (*Archive) ProtoMessage()
- func (x *Archive) ProtoReflect() protoreflect.Message
- func (x *Archive) Reset()
- func (x *Archive) String() string
- type CreateRequest
- func (*CreateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateRequest) GetDependencies() []string
- func (x *CreateRequest) GetEnviron() string
- func (x *CreateRequest) GetLocal() string
- func (x *CreateRequest) GetName() string
- func (x *CreateRequest) GetRemote() string
- func (x *CreateRequest) GetReplicas() int32
- func (*CreateRequest) ProtoMessage()
- func (x *CreateRequest) ProtoReflect() protoreflect.Message
- func (x *CreateRequest) Reset()
- func (x *CreateRequest) String() string
- type CreateResponse
- type DeleteRequest
- type DeleteResponse
- type Input
- func (*Input) Descriptor() ([]byte, []int)deprecated
- func (x *Input) GetHeaders() map[string]string
- func (x *Input) GetId() string
- func (x *Input) GetInput() map[string][]byte
- func (*Input) ProtoMessage()
- func (x *Input) ProtoReflect() protoreflect.Message
- func (x *Input) Reset()
- func (x *Input) String() string
- type InvokeRequest
- func (*InvokeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *InvokeRequest) GetCommand() string
- func (x *InvokeRequest) GetInput() *Input
- func (x *InvokeRequest) GetName() string
- func (m *InvokeRequest) GetValue() isInvokeRequest_Value
- func (*InvokeRequest) ProtoMessage()
- func (x *InvokeRequest) ProtoReflect() protoreflect.Message
- func (x *InvokeRequest) Reset()
- func (x *InvokeRequest) String() string
- type InvokeRequest_Input
- type InvokeResponse
- type ListRequest
- type ListResponse
- type LoadRequest
- type LoadResponse
- func (*LoadResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LoadResponse) GetDuration() int64
- func (x *LoadResponse) GetMemory() int64
- func (*LoadResponse) ProtoMessage()
- func (x *LoadResponse) ProtoReflect() protoreflect.Message
- func (x *LoadResponse) Reset()
- func (x *LoadResponse) String() string
- type Output
- func (*Output) Descriptor() ([]byte, []int)deprecated
- func (x *Output) GetHeaders() map[string]string
- func (x *Output) GetId() string
- func (x *Output) GetPrediction() []byte
- func (x *Output) GetTemplate() string
- func (*Output) ProtoMessage()
- func (x *Output) ProtoReflect() protoreflect.Message
- func (x *Output) Reset()
- func (x *Output) String() string
- type PredictRequest
- func (*PredictRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PredictRequest) GetBatch() []*Input
- func (x *PredictRequest) GetName() string
- func (*PredictRequest) ProtoMessage()
- func (x *PredictRequest) ProtoReflect() protoreflect.Message
- func (x *PredictRequest) Reset()
- func (x *PredictRequest) String() string
- type PredictResponse
- type ReadRequest
- type ReadResponse
- type ScaleRequest
- func (*ScaleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ScaleRequest) GetName() string
- func (x *ScaleRequest) GetReplicas() int32
- func (*ScaleRequest) ProtoMessage()
- func (x *ScaleRequest) ProtoReflect() protoreflect.Message
- func (x *ScaleRequest) Reset()
- func (x *ScaleRequest) String() string
- type ScaleResponse
- type SyncRequest
- func (*SyncRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SyncRequest) GetDependencies() []string
- func (x *SyncRequest) GetEnviron() string
- func (*SyncRequest) ProtoMessage()
- func (x *SyncRequest) ProtoReflect() protoreflect.Message
- func (x *SyncRequest) Reset()
- func (x *SyncRequest) String() string
- type SyncResponse
- type UnimplementedAgentServer
- func (UnimplementedAgentServer) Create(context.Context, *CreateRequest) (*CreateResponse, error)
- func (UnimplementedAgentServer) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
- func (UnimplementedAgentServer) Invoke(context.Context, *InvokeRequest) (*InvokeResponse, error)
- func (UnimplementedAgentServer) List(context.Context, *ListRequest) (*ListResponse, error)
- func (UnimplementedAgentServer) Read(context.Context, *ReadRequest) (*ReadResponse, error)
- func (UnimplementedAgentServer) Scale(context.Context, *ScaleRequest) (*ScaleResponse, error)
- func (UnimplementedAgentServer) Sync(context.Context, *SyncRequest) (*SyncResponse, error)
- type UnsafeAgentServer
- type Worker
- func (*Worker) Descriptor() ([]byte, []int)deprecated
- func (x *Worker) GetGpu() bool
- func (x *Worker) GetId() uint32
- func (x *Worker) GetMemory() int64
- func (x *Worker) GetStatus() string
- func (x *Worker) GetUptime() int64
- func (*Worker) ProtoMessage()
- func (x *Worker) ProtoReflect() protoreflect.Message
- func (x *Worker) Reset()
- func (x *Worker) String() string
Constants ¶
This section is empty.
Variables ¶
var Agent_ServiceDesc = grpc.ServiceDesc{ ServiceName: "mfe.Agent", HandlerType: (*AgentServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Create", Handler: _Agent_Create_Handler, }, { MethodName: "Delete", Handler: _Agent_Delete_Handler, }, { MethodName: "Read", Handler: _Agent_Read_Handler, }, { MethodName: "List", Handler: _Agent_List_Handler, }, { MethodName: "Scale", Handler: _Agent_Scale_Handler, }, { MethodName: "Sync", Handler: _Agent_Sync_Handler, }, { MethodName: "Invoke", Handler: _Agent_Invoke_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/agent.proto", }
Agent_ServiceDesc is the grpc.ServiceDesc for Agent service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_proto_agent_proto protoreflect.FileDescriptor
var File_proto_serva_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAgentServer ¶
func RegisterAgentServer(s grpc.ServiceRegistrar, srv AgentServer)
Types ¶
type AgentClient ¶
type AgentClient interface { Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) Read(ctx context.Context, in *ReadRequest, opts ...grpc.CallOption) (*ReadResponse, error) List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) Scale(ctx context.Context, in *ScaleRequest, opts ...grpc.CallOption) (*ScaleResponse, error) Sync(ctx context.Context, in *SyncRequest, opts ...grpc.CallOption) (*SyncResponse, error) Invoke(ctx context.Context, in *InvokeRequest, opts ...grpc.CallOption) (*InvokeResponse, error) }
AgentClient is the client API for Agent service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkgo.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewAgentClient ¶
func NewAgentClient(cc grpc.ClientConnInterface) AgentClient
type AgentServer ¶
type AgentServer interface { Create(context.Context, *CreateRequest) (*CreateResponse, error) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error) Read(context.Context, *ReadRequest) (*ReadResponse, error) List(context.Context, *ListRequest) (*ListResponse, error) Scale(context.Context, *ScaleRequest) (*ScaleResponse, error) Sync(context.Context, *SyncRequest) (*SyncResponse, error) Invoke(context.Context, *InvokeRequest) (*InvokeResponse, error) // contains filtered or unexported methods }
AgentServer is the server API for Agent service. All implementations must embed UnimplementedAgentServer for forward compatibility
type Archive ¶
type Archive struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Remote string `protobuf:"bytes,2,opt,name=remote,proto3" json:"remote,omitempty"` Local string `protobuf:"bytes,3,opt,name=local,proto3" json:"local,omitempty"` Env string `protobuf:"bytes,4,opt,name=env,proto3" json:"env,omitempty"` BatchSize int32 `protobuf:"varint,5,opt,name=batch_size,json=batchSize,proto3" json:"batch_size,omitempty"` Dependencies []string `protobuf:"bytes,6,rep,name=dependencies,proto3" json:"dependencies,omitempty"` Workers []*Worker `protobuf:"bytes,7,rep,name=workers,proto3" json:"workers,omitempty"` // contains filtered or unexported fields }
func (*Archive) ProtoReflect ¶
func (x *Archive) ProtoReflect() protoreflect.Message
type CreateRequest ¶
type CreateRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Remote string `protobuf:"bytes,2,opt,name=remote,proto3" json:"remote,omitempty"` Local string `protobuf:"bytes,3,opt,name=local,proto3" json:"local,omitempty"` Environ string `protobuf:"bytes,4,opt,name=environ,proto3" json:"environ,omitempty"` Dependencies []string `protobuf:"bytes,5,rep,name=dependencies,proto3" json:"dependencies,omitempty"` Replicas int32 `protobuf:"varint,6,opt,name=replicas,proto3" json:"replicas,omitempty"` // contains filtered or unexported fields }
func (*CreateRequest) Descriptor
deprecated
func (*CreateRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateRequest.ProtoReflect.Descriptor instead.
func (*CreateRequest) GetDependencies ¶
func (x *CreateRequest) GetDependencies() []string
func (*CreateRequest) GetEnviron ¶
func (x *CreateRequest) GetEnviron() string
func (*CreateRequest) GetLocal ¶
func (x *CreateRequest) GetLocal() string
func (*CreateRequest) GetName ¶
func (x *CreateRequest) GetName() string
func (*CreateRequest) GetRemote ¶
func (x *CreateRequest) GetRemote() string
func (*CreateRequest) GetReplicas ¶
func (x *CreateRequest) GetReplicas() int32
func (*CreateRequest) ProtoMessage ¶
func (*CreateRequest) ProtoMessage()
func (*CreateRequest) ProtoReflect ¶
func (x *CreateRequest) ProtoReflect() protoreflect.Message
func (*CreateRequest) Reset ¶
func (x *CreateRequest) Reset()
func (*CreateRequest) String ¶
func (x *CreateRequest) String() string
type CreateResponse ¶
type CreateResponse struct { Archive *Archive `protobuf:"bytes,1,opt,name=archive,proto3" json:"archive,omitempty"` // contains filtered or unexported fields }
func (*CreateResponse) Descriptor
deprecated
func (*CreateResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateResponse.ProtoReflect.Descriptor instead.
func (*CreateResponse) GetArchive ¶
func (x *CreateResponse) GetArchive() *Archive
func (*CreateResponse) ProtoMessage ¶
func (*CreateResponse) ProtoMessage()
func (*CreateResponse) ProtoReflect ¶
func (x *CreateResponse) ProtoReflect() protoreflect.Message
func (*CreateResponse) Reset ¶
func (x *CreateResponse) Reset()
func (*CreateResponse) String ¶
func (x *CreateResponse) String() string
type DeleteRequest ¶
type DeleteRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*DeleteRequest) Descriptor
deprecated
func (*DeleteRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.
func (*DeleteRequest) GetName ¶
func (x *DeleteRequest) GetName() string
func (*DeleteRequest) ProtoMessage ¶
func (*DeleteRequest) ProtoMessage()
func (*DeleteRequest) ProtoReflect ¶
func (x *DeleteRequest) ProtoReflect() protoreflect.Message
func (*DeleteRequest) Reset ¶
func (x *DeleteRequest) Reset()
func (*DeleteRequest) String ¶
func (x *DeleteRequest) String() string
type DeleteResponse ¶
type DeleteResponse struct {
// contains filtered or unexported fields
}
func (*DeleteResponse) Descriptor
deprecated
func (*DeleteResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteResponse.ProtoReflect.Descriptor instead.
func (*DeleteResponse) ProtoMessage ¶
func (*DeleteResponse) ProtoMessage()
func (*DeleteResponse) ProtoReflect ¶
func (x *DeleteResponse) ProtoReflect() protoreflect.Message
func (*DeleteResponse) Reset ¶
func (x *DeleteResponse) Reset()
func (*DeleteResponse) String ¶
func (x *DeleteResponse) String() string
type Input ¶
type Input struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Headers map[string]string `` /* 155-byte string literal not displayed */ Input map[string][]byte `` /* 151-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Input) ProtoReflect ¶
func (x *Input) ProtoReflect() protoreflect.Message
type InvokeRequest ¶
type InvokeRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Command string `protobuf:"bytes,2,opt,name=command,proto3" json:"command,omitempty"` // Types that are assignable to Value: // *InvokeRequest_Input Value isInvokeRequest_Value `protobuf_oneof:"value"` // contains filtered or unexported fields }
func (*InvokeRequest) Descriptor
deprecated
func (*InvokeRequest) Descriptor() ([]byte, []int)
Deprecated: Use InvokeRequest.ProtoReflect.Descriptor instead.
func (*InvokeRequest) GetCommand ¶
func (x *InvokeRequest) GetCommand() string
func (*InvokeRequest) GetInput ¶
func (x *InvokeRequest) GetInput() *Input
func (*InvokeRequest) GetName ¶
func (x *InvokeRequest) GetName() string
func (*InvokeRequest) GetValue ¶
func (m *InvokeRequest) GetValue() isInvokeRequest_Value
func (*InvokeRequest) ProtoMessage ¶
func (*InvokeRequest) ProtoMessage()
func (*InvokeRequest) ProtoReflect ¶
func (x *InvokeRequest) ProtoReflect() protoreflect.Message
func (*InvokeRequest) Reset ¶
func (x *InvokeRequest) Reset()
func (*InvokeRequest) String ¶
func (x *InvokeRequest) String() string
type InvokeRequest_Input ¶
type InvokeRequest_Input struct {
Input *Input `protobuf:"bytes,3,opt,name=input,proto3,oneof"`
}
type InvokeResponse ¶
type InvokeResponse struct { Output *Output `protobuf:"bytes,1,opt,name=output,proto3" json:"output,omitempty"` // contains filtered or unexported fields }
func (*InvokeResponse) Descriptor
deprecated
func (*InvokeResponse) Descriptor() ([]byte, []int)
Deprecated: Use InvokeResponse.ProtoReflect.Descriptor instead.
func (*InvokeResponse) GetOutput ¶
func (x *InvokeResponse) GetOutput() *Output
func (*InvokeResponse) ProtoMessage ¶
func (*InvokeResponse) ProtoMessage()
func (*InvokeResponse) ProtoReflect ¶
func (x *InvokeResponse) ProtoReflect() protoreflect.Message
func (*InvokeResponse) Reset ¶
func (x *InvokeResponse) Reset()
func (*InvokeResponse) String ¶
func (x *InvokeResponse) String() string
type ListRequest ¶
type ListRequest struct {
// contains filtered or unexported fields
}
func (*ListRequest) Descriptor
deprecated
func (*ListRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.
func (*ListRequest) ProtoMessage ¶
func (*ListRequest) ProtoMessage()
func (*ListRequest) ProtoReflect ¶
func (x *ListRequest) ProtoReflect() protoreflect.Message
func (*ListRequest) Reset ¶
func (x *ListRequest) Reset()
func (*ListRequest) String ¶
func (x *ListRequest) String() string
type ListResponse ¶
type ListResponse struct { Archives []*Archive `protobuf:"bytes,1,rep,name=archives,proto3" json:"archives,omitempty"` // contains filtered or unexported fields }
func (*ListResponse) Descriptor
deprecated
func (*ListResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.
func (*ListResponse) GetArchives ¶
func (x *ListResponse) GetArchives() []*Archive
func (*ListResponse) ProtoMessage ¶
func (*ListResponse) ProtoMessage()
func (*ListResponse) ProtoReflect ¶
func (x *ListResponse) ProtoReflect() protoreflect.Message
func (*ListResponse) Reset ¶
func (x *ListResponse) Reset()
func (*ListResponse) String ¶
func (x *ListResponse) String() string
type LoadRequest ¶
type LoadRequest struct { Where string `protobuf:"bytes,1,opt,name=where,proto3" json:"where,omitempty"` Gpuid int64 `protobuf:"varint,2,opt,name=gpuid,proto3" json:"gpuid,omitempty"` // contains filtered or unexported fields }
func (*LoadRequest) Descriptor
deprecated
func (*LoadRequest) Descriptor() ([]byte, []int)
Deprecated: Use LoadRequest.ProtoReflect.Descriptor instead.
func (*LoadRequest) GetGpuid ¶
func (x *LoadRequest) GetGpuid() int64
func (*LoadRequest) GetWhere ¶
func (x *LoadRequest) GetWhere() string
func (*LoadRequest) ProtoMessage ¶
func (*LoadRequest) ProtoMessage()
func (*LoadRequest) ProtoReflect ¶
func (x *LoadRequest) ProtoReflect() protoreflect.Message
func (*LoadRequest) Reset ¶
func (x *LoadRequest) Reset()
func (*LoadRequest) String ¶
func (x *LoadRequest) String() string
type LoadResponse ¶
type LoadResponse struct { Duration int64 `protobuf:"varint,1,opt,name=duration,proto3" json:"duration,omitempty"` Memory int64 `protobuf:"varint,2,opt,name=memory,proto3" json:"memory,omitempty"` // contains filtered or unexported fields }
func (*LoadResponse) Descriptor
deprecated
func (*LoadResponse) Descriptor() ([]byte, []int)
Deprecated: Use LoadResponse.ProtoReflect.Descriptor instead.
func (*LoadResponse) GetDuration ¶
func (x *LoadResponse) GetDuration() int64
func (*LoadResponse) GetMemory ¶
func (x *LoadResponse) GetMemory() int64
func (*LoadResponse) ProtoMessage ¶
func (*LoadResponse) ProtoMessage()
func (*LoadResponse) ProtoReflect ¶
func (x *LoadResponse) ProtoReflect() protoreflect.Message
func (*LoadResponse) Reset ¶
func (x *LoadResponse) Reset()
func (*LoadResponse) String ¶
func (x *LoadResponse) String() string
type Output ¶
type Output struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Template string `protobuf:"bytes,2,opt,name=template,proto3" json:"template,omitempty"` Prediction []byte `protobuf:"bytes,3,opt,name=prediction,proto3" json:"prediction,omitempty"` Headers map[string]string `` /* 155-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Output) ProtoReflect ¶
func (x *Output) ProtoReflect() protoreflect.Message
type PredictRequest ¶
type PredictRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Batch []*Input `protobuf:"bytes,2,rep,name=batch,proto3" json:"batch,omitempty"` // contains filtered or unexported fields }
func (*PredictRequest) Descriptor
deprecated
func (*PredictRequest) Descriptor() ([]byte, []int)
Deprecated: Use PredictRequest.ProtoReflect.Descriptor instead.
func (*PredictRequest) GetBatch ¶
func (x *PredictRequest) GetBatch() []*Input
func (*PredictRequest) GetName ¶
func (x *PredictRequest) GetName() string
func (*PredictRequest) ProtoMessage ¶
func (*PredictRequest) ProtoMessage()
func (*PredictRequest) ProtoReflect ¶
func (x *PredictRequest) ProtoReflect() protoreflect.Message
func (*PredictRequest) Reset ¶
func (x *PredictRequest) Reset()
func (*PredictRequest) String ¶
func (x *PredictRequest) String() string
type PredictResponse ¶
type PredictResponse struct { Batch []*Output `protobuf:"bytes,1,rep,name=batch,proto3" json:"batch,omitempty"` // contains filtered or unexported fields }
func (*PredictResponse) Descriptor
deprecated
func (*PredictResponse) Descriptor() ([]byte, []int)
Deprecated: Use PredictResponse.ProtoReflect.Descriptor instead.
func (*PredictResponse) GetBatch ¶
func (x *PredictResponse) GetBatch() []*Output
func (*PredictResponse) ProtoMessage ¶
func (*PredictResponse) ProtoMessage()
func (*PredictResponse) ProtoReflect ¶
func (x *PredictResponse) ProtoReflect() protoreflect.Message
func (*PredictResponse) Reset ¶
func (x *PredictResponse) Reset()
func (*PredictResponse) String ¶
func (x *PredictResponse) String() string
type ReadRequest ¶
type ReadRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*ReadRequest) Descriptor
deprecated
func (*ReadRequest) Descriptor() ([]byte, []int)
Deprecated: Use ReadRequest.ProtoReflect.Descriptor instead.
func (*ReadRequest) GetName ¶
func (x *ReadRequest) GetName() string
func (*ReadRequest) ProtoMessage ¶
func (*ReadRequest) ProtoMessage()
func (*ReadRequest) ProtoReflect ¶
func (x *ReadRequest) ProtoReflect() protoreflect.Message
func (*ReadRequest) Reset ¶
func (x *ReadRequest) Reset()
func (*ReadRequest) String ¶
func (x *ReadRequest) String() string
type ReadResponse ¶
type ReadResponse struct { Archive *Archive `protobuf:"bytes,1,opt,name=archive,proto3" json:"archive,omitempty"` // contains filtered or unexported fields }
func (*ReadResponse) Descriptor
deprecated
func (*ReadResponse) Descriptor() ([]byte, []int)
Deprecated: Use ReadResponse.ProtoReflect.Descriptor instead.
func (*ReadResponse) GetArchive ¶
func (x *ReadResponse) GetArchive() *Archive
func (*ReadResponse) ProtoMessage ¶
func (*ReadResponse) ProtoMessage()
func (*ReadResponse) ProtoReflect ¶
func (x *ReadResponse) ProtoReflect() protoreflect.Message
func (*ReadResponse) Reset ¶
func (x *ReadResponse) Reset()
func (*ReadResponse) String ¶
func (x *ReadResponse) String() string
type ScaleRequest ¶
type ScaleRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Replicas int32 `protobuf:"varint,2,opt,name=replicas,proto3" json:"replicas,omitempty"` // contains filtered or unexported fields }
func (*ScaleRequest) Descriptor
deprecated
func (*ScaleRequest) Descriptor() ([]byte, []int)
Deprecated: Use ScaleRequest.ProtoReflect.Descriptor instead.
func (*ScaleRequest) GetName ¶
func (x *ScaleRequest) GetName() string
func (*ScaleRequest) GetReplicas ¶
func (x *ScaleRequest) GetReplicas() int32
func (*ScaleRequest) ProtoMessage ¶
func (*ScaleRequest) ProtoMessage()
func (*ScaleRequest) ProtoReflect ¶
func (x *ScaleRequest) ProtoReflect() protoreflect.Message
func (*ScaleRequest) Reset ¶
func (x *ScaleRequest) Reset()
func (*ScaleRequest) String ¶
func (x *ScaleRequest) String() string
type ScaleResponse ¶
type ScaleResponse struct {
// contains filtered or unexported fields
}
func (*ScaleResponse) Descriptor
deprecated
func (*ScaleResponse) Descriptor() ([]byte, []int)
Deprecated: Use ScaleResponse.ProtoReflect.Descriptor instead.
func (*ScaleResponse) ProtoMessage ¶
func (*ScaleResponse) ProtoMessage()
func (*ScaleResponse) ProtoReflect ¶
func (x *ScaleResponse) ProtoReflect() protoreflect.Message
func (*ScaleResponse) Reset ¶
func (x *ScaleResponse) Reset()
func (*ScaleResponse) String ¶
func (x *ScaleResponse) String() string
type SyncRequest ¶
type SyncRequest struct { Environ string `protobuf:"bytes,1,opt,name=environ,proto3" json:"environ,omitempty"` Dependencies []string `protobuf:"bytes,2,rep,name=dependencies,proto3" json:"dependencies,omitempty"` // contains filtered or unexported fields }
func (*SyncRequest) Descriptor
deprecated
func (*SyncRequest) Descriptor() ([]byte, []int)
Deprecated: Use SyncRequest.ProtoReflect.Descriptor instead.
func (*SyncRequest) GetDependencies ¶
func (x *SyncRequest) GetDependencies() []string
func (*SyncRequest) GetEnviron ¶
func (x *SyncRequest) GetEnviron() string
func (*SyncRequest) ProtoMessage ¶
func (*SyncRequest) ProtoMessage()
func (*SyncRequest) ProtoReflect ¶
func (x *SyncRequest) ProtoReflect() protoreflect.Message
func (*SyncRequest) Reset ¶
func (x *SyncRequest) Reset()
func (*SyncRequest) String ¶
func (x *SyncRequest) String() string
type SyncResponse ¶
type SyncResponse struct {
// contains filtered or unexported fields
}
func (*SyncResponse) Descriptor
deprecated
func (*SyncResponse) Descriptor() ([]byte, []int)
Deprecated: Use SyncResponse.ProtoReflect.Descriptor instead.
func (*SyncResponse) ProtoMessage ¶
func (*SyncResponse) ProtoMessage()
func (*SyncResponse) ProtoReflect ¶
func (x *SyncResponse) ProtoReflect() protoreflect.Message
func (*SyncResponse) Reset ¶
func (x *SyncResponse) Reset()
func (*SyncResponse) String ¶
func (x *SyncResponse) String() string
type UnimplementedAgentServer ¶
type UnimplementedAgentServer struct { }
UnimplementedAgentServer must be embedded to have forward compatible implementations.
func (UnimplementedAgentServer) Create ¶
func (UnimplementedAgentServer) Create(context.Context, *CreateRequest) (*CreateResponse, error)
func (UnimplementedAgentServer) Delete ¶
func (UnimplementedAgentServer) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
func (UnimplementedAgentServer) Invoke ¶
func (UnimplementedAgentServer) Invoke(context.Context, *InvokeRequest) (*InvokeResponse, error)
func (UnimplementedAgentServer) List ¶
func (UnimplementedAgentServer) List(context.Context, *ListRequest) (*ListResponse, error)
func (UnimplementedAgentServer) Read ¶
func (UnimplementedAgentServer) Read(context.Context, *ReadRequest) (*ReadResponse, error)
func (UnimplementedAgentServer) Scale ¶
func (UnimplementedAgentServer) Scale(context.Context, *ScaleRequest) (*ScaleResponse, error)
func (UnimplementedAgentServer) Sync ¶
func (UnimplementedAgentServer) Sync(context.Context, *SyncRequest) (*SyncResponse, error)
type UnsafeAgentServer ¶
type UnsafeAgentServer interface {
// contains filtered or unexported methods
}
UnsafeAgentServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AgentServer will result in compilation errors.
type Worker ¶
type Worker struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Uptime int64 `protobuf:"varint,2,opt,name=uptime,proto3" json:"uptime,omitempty"` Memory int64 `protobuf:"varint,3,opt,name=memory,proto3" json:"memory,omitempty"` Status string `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty"` Gpu bool `protobuf:"varint,5,opt,name=gpu,proto3" json:"gpu,omitempty"` // contains filtered or unexported fields }
func (*Worker) ProtoReflect ¶
func (x *Worker) ProtoReflect() protoreflect.Message