move policy out of iam

This commit is contained in:
weisd
2025-03-26 10:18:03 +08:00
parent 545ae79e44
commit c8e13b8ab5
56 changed files with 539 additions and 378 deletions
+5 -6
View File
@@ -7,14 +7,13 @@ use std::{
use arc_swap::{ArcSwap, AsRaw, Guard};
use log::warn;
use policy::{
auth::UserIdentity,
policy::{Args, PolicyDoc},
};
use time::OffsetDateTime;
use crate::{
auth::UserIdentity,
policy::PolicyDoc,
store::{GroupInfo, MappedPolicy},
sys::Args,
};
use crate::store::{GroupInfo, MappedPolicy};
pub struct Cache {
pub policy_docs: ArcSwap<CacheEntity<PolicyDoc>>,