pulumi/sdk/go/common/resource/config/testdata/repr
Pat Gavlin 6756c12fd0
[config] Clean up implementation (#13814)
These changes replace the idiosyncratic implementation of some of the
config Map and Value APIs with (hopefully) more straightforward code.

The fundamental representation of a config.Value remains a (value,
secure, object) tuple, where value is either a plain, possible-encrypted
string value or the JSON encoding of an object value. All operations on
values that need to observe the object value itself still decode the
JSON representation into a richer representation. This richer
representation, however, is no longer composed of `any` values: instead,
it is composed of `object` values. These values contain a restricted set
of types and directly track whether or not their contents are a secure
string value. The object-based representation allows for much clearer
implementations of the marshaling and traversal code without breaking
compatibility.

In addition to the new implementation for config.Value, these changes
add a config.Plaintext type that represents a plaintext config value. A
Plaintext value can be created manually or by decrypting a Value, and
can be encrypted and converted to a Value. This allows for more natural
creation and manipulation of config values.
2023-10-09 04:51:21 +00:00
..
0.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
0.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
0.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
1.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
1.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
1.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
2.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
2.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
2.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
3.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
3.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
3.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
4.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
4.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
4.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
5.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
5.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
5.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
6.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
6.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
6.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
7.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
7.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
7.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
8.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
8.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
8.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
9.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
9.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
9.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
10.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
10.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
10.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
11.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
11.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
11.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
12.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
12.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
12.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
13.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
13.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
13.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
14.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
14.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
14.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
15.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
15.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
15.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
16.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
16.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
16.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
17.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
17.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
17.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
18.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
18.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
18.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
19.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
19.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
19.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
20.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
20.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
20.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
21.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
21.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
21.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
22.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
22.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
22.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
23.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
23.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
23.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
24.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
24.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
24.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
25.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
25.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
25.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
26.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
26.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
26.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
27.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
27.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
27.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
28.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
28.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
28.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
29.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
29.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
29.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
30.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
30.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
30.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
31.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
31.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
31.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
32.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
32.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
32.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
33.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
33.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
33.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
34.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
34.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
34.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
35.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
35.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
35.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
36.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
36.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
36.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
37.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
37.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
37.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
38.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
38.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
38.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
39.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
39.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
39.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
40.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
40.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
40.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
41.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
41.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
41.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
42.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
42.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
42.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
43.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
43.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
43.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
44.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
44.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
44.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
45.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
45.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
45.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
46.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
46.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
46.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
47.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
47.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
47.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
48.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
48.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
48.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
49.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
49.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
49.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
50.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
50.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
50.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
51.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
51.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
51.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
52.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
52.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
52.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
53.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
53.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
53.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
54.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
54.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
54.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
55.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
55.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
55.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
56.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
56.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
56.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
57.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
57.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
57.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
58.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
58.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
58.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
59.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
59.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
59.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
60.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
60.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
60.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
61.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
61.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
61.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
62.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
62.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
62.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
63.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
63.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
63.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
64.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
64.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
64.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
65.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
65.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
65.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
66.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
66.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
66.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
67.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
67.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
67.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
68.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
68.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
68.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
69.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
69.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
69.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
70.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
70.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
70.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
71.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
71.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
71.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
72.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
72.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
72.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
73.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
73.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
73.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
74.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
74.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
74.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
75.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
75.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
75.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
76.expected.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
76.json [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
76.yaml [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00