inmap: github.com/spatialmodel/inmap/cloud/cloudrpc/cloudrpcgojs Index | Files

package cloudrpc

import "github.com/spatialmodel/inmap/cloud/cloudrpc/cloudrpcgojs"

Package cloudrpc is a generated protocol buffer package.

It is generated from these files:

cloud.proto

It has these top-level messages:

JobSpec
JobStatus
JobOutput
JobName

Index

Package Files

cloud.pb.gopherjs.go

Variables

var Status_name = map[int]string{
    0:  "Complete",
    1:  "Failed",
    2:  "Missing",
    3:  "Running",
    4:  "Waiting",
}
var Status_value = map[string]int{
    "Complete": 0,
    "Failed":   1,
    "Missing":  2,
    "Running":  3,
    "Waiting":  4,
}

type CloudRPCClient Uses

type CloudRPCClient interface {
    // RunJob performs an InMAP simulation and returns the paths to the
    // output file(s).
    RunJob(ctx context.Context, in *JobSpec, opts ...grpcweb.CallOption) (*JobStatus, error)
    // Status returns the status of the simulation with the
    // requested name.
    Status(ctx context.Context, in *JobName, opts ...grpcweb.CallOption) (*JobStatus, error)
    // Output returns the output file(s) of the
    // requested simulation name.
    Output(ctx context.Context, in *JobName, opts ...grpcweb.CallOption) (*JobOutput, error)
    // Delete deletes the specified simulation.
    Delete(ctx context.Context, in *JobName, opts ...grpcweb.CallOption) (*JobName, error)
}

func NewCloudRPCClient Uses

func NewCloudRPCClient(hostname string, opts ...grpcweb.DialOption) CloudRPCClient

NewCloudRPCClient creates a new gRPC-Web client.

type JobName Uses

type JobName struct {
    // Version is the required InMAP version.
    Version string
    // Name is a user-specified name for the job.
    Name string
}

func (*JobName) GetName Uses

func (m *JobName) GetName() (x string)

GetName gets the Name of the JobName.

func (*JobName) GetVersion Uses

func (m *JobName) GetVersion() (x string)

GetVersion gets the Version of the JobName.

func (*JobName) Marshal Uses

func (m *JobName) Marshal() []byte

Marshal marshals JobName to a slice of bytes.

func (*JobName) MarshalToWriter Uses

func (m *JobName) MarshalToWriter(writer jspb.Writer)

MarshalToWriter marshals JobName to the provided writer.

func (*JobName) Unmarshal Uses

func (m *JobName) Unmarshal(rawBytes []byte) (*JobName, error)

Unmarshal unmarshals a JobName from a slice of bytes.

func (*JobName) UnmarshalFromReader Uses

func (m *JobName) UnmarshalFromReader(reader jspb.Reader) *JobName

UnmarshalFromReader unmarshals a JobName from the provided reader.

type JobOutput Uses

type JobOutput struct {
    // Files holds the contents of each output file.
    Files map[string][]byte
}

func (*JobOutput) GetFiles Uses

func (m *JobOutput) GetFiles() (x map[string][]byte)

GetFiles gets the Files of the JobOutput.

func (*JobOutput) Marshal Uses

func (m *JobOutput) Marshal() []byte

Marshal marshals JobOutput to a slice of bytes.

func (*JobOutput) MarshalToWriter Uses

func (m *JobOutput) MarshalToWriter(writer jspb.Writer)

MarshalToWriter marshals JobOutput to the provided writer.

func (*JobOutput) Unmarshal Uses

func (m *JobOutput) Unmarshal(rawBytes []byte) (*JobOutput, error)

Unmarshal unmarshals a JobOutput from a slice of bytes.

func (*JobOutput) UnmarshalFromReader Uses

func (m *JobOutput) UnmarshalFromReader(reader jspb.Reader) *JobOutput

UnmarshalFromReader unmarshals a JobOutput from the provided reader.

type JobSpec Uses

type JobSpec struct {
    // Version is the required InMAP version.
    Version string
    // Name is a user-specified name for the job.
    Name string
    // Cmd is the command to be run, e.g., [inmap run steady]
    Cmd []string
    // Args are the command line arguments, e.g., [--Layers, 2, --steady, true]
    Args []string
    // MemoryGB specifies the required gigabytes of RAM memory for the
    // simulation.
    MemoryGB int32
    // FileData holds the contents of any local files referred to by Args
    FileData map[string][]byte
}

JobSpec is the input for the RunJob service.

func (*JobSpec) GetArgs Uses

func (m *JobSpec) GetArgs() (x []string)

GetArgs gets the Args of the JobSpec.

func (*JobSpec) GetCmd Uses

func (m *JobSpec) GetCmd() (x []string)

GetCmd gets the Cmd of the JobSpec.

func (*JobSpec) GetFileData Uses

func (m *JobSpec) GetFileData() (x map[string][]byte)

GetFileData gets the FileData of the JobSpec.

func (*JobSpec) GetMemoryGB Uses

func (m *JobSpec) GetMemoryGB() (x int32)

GetMemoryGB gets the MemoryGB of the JobSpec.

func (*JobSpec) GetName Uses

func (m *JobSpec) GetName() (x string)

GetName gets the Name of the JobSpec.

func (*JobSpec) GetVersion Uses

func (m *JobSpec) GetVersion() (x string)

GetVersion gets the Version of the JobSpec.

func (*JobSpec) Marshal Uses

func (m *JobSpec) Marshal() []byte

Marshal marshals JobSpec to a slice of bytes.

func (*JobSpec) MarshalToWriter Uses

func (m *JobSpec) MarshalToWriter(writer jspb.Writer)

MarshalToWriter marshals JobSpec to the provided writer.

func (*JobSpec) Unmarshal Uses

func (m *JobSpec) Unmarshal(rawBytes []byte) (*JobSpec, error)

Unmarshal unmarshals a JobSpec from a slice of bytes.

func (*JobSpec) UnmarshalFromReader Uses

func (m *JobSpec) UnmarshalFromReader(reader jspb.Reader) *JobSpec

UnmarshalFromReader unmarshals a JobSpec from the provided reader.

type JobStatus Uses

type JobStatus struct {
    // Status holds the current status of the job.
    Status  Status
    Message string
    // Unix time, the number of seconds elapsed since January 1, 1970 UTC
    StartTime      int64
    CompletionTime int64
}

func (*JobStatus) GetCompletionTime Uses

func (m *JobStatus) GetCompletionTime() (x int64)

GetCompletionTime gets the CompletionTime of the JobStatus.

func (*JobStatus) GetMessage Uses

func (m *JobStatus) GetMessage() (x string)

GetMessage gets the Message of the JobStatus.

func (*JobStatus) GetStartTime Uses

func (m *JobStatus) GetStartTime() (x int64)

GetStartTime gets the StartTime of the JobStatus.

func (*JobStatus) GetStatus Uses

func (m *JobStatus) GetStatus() (x Status)

GetStatus gets the Status of the JobStatus.

func (*JobStatus) Marshal Uses

func (m *JobStatus) Marshal() []byte

Marshal marshals JobStatus to a slice of bytes.

func (*JobStatus) MarshalToWriter Uses

func (m *JobStatus) MarshalToWriter(writer jspb.Writer)

MarshalToWriter marshals JobStatus to the provided writer.

func (*JobStatus) Unmarshal Uses

func (m *JobStatus) Unmarshal(rawBytes []byte) (*JobStatus, error)

Unmarshal unmarshals a JobStatus from a slice of bytes.

func (*JobStatus) UnmarshalFromReader Uses

func (m *JobStatus) UnmarshalFromReader(reader jspb.Reader) *JobStatus

UnmarshalFromReader unmarshals a JobStatus from the provided reader.

type Status Uses

type Status int
const (
    Status_Complete Status = 0
    Status_Failed   Status = 1
    Status_Missing  Status = 2
    Status_Running  Status = 3
    Status_Waiting  Status = 4
)

func (Status) String Uses

func (x Status) String() string

Package cloudrpc imports 3 packages (graph). Updated 2019-05-11. Refresh now. Tools for package owners.