MCPcopy Create free account

hub / github.com/aajtodd/riam / functions

Functions32 in github.com/aajtodd/riam

↓ 7 callersMethodcreate
Create and store a new policy
src/managers/memory.rs:27
↓ 6 callersMethodattach
Attach a policy to a principal
src/managers/memory.rs:94
↓ 6 callersMethodget_policies_for_principal
Get all policies for a given principal
src/managers/memory.rs:81
↓ 5 callersFunctionmatches
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 callersMethodget
Get a policy by id
src/managers/memory.rs:54
↓ 2 callersMethodis_allowed
Check if an action is allowed or not
src/engine.rs:52
↓ 1 callersMethoddelete
Delete a policy
src/managers/memory.rs:63
↓ 1 callersMethoddetach
Detach a policy from a principal
src/managers/memory.rs:103
↓ 1 callersMethodis_valid
Check if the policy is (structurally) valid
src/policy.rs:65
↓ 1 callersMethodupdate
Update an existing policy
src/managers/memory.rs:40
Functionbench_is_allowed
(b: &mut Bencher)
src/engine.rs:172
Functionbench_match_exact
(b: &mut Bencher)
src/wildcard.rs:100
Functionbench_match_wildcard
(b: &mut Bencher)
src/wildcard.rs:92
Functionde_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
Methodexpecting
(&self, formatter: &mut fmt::Formatter)
src/policy.rs:91
Methodfrom
(err: io::Error)
src/error.rs:27
Functionget_policies_by_principal
()
tests/memory_manager.rs:7
Methodlist
List all policies
src/managers/memory.rs:76
Methodnew
Create a new engine with the given policy manager
src/engine.rs:47
Methodnew
Create a new in-memory manager
src/managers/memory.rs:17
Functionse_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
Functiontest_engine_is_allowed
()
src/engine.rs:113
Functiontest_matches
()
src/wildcard.rs:69
Functiontest_memory_manager_attach_detach
()
src/managers/memory.rs:118
Functiontest_memory_manager_delete
()
src/managers/memory.rs:182
Functiontest_memory_manager_update
()
src/managers/memory.rs:151
Functiontest_policy_is_valid
()
src/policy.rs:262
Functiontest_policy_serialization
()
src/policy.rs:208
Functiontest_statement_serialization_no_sid
()
src/policy.rs:144
Functiontest_statement_serialization_scalars
()
src/policy.rs:177
Methodvisit_seq
(self, visitor: S)
src/policy.rs:102
Methodvisit_str
(self, value: &str)
src/policy.rs:95