pub struct IamIdentCacheServ;Implementations§
Source§impl IamIdentCacheServ
impl IamIdentCacheServ
pub async fn add_token( token: &str, token_kind: &IamCertTokenKind, rel_iam_item_id: &str, renewal_expire_sec: Option<i64>, expire_sec: i64, coexist_num: i16, funs: &TardisFunsInst, ) -> TardisResult<()>
pub async fn delete_token_by_token( token: &str, ip: Option<String>, funs: &TardisFunsInst, ) -> TardisResult<()>
pub async fn delete_tokens_and_contexts_by_tenant_or_app( tenant_or_app_id: &str, is_app: bool, funs: &TardisFunsInst, ctx: &TardisContext, ) -> TardisResult<()>
pub async fn delete_tokens_and_contexts_by_account_id( account_id: &str, ip: Option<String>, funs: &TardisFunsInst, ) -> TardisResult<()>
pub async fn exist_token_by_account_id( account_id: &str, funs: &TardisFunsInst, ) -> TardisResult<bool>
pub async fn refresh_account_info_by_account_id( account_id: &str, funs: &TardisFunsInst, ) -> TardisResult<()>
pub async fn delete_lock_by_account_id( account_id: &str, funs: &TardisFunsInst, ) -> TardisResult<()>
pub async fn add_contexts( account_info: &IamAccountInfoResp, tenant_id: &str, funs: &TardisFunsInst, ) -> TardisResult<()>
pub async fn get_account_context( account_id: &str, field: &str, funs: &TardisFunsInst, ) -> TardisResult<TardisContext>
pub async fn get_context( fetch_req: &IamContextFetchReq, funs: &TardisFunsInst, ) -> TardisResult<TardisContext>
pub async fn add_aksk( ak: &str, sk: &str, tenant_id: &str, app_id: Option<String>, expire_sec: i64, funs: &TardisFunsInst, ) -> TardisResult<()>
pub async fn add_or_modify_gateway_rule_info( ak: &str, rule_name: &str, match_method: Option<&str>, value: &str, funs: &TardisFunsInst, ) -> TardisResult<()>
pub async fn get_gateway_cumulative_count( ak: &str, match_method: Option<&str>, funs: &TardisFunsInst, ) -> TardisResult<Option<String>>
pub async fn get_gateway_rule_info( ak: &str, rule_name: &str, match_method: Option<&str>, funs: &TardisFunsInst, ) -> TardisResult<Option<String>>
pub async fn delete_aksk(ak: &str, funs: &TardisFunsInst) -> TardisResult<()>
pub async fn add_double_auth( account_id: &str, funs: &TardisFunsInst, ) -> TardisResult<()>
pub async fn delete_double_auth( account_id: &str, funs: &TardisFunsInst, ) -> TardisResult<()>
Auto Trait Implementations§
impl Freeze for IamIdentCacheServ
impl RefUnwindSafe for IamIdentCacheServ
impl Send for IamIdentCacheServ
impl Sync for IamIdentCacheServ
impl Unpin for IamIdentCacheServ
impl UnwindSafe for IamIdentCacheServ
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more