package guardian

  1. Overview
  2. Docs
Role-based access control for OCaml

Install

dune-project
 Dependency

Authors

Maintainers

Sources

0.4.0.tar.gz
md5=c0526b48e6fe938c209dfd5810082578
sha512=0fb1878c12848c2e5690444035e225cdd7b80f0fa98ee5a1db5e2f41f01fb5db3c8fc4d81b9c95da1859d6c803d0a253458e213dea8fa0924d33f4055df8c01f

doc/guardian.backend/Guardian_backend/MariaDb/Make/DBCache/index.html

Module Make.DBCacheSource

Sourceval pool_of_ctx : (CCString.t * string) CCList.t CCOption.t -> string CCOption.t
Sourcetype cache_key = {
  1. actor : string;
  2. pool : string option;
  3. any_id : bool;
  4. permission : Guard.Permission.t;
  5. target_uuid : Guard.Uuid.Target.t option;
  6. model : TargetModel.t option;
}
Sourcemodule CacheKey : sig ... end
Sourcemodule CacheValue : sig ... end
Sourcemodule LruCache : sig ... end
Sourceval capacity : int
Sourceval _cache : LruCache.t ref
Sourceval clear : unit -> unit
Sourceval clear_actor : Guard.Uuid.Actor.t -> unit

Remove all cached entries for a single actor. Used when that actor's roles or direct permissions change.

Sourceval store : (CCString.t * string) CCList.t CCOption.t -> bool -> Guard.Uuid.Actor.t -> Guard.Permission.t -> Guard.Uuid.Target.t option -> TargetModel.t option -> LruCache.v -> unit