Skip to content

Commit a43e57b

Browse files
author
Ivan De Marino
committed
Adding Unknown() and Null() methods to the attr.Value interface
1 parent bdf02ef commit a43e57b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

attr/value.go

+7-2
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,16 @@ type Value interface {
1313
// Type returns the Type that created the Value.
1414
Type(context.Context) Type
1515

16-
// ToTerraformValue returns the data contained in the Value as
17-
// a tftypes.Value.
16+
// ToTerraformValue returns the data contained in the Value as a tftypes.Value.
1817
ToTerraformValue(context.Context) (tftypes.Value, error)
1918

2019
// Equal must return true if the Value is considered semantically equal
2120
// to the Value passed as an argument.
2221
Equal(Value) bool
22+
23+
// Unknown returns true if the Value is not known.
24+
Unknown() bool
25+
26+
// Null returns true if the Value is null.
27+
Null() bool
2328
}

0 commit comments

Comments
 (0)