pulumi/pkg/backend/httpstate
Pat Gavlin 14da941b0c
Standardize on Stack for backend methods. (#3336)
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`.
2019-10-14 14:30:42 -07:00
..
client Support renaming stack projects (#3292) 2019-10-03 09:13:13 -07:00
backend.go Standardize on Stack for backend methods. (#3336) 2019-10-14 14:30:42 -07:00
console.go Rename backend packages 2018-09-05 07:32:42 -07:00
console_test.go Rename backend packages 2018-09-05 07:32:42 -07:00
policypack.go Use PulumiPolicy.yaml instead of Pulumi.yaml for PolicyPacks 2019-10-10 10:15:51 -07:00
snapshot.go Fix an issue updating a newly created stack from the local backend 2019-05-10 17:07:52 -07:00
stack.go Stop ignoring HTTP errors at token validation (#3208) 2019-09-10 13:24:30 -07:00
state.go Standardize on Stack for backend methods. (#3336) 2019-10-14 14:30:42 -07:00