View Source SensitiveData.Guards (Sensitive Data v0.1.0)
Guards for sensitive data wrappers.
This module includes guards that work with SensitiveData.Wrapper.t/0
wrappers. For example:
import SensitiveData.Guards, only: [is_sensitive_binary: 1]
def send_request(api_key) when is_sensitive_binary(api_key) do
...
end
For more information on guards, refer to Elixir's Patterns and guards page.
Summary
Functions
Returns true
if term
is a SensitiveData.Wrapper.t/0
;
otherwise returns false.
Returns true
if term
is a SensitiveData.Wrapper.t/0
and struct_name
is the wrapper implementation module; otherwise returns false.
Returns true
if term
is a SensitiveData.Wrapper.t/0
containing an
atom; otherwise returns false.
Returns true
if term
is a SensitiveData.Wrapper.t/0
containing a
binary; otherwise returns false.
Returns true
if term
is a SensitiveData.Wrapper.t/0
containing a
bitstring; otherwise returns false.
Returns true
if term
is a SensitiveData.Wrapper.t/0
containing a
boolean; otherwise returns false.
Returns true
if term
is a SensitiveData.Wrapper.t/0
containing an
exception; otherwise returns false.
Returns true
if term
is a SensitiveData.Wrapper.t/0
containing an
exception of name
; otherwise returns false.
Returns true
if term
is a SensitiveData.Wrapper.t/0
containing a
float; otherwise returns false.
Returns true
if term
is a SensitiveData.Wrapper.t/0
containing a
function; otherwise returns false.
Returns true
if term
is a SensitiveData.Wrapper.t/0
containing a
function that can be applied with arity
number of arguments; otherwise
returns false.
Returns true
if term
is a SensitiveData.Wrapper.t/0
containing an
integer; otherwise returns false.
Returns true
if term
is a SensitiveData.Wrapper.t/0
containing a list;
otherwise returns false.
Returns true
if term
is a SensitiveData.Wrapper.t/0
containing a map;
otherwise returns false.
Returns true
if term
is a SensitiveData.Wrapper.t/0
containing nil
;
otherwise returns false.
Returns true
if term
is a SensitiveData.Wrapper.t/0
containing an
integer or a float; otherwise returns false.
Returns true
if term
is a SensitiveData.Wrapper.t/0
containing a
tuple; otherwise returns false.
Functions
Returns true
if term
is a SensitiveData.Wrapper.t/0
;
otherwise returns false.
Allowed in guard tests.
Returns true
if term
is a SensitiveData.Wrapper.t/0
and struct_name
is the wrapper implementation module; otherwise returns false.
Allowed in guard tests.
Returns true
if term
is a SensitiveData.Wrapper.t/0
containing an
atom; otherwise returns false.
Allowed in guard tests.
Returns true
if term
is a SensitiveData.Wrapper.t/0
containing a
binary; otherwise returns false.
Allowed in guard tests.
Returns true
if term
is a SensitiveData.Wrapper.t/0
containing a
bitstring; otherwise returns false.
Allowed in guard tests.
Returns true
if term
is a SensitiveData.Wrapper.t/0
containing a
boolean; otherwise returns false.
Allowed in guard tests.
Returns true
if term
is a SensitiveData.Wrapper.t/0
containing an
exception; otherwise returns false.
Allowed in guard tests.
Returns true
if term
is a SensitiveData.Wrapper.t/0
containing an
exception of name
; otherwise returns false.
Allowed in guard tests.
Returns true
if term
is a SensitiveData.Wrapper.t/0
containing a
float; otherwise returns false.
Allowed in guard tests.
Returns true
if term
is a SensitiveData.Wrapper.t/0
containing a
function; otherwise returns false.
Allowed in guard tests.
Returns true
if term
is a SensitiveData.Wrapper.t/0
containing a
function that can be applied with arity
number of arguments; otherwise
returns false.
Allowed in guard tests.
Returns true
if term
is a SensitiveData.Wrapper.t/0
containing an
integer; otherwise returns false.
Allowed in guard tests.
Returns true
if term
is a SensitiveData.Wrapper.t/0
containing a list;
otherwise returns false.
Allowed in guard tests.
Returns true
if term
is a SensitiveData.Wrapper.t/0
containing a map;
otherwise returns false.
Allowed in guard tests.
Returns true
if term
is a SensitiveData.Wrapper.t/0
containing nil
;
otherwise returns false.
Allowed in guard tests.
Returns true
if term
is a SensitiveData.Wrapper.t/0
containing an
integer or a float; otherwise returns false.
Allowed in guard tests.
Returns true
if term
is a SensitiveData.Wrapper.t/0
containing a
tuple; otherwise returns false.
Allowed in guard tests.