Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JSONAlphabetically ¶
JSONAlphabetically normalizes the JSON structure by recursively sorting the keys of all objects (maps) in alphabetical order. It ensures that:
- All keys within objects are sorted consistently across all nesting levels.
- Arrays (slices) retain their original order and are not sorted. However, any nested objects within arrays are normalized by sorting their keys alphabetically.
This approach preserves the semantics of JSON arrays while ensuring consistent ordering of keys in objects for easier comparison or processing.
func PreserveSecretSettings ¶
func PreserveSecretSettings(config, resp interface{}) error
PreserveSecretSettings recursively searches through settings catalog HCL JSON structure for secret settings and preserves the value and valueState from the config settings. This is performed recursively throughout the JSON settings catalog and It returns an error if any unexpected data types or mismatches are encountered.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.