carny v1.0.0 Carny.Statement

Associates a bucket of resources with an :allow or :deny. On their own not sure useful main use is to be composed into Policies.

Link to this section Summary

Functions

Checks if an identifier passes a statement.

Link to this section Functions

Link to this function

passes?(identifier, statement)

Checks if an identifier passes a statement.

Examples

iex> Carny.Statement.passes?(%Carny.Identifier{}, %Carny.Statement{resources: [%Carny.Identifier{}]})
true