Documentation ¶
Index ¶
- Variables
- func RegisterCloudRPCServer(s *grpc.Server, srv CloudRPCServer)
- type CloudRPCClient
- type CloudRPCServer
- type JobName
- func (*JobName) Descriptor() ([]byte, []int)
- func (m *JobName) GetName() string
- func (m *JobName) GetVersion() string
- func (*JobName) ProtoMessage()
- func (m *JobName) Reset()
- func (m *JobName) String() string
- func (m *JobName) XXX_DiscardUnknown()
- func (m *JobName) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *JobName) XXX_Merge(src proto.Message)
- func (m *JobName) XXX_Size() int
- func (m *JobName) XXX_Unmarshal(b []byte) error
- type JobOutput
- func (*JobOutput) Descriptor() ([]byte, []int)
- func (m *JobOutput) GetFiles() map[string][]byte
- func (*JobOutput) ProtoMessage()
- func (m *JobOutput) Reset()
- func (m *JobOutput) String() string
- func (m *JobOutput) XXX_DiscardUnknown()
- func (m *JobOutput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *JobOutput) XXX_Merge(src proto.Message)
- func (m *JobOutput) XXX_Size() int
- func (m *JobOutput) XXX_Unmarshal(b []byte) error
- type JobSpec
- func (*JobSpec) Descriptor() ([]byte, []int)
- func (m *JobSpec) GetArgs() []string
- func (m *JobSpec) GetCmd() []string
- func (m *JobSpec) GetFileData() map[string][]byte
- func (m *JobSpec) GetMemoryGB() int32
- func (m *JobSpec) GetName() string
- func (m *JobSpec) GetVersion() string
- func (*JobSpec) ProtoMessage()
- func (m *JobSpec) Reset()
- func (m *JobSpec) String() string
- func (m *JobSpec) XXX_DiscardUnknown()
- func (m *JobSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *JobSpec) XXX_Merge(src proto.Message)
- func (m *JobSpec) XXX_Size() int
- func (m *JobSpec) XXX_Unmarshal(b []byte) error
- type JobStatus
- func (*JobStatus) Descriptor() ([]byte, []int)
- func (m *JobStatus) GetCompletionTime() int64
- func (m *JobStatus) GetMessage() string
- func (m *JobStatus) GetStartTime() int64
- func (m *JobStatus) GetStatus() Status
- func (*JobStatus) ProtoMessage()
- func (m *JobStatus) Reset()
- func (m *JobStatus) String() string
- func (m *JobStatus) XXX_DiscardUnknown()
- func (m *JobStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *JobStatus) XXX_Merge(src proto.Message)
- func (m *JobStatus) XXX_Size() int
- func (m *JobStatus) XXX_Unmarshal(b []byte) error
- type Status
Constants ¶
This section is empty.
Variables ¶
View Source
var Status_name = map[int32]string{
0: "Complete",
1: "Failed",
2: "Missing",
3: "Running",
4: "Waiting",
}
View Source
var Status_value = map[string]int32{
"Complete": 0,
"Failed": 1,
"Missing": 2,
"Running": 3,
"Waiting": 4,
}
Functions ¶
func RegisterCloudRPCServer ¶
func RegisterCloudRPCServer(s *grpc.Server, srv CloudRPCServer)
Types ¶
type CloudRPCClient ¶
type CloudRPCClient interface { // RunJob performs an InMAP simulation and returns the paths to the // output file(s). RunJob(ctx context.Context, in *JobSpec, opts ...grpc.CallOption) (*JobStatus, error) // Status returns the status of the simulation with the // requested name. Status(ctx context.Context, in *JobName, opts ...grpc.CallOption) (*JobStatus, error) // Output returns the output file(s) of the // requested simulation name. Output(ctx context.Context, in *JobName, opts ...grpc.CallOption) (*JobOutput, error) // Delete deletes the specified simulation. Delete(ctx context.Context, in *JobName, opts ...grpc.CallOption) (*JobName, error) }
CloudRPCClient is the client API for CloudRPC service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewCloudRPCClient ¶
func NewCloudRPCClient(cc *grpc.ClientConn) CloudRPCClient
type CloudRPCServer ¶
type CloudRPCServer interface { // RunJob performs an InMAP simulation and returns the paths to the // output file(s). RunJob(context.Context, *JobSpec) (*JobStatus, error) // Status returns the status of the simulation with the // requested name. Status(context.Context, *JobName) (*JobStatus, error) // Output returns the output file(s) of the // requested simulation name. Output(context.Context, *JobName) (*JobOutput, error) // Delete deletes the specified simulation. Delete(context.Context, *JobName) (*JobName, error) }
CloudRPCServer is the server API for CloudRPC service.
type JobName ¶
type JobName struct { // Version is the required InMAP version. Version string `protobuf:"bytes,1,opt,name=Version,proto3" json:"Version,omitempty"` // Name is a user-specified name for the job. Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*JobName) Descriptor ¶
func (*JobName) GetVersion ¶
func (*JobName) ProtoMessage ¶
func (*JobName) ProtoMessage()
func (*JobName) XXX_DiscardUnknown ¶
func (m *JobName) XXX_DiscardUnknown()
func (*JobName) XXX_Marshal ¶
func (*JobName) XXX_Unmarshal ¶
type JobOutput ¶
type JobOutput struct { // Files holds the contents of each output file. Files map[string][]byte `` /* 151-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*JobOutput) Descriptor ¶
func (*JobOutput) ProtoMessage ¶
func (*JobOutput) ProtoMessage()
func (*JobOutput) XXX_DiscardUnknown ¶
func (m *JobOutput) XXX_DiscardUnknown()
func (*JobOutput) XXX_Marshal ¶
func (*JobOutput) XXX_Unmarshal ¶
type JobSpec ¶
type JobSpec struct { // Version is the required InMAP version. Version string `protobuf:"bytes,1,opt,name=Version,proto3" json:"Version,omitempty"` // Name is a user-specified name for the job. Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"` // Cmd is the command to be run, e.g., [inmap run steady] Cmd []string `protobuf:"bytes,3,rep,name=Cmd,proto3" json:"Cmd,omitempty"` // Args are the command line arguments, e.g., [--Layers, 2, --steady, true] Args []string `protobuf:"bytes,4,rep,name=Args,proto3" json:"Args,omitempty"` // MemoryGB specifies the required gigabytes of RAM memory for the // simulation. MemoryGB int32 `protobuf:"varint,5,opt,name=MemoryGB,proto3" json:"MemoryGB,omitempty"` // FileData holds the contents of any local files referred to by Args FileData map[string][]byte `` /* 157-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
JobSpec is the input for the RunJob service.
func (*JobSpec) Descriptor ¶
func (*JobSpec) GetFileData ¶
func (*JobSpec) GetMemoryGB ¶
func (*JobSpec) GetVersion ¶
func (*JobSpec) ProtoMessage ¶
func (*JobSpec) ProtoMessage()
func (*JobSpec) XXX_DiscardUnknown ¶
func (m *JobSpec) XXX_DiscardUnknown()
func (*JobSpec) XXX_Marshal ¶
func (*JobSpec) XXX_Unmarshal ¶
type JobStatus ¶
type JobStatus struct { // Status holds the current status of the job. Status Status `protobuf:"varint,1,opt,name=Status,proto3,enum=cloudrpc.Status" json:"Status,omitempty"` Message string `protobuf:"bytes,2,opt,name=Message,proto3" json:"Message,omitempty"` // Unix time, the number of seconds elapsed since January 1, 1970 UTC StartTime int64 `protobuf:"varint,3,opt,name=StartTime,proto3" json:"StartTime,omitempty"` CompletionTime int64 `protobuf:"varint,4,opt,name=CompletionTime,proto3" json:"CompletionTime,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*JobStatus) Descriptor ¶
func (*JobStatus) GetCompletionTime ¶
func (*JobStatus) GetMessage ¶
func (*JobStatus) GetStartTime ¶
func (*JobStatus) ProtoMessage ¶
func (*JobStatus) ProtoMessage()
func (*JobStatus) XXX_DiscardUnknown ¶
func (m *JobStatus) XXX_DiscardUnknown()
func (*JobStatus) XXX_Marshal ¶
func (*JobStatus) XXX_Unmarshal ¶
Directories ¶
Path | Synopsis |
---|---|
Package cloudrpc is a generated protocol buffer package.
|
Package cloudrpc is a generated protocol buffer package. |
Click to show internal directories.
Click to hide internal directories.