awspolicy

package module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2019 License: MPL-2.0 Imports: 7 Imported by: 135

README

AWS Policy Equivalence Library

This library checks for structural equivalence of two AWS policy documents. See Godoc for more information on usage.

CI

Travis CI Build Status

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

func PoliciesAreEquivalent(policy1, policy2 string) (bool, error)

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.

Jump to

Keyboard shortcuts

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