Documentation ¶
Overview ¶
Package putil contains utility functions for working with [resource.PropertyValue]s.
Index ¶
- func DeepEquals(a, b resource.PropertyValue) bool
- func IsComputed(v resource.PropertyValue) bool
- func IsSecret(v resource.PropertyValue) bool
- func MakeComputed(v resource.PropertyValue) resource.PropertyValue
- func MakeKnown(v resource.PropertyValue) resource.PropertyValue
- func MakePublic(v resource.PropertyValue) resource.PropertyValue
- func MakeSecret(v resource.PropertyValue) resource.PropertyValue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeepEquals ¶
func DeepEquals(a, b resource.PropertyValue) bool
DeepEquals checks if a and b are equal.
DeepEquals is different from a.DeepEquals(b) in two ways:
1. If does secret/computed/output folding, so secret(computed(v)) == computed(secret(v)).
2. It doesn't panic when computed values are present.
func IsComputed ¶
func IsComputed(v resource.PropertyValue) bool
IsComputed checks if v is some form of a computed/unknown value.
func IsSecret ¶
func IsSecret(v resource.PropertyValue) bool
IsSecret checks if v should be treated as secret.
func MakeComputed ¶
func MakeComputed(v resource.PropertyValue) resource.PropertyValue
MakeComputed wraps v in a computed value if it is not already computed.
func MakeKnown ¶
func MakeKnown(v resource.PropertyValue) resource.PropertyValue
func MakePublic ¶
func MakePublic(v resource.PropertyValue) resource.PropertyValue
func MakeSecret ¶
func MakeSecret(v resource.PropertyValue) resource.PropertyValue
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.