pulumi/pkg/resource/stack
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
..
testdata [secrets] Fix + refactor bulk decryption. (#9039) 2022-02-25 08:51:52 -08:00
checkpoint.go filestate/internal: Use stack reference, not name 2023-03-14 09:27:06 -07:00
checkpoint_test.go all: Drop ioutil 2023-01-06 16:35:14 -08:00
deployment.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
deployment_test.go deps: Upgrade to pgregory.net/rapid v0.5 2023-02-16 12:04:07 -08:00
doc.go Document Go packages (#6009) 2021-01-11 11:07:59 -07:00
plan.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
secrets.go Move SecretsProvider to pkg/secrets 2023-01-12 19:03:29 +00:00
secrets_test.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00