Struct oso_cloud::OsoWithContext
source · pub struct OsoWithContext<'a> { /* private fields */ }Implementations§
source§impl<'ctxt> OsoWithContext<'ctxt>
impl<'ctxt> OsoWithContext<'ctxt>
pub async fn actions<'a>( &self, actor: impl Into<Value<'a>>, resource: impl Into<Value<'a>> ) -> Result<Vec<String>, Error>
pub async fn list<'a>( &self, actor: impl Into<Value<'a>>, action: &str, resource_type: &str ) -> Result<Vec<String>, Error>
sourcepub async fn query<'a>(
&self,
fact: &Fact<'a>
) -> Result<Vec<Fact<'static>>, Error>
pub async fn query<'a>( &self, fact: &Fact<'a> ) -> Result<Vec<Fact<'static>>, Error>
Query Oso Cloud for any predicate and any combination of concrete and wildcard arguments.
Unlike oso.get, which only lists facts you’ve added, you can use oso.query to list
derived information about any rule in your policy.