pulumi/pkg/resource
Fraser Waters 14fd8f9b12
filestate/internal: Use stack reference, not name
filestate backend currently operates exclusively with stack names.
All its internal pass around just the stack name, and nothing else.
This makes it a bit difficult to add project support to the backend.

This is a refactor in advance of adding project support,
changing the internals of filestate to pass a stack reference around.
It inspects the reference directly for all its operations.

Note: This contains no behavioral changes.
Name and FullyQualifiedName currently both return just the stack name.
In a future change, once project name is incorporated into the object,
FullyQualifiedName will be able to return `organization/$project/$name`.

Extracted from #12134

Co-authored-by: Abhinav Gupta <abhinav@pulumi.com>
2023-03-14 09:27:06 -07:00
..
analyzer all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
deploy all: Don't use cmdutil.Diag in tests 2023-03-13 12:54:04 -07:00
edit all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
graph all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
provider all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
stack filestate/internal: Use stack reference, not name 2023-03-14 09:27:06 -07:00
testdata ci: radical idea - what if slow tests & no stdout makes GH consider runner dead? 2022-03-06 14:52:13 -08:00