mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-27 09:21:14 -06:00
ebcf7455eb
* Rename module name from "github.com/hashicorp/terraform" to "github.com/placeholderplaceholderplaceholder/opentf". Signed-off-by: Jakub Martin <kubam@spacelift.io> * Gofmt. Signed-off-by: Jakub Martin <kubam@spacelift.io> * Regenerate protobuf. Signed-off-by: Jakub Martin <kubam@spacelift.io> * Fix comments. Signed-off-by: Jakub Martin <kubam@spacelift.io> * Undo issue and pull request link changes. Signed-off-by: Jakub Martin <kubam@spacelift.io> * Undo comment changes. Signed-off-by: Jakub Martin <kubam@spacelift.io> * Fix comment. Signed-off-by: Jakub Martin <kubam@spacelift.io> * Undo some link changes. Signed-off-by: Jakub Martin <kubam@spacelift.io> * make generate && make protobuf Signed-off-by: Jakub Martin <kubam@spacelift.io> --------- Signed-off-by: Jakub Martin <kubam@spacelift.io>
28 lines
845 B
Protocol Buffer
28 lines
845 B
Protocol Buffer
syntax = "proto3";
|
|
package cloudproto1;
|
|
|
|
option go_package = "github.com/placeholderplaceholderplaceholder/opentf/internal/cloudplugin/cloudproto1";
|
|
|
|
// CommandRequest is used to request the execution of a specific command with
|
|
// provided flags. It is the raw args from the terraform cloud command.
|
|
message CommandRequest {
|
|
repeated string args = 1;
|
|
}
|
|
|
|
// CommandResponse contains the result of the command execution, including any
|
|
// output or errors.
|
|
message CommandResponse {
|
|
oneof data {
|
|
int32 exitCode = 1;
|
|
bytes stdout = 2;
|
|
bytes stderr = 3;
|
|
}
|
|
}
|
|
|
|
// PluginService defines the gRPC service to handle available commands and
|
|
// their execution.
|
|
service CommandService {
|
|
// Execute runs a specific command with the provided flags and returns the result.
|
|
rpc Execute(CommandRequest) returns (stream CommandResponse) {}
|
|
}
|