putil

package
v0.24.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package putil contains utility functions for working with [resource.PropertyValue]s.

Index

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

MakeComputed wraps v in a computed value if it is not already computed.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL