pulumi/sdk/nodejs/runtime
Fraser Waters a92101cd49 Add GetState to resource monitor
This new method is used to return the state of the resource monitor for
a deployment directly to a client.

This helps with three major areas:
1) `Construct` and `Call` no longer need to be kept up to date with any new
   features added to `Run`. All they need is the resource monitor target
   and can use `GetState` to fetch all other information.
2) We no longer need to find a way to pass all the information from
   `Run` from the runtime host to the runtime SDKs. Instead all we need
   to pass is the (again) the resource monitor target, and on startup
   the SDK can fetch the rest of the information over gRPC. In fact we
   don't even need to add new information to `Run`, as the language
   runtime host can also just use `GetState` to fetch the latest
   information.
3) Features are now a safe enumeration lookup rather than a set of strings that
   could be typo'd. Further you don't need to make multiple roundtrips to see all
   features supported, the entire set is returned at once.

A few things need pointing out about this change.

Firstly SDKs that use this _also_ need to have a fallback to using the
old envvar based approch because they might be running against an old
engine version.

Secondly this PR doesn't update any of the SDKs to use this. The most
obvious candidate to update first is YAML as that doesn't actually have
an SDK, just the host and the host _doesn't_ need to be backward
compatible because we always tie host and engine versions together in a
single release.
2024-01-02 12:51:45 +00:00
..
closure [sdk/nodejs] closure serializtion, lookup package.json from current directory up to parent directories (#13770) 2023-08-25 17:01:20 +00:00
asyncIterableUtil.ts Apply autoformat 2023-04-28 18:27:10 -04:00
config.ts Apply autoformat 2023-04-28 18:27:10 -04:00
debuggable.ts Use existing PULUMI_DEBUG_PROMISE_LEAKS=1 flag to enable printing 2023-06-15 07:43:05 -07:00
index.ts Add support for async mocks in TS 2023-06-01 13:58:53 +02:00
invoke.ts Update node sdk to use typescript definitions for grpc and protobufs. (#14415) 2023-12-04 15:22:44 +00:00
mocks.ts Move nodejs feature checks to startup (#14856) 2023-12-19 14:35:23 +00:00
resource.ts Move nodejs feature checks to startup (#14856) 2023-12-19 14:35:23 +00:00
rpc.ts Move nodejs feature checks to startup (#14856) 2023-12-19 14:35:23 +00:00
settings.ts Add GetState to resource monitor 2024-01-02 12:51:45 +00:00
stack.ts Warn about undefined stack outputs 2023-07-28 14:33:04 +01:00
state.ts Move nodejs feature checks to startup (#14856) 2023-12-19 14:35:23 +00:00