29 lines
1.2 KiB
Protocol Buffer
29 lines
1.2 KiB
Protocol Buffer
|
// Copyright 2016-2017, Pulumi Corporation. All rights reserved.
|
||
|
|
||
|
syntax = "proto3";
|
||
|
|
||
|
package pulumirpc;
|
||
|
|
||
|
// LanguageRuntime is the interface that the planning monitor uses to drive execution of an interpreter responsible
|
||
|
// for confguring and creating resource objects.
|
||
|
service LanguageRuntime {
|
||
|
rpc Run(RunRequest) returns (RunResponse) {}
|
||
|
}
|
||
|
|
||
|
// RunRequest asks the interpreter to execute a program.
|
||
|
message RunRequest {
|
||
|
string project = 1; // the project name.
|
||
|
string stack = 2; // the name of the stack being deployed into.
|
||
|
string pwd = 3; // the program's working directory.
|
||
|
string program = 4; // the path to the program to execute.
|
||
|
repeated string args = 5; // any arguments to pass to the program.
|
||
|
map<string, string> config = 6; // the configuration variables to apply before running.
|
||
|
bool dryRun = 7; // true if we're only doing a dryrun (preview).
|
||
|
int32 parallel = 8; // the degree of parallelism for resource operations (<=1 for serial).
|
||
|
}
|
||
|
|
||
|
// RunResponse is the response back from the interpreter/source back to the monitor.
|
||
|
message RunResponse {
|
||
|
string error = 1; // an unhandled error if any occurred.
|
||
|
}
|