Documentation ¶
Overview ¶
Package awspolicy contains functions to compare structural equivalence of AWS IAM policies.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PoliciesAreEquivalent ¶
PoliciesAreEquivalent tests for the structural equivalence of two AWS policies. It does not read into the semantics, other than treating single element string arrays as equivalent to a string without an array, as the AWS endpoints do.
It will, however, detect reordering and ignore whitespace.
Returns true if the policies are structurally equivalent, false otherwise. If either of the input strings are not valid JSON, false is returned along with an error.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.