mirror of https://github.com/pulumi/pulumi.git
![]() The current pattern of using backend.Stack values in the CLI but accepting backend.StackReference values in backend methods leads to frequent transitions between these types. In the case of the HTTP backend, the transition from a StackReference to a Stack requires an API call. These changes refactor the backend.Backend API such that most of its methods accept backend.Stack values in place of backend.StackReference values, which avoids these transitions. This removes two calls to the getStack API on the startup path of a `pulumi preview`. |
||
---|---|---|
.. | ||
client | ||
backend.go | ||
console.go | ||
console_test.go | ||
policypack.go | ||
snapshot.go | ||
stack.go | ||
state.go |