Engine services#

pulumi/pulumi:proto/pulumi/engine.proto

Services#

πŸ”Œ Engine#

Engine is an auxiliary service offered to language and resource provider plugins. Its main purpose today is to serve as a common logging endpoint, but it also serves as a state storage mechanism for language hosts that can’t store their own global state.

πŸ“ž Log#

‡️ LogRequest ‴️ .google.protobuf.Empty

Log logs a global message in the engine, including errors and warnings.

πŸ“ž GetRootResource#

‡️ GetRootResourceRequest ‴️ GetRootResourceResponse

GetRootResource gets the URN of the root resource, the resource that should be the root of all otherwise-unparented resources.

πŸ“ž SetRootResource#

‡️ SetRootResourceRequest ‴️ SetRootResourceResponse

SetRootResource sets the URN of the root resource.

πŸ“ž StartDebugging#

‡️ StartDebuggingRequest ‴️ .google.protobuf.Empty

StartDebugging indicates to the engine that the program has started under a debugger, and the engine should notify the user of how to connect to the debugger.

πŸ“ž RequirePulumiVersion#

‡️ RequirePulumiVersionRequest ‴️ RequirePulumiVersionResponse

RequirePulumiVersion checks that the version of the engine satisfies the passed in range.

Messages#

πŸ“¨ GetRootResourceRequest#

empty.

πŸ“¨ GetRootResourceResponse#

urn string

the URN of the root resource, or the empty string if one was not set.

πŸ“¨ LogRequest#

severity LogSeverity

the logging level of this message.

message string

the contents of the logged message.

urn string

the (optional) resource urn this log is associated with.

streamId int32

the (optional) stream id that a stream of log messages can be associated with. This allows clients to not have to buffer a large set of log messages that they all want to be conceptually connected. Instead the messages can be sent as chunks (with the same stream id) and the end display can show the messages as they arrive, while still stitching them together into one total log message.

0/not-given means: do not associate with any stream.

ephemeral bool

Optional value indicating whether this is a status message.

πŸ“¨ RequirePulumiVersionRequest#

pulumi_version_range string

A version range to check against the engine (CLI) version. If the version is not compatible with the specified range, an error is returned. The supported syntax for ranges is that of https://pkg.go.dev/github.com/blang/semver#ParseRange. For example β€œ>=3.0.0”, or β€œ!3.1.2”. Ranges can be AND-ed together by concatenating with spaces β€œ>=3.5.0 !3.7.7”, meaning greater-or-equal to 3.5.0 and not exactly 3.7.7. Ranges can be OR-ed with the || operator: β€œ<3.4.0 || >3.8.0”, meaning less-than 3.4.0 or greater-than 3.8.0.

πŸ“¨ RequirePulumiVersionResponse#

empty

πŸ“¨ SetRootResourceRequest#

urn string

the URN of the root resource, or the empty string.

πŸ“¨ SetRootResourceResponse#

empty.

πŸ“¨ StartDebuggingRequest#

config google.protobuf.Struct

the debug configuration parameters. These are meant to be in the right format for the DAP protocol to consume.

message string

the string to display to the user with instructions on how to connect to the debugger.