Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aajtodd/riam
/ functions
Functions
32 in github.com/aajtodd/riam
⨍
Functions
32
◇
Types & classes
9
↓ 7 callers
Method
create
Create and store a new policy
src/managers/memory.rs:27
↓ 6 callers
Method
attach
Attach a policy to a principal
src/managers/memory.rs:94
↓ 6 callers
Method
get_policies_for_principal
Get all policies for a given principal
src/managers/memory.rs:81
↓ 5 callers
Function
matches
Test whether the incoming pattern string 's' matches the given pattern string 'pattern'. A wildcard '*' character may appear anywhere in the `pattern
src/wildcard.rs:11
↓ 4 callers
Method
get
Get a policy by id
src/managers/memory.rs:54
↓ 2 callers
Method
is_allowed
Check if an action is allowed or not
src/engine.rs:52
↓ 1 callers
Method
delete
Delete a policy
src/managers/memory.rs:63
↓ 1 callers
Method
detach
Detach a policy from a principal
src/managers/memory.rs:103
↓ 1 callers
Method
is_valid
Check if the policy is (structurally) valid
src/policy.rs:65
↓ 1 callers
Method
update
Update an existing policy
src/managers/memory.rs:40
Function
bench_is_allowed
(b: &mut Bencher)
src/engine.rs:172
Function
bench_match_exact
(b: &mut Bencher)
src/wildcard.rs:100
Function
bench_match_wildcard
(b: &mut Bencher)
src/wildcard.rs:92
Function
de_scalar_or_seq_string
custom deserialize for policy statements which deserializes scalar strings and sequence of strings both to Vec<String>. If the input is a scalar strin
src/policy.rs:82
Method
expecting
(&self, formatter: &mut fmt::Formatter)
src/policy.rs:91
Method
from
(err: io::Error)
src/error.rs:27
Function
get_policies_by_principal
()
tests/memory_manager.rs:7
Method
list
List all policies
src/managers/memory.rs:76
Method
new
Create a new engine with the given policy manager
src/engine.rs:47
Method
new
Create a new in-memory manager
src/managers/memory.rs:17
Function
se_scalar_or_seq_string
custom serialize for Vec<String> for policy statements. If the vec length is 1 the output will be flattened to just that single string. Otherwise it w
src/policy.rs:119
Function
test_engine_is_allowed
()
src/engine.rs:113
Function
test_matches
()
src/wildcard.rs:69
Function
test_memory_manager_attach_detach
()
src/managers/memory.rs:118
Function
test_memory_manager_delete
()
src/managers/memory.rs:182
Function
test_memory_manager_update
()
src/managers/memory.rs:151
Function
test_policy_is_valid
()
src/policy.rs:262
Function
test_policy_serialization
()
src/policy.rs:208
Function
test_statement_serialization_no_sid
()
src/policy.rs:144
Function
test_statement_serialization_scalars
()
src/policy.rs:177
Method
visit_seq
(self, visitor: S)
src/policy.rs:102
Method
visit_str
(self, value: &str)
src/policy.rs:95