package guardian

  1. Overview
  2. Docs
module Authorizable : sig ... end
val find : ?ctx:(string * string) list -> 'a -> Uuid.Actor.t -> ('a Guardian.Authorizable.t, string) Lwt_result.t
val find_roles : ?ctx:(string * string) list -> Uuid.Actor.t -> (ActorSet.t, string) Lwt_result.t
val find_owner : ?ctx:(string * string) list -> Uuid.Actor.t -> (Uuid.Actor.t option, string) Lwt_result.t
val save_rule : ?ctx:(string * string) list -> auth_rule -> (unit, string) Stdlib.result Lwt.t
val delete_rule : ?ctx:(string * string) list -> Guardian.Authorizer.auth_rule -> (unit, string) Lwt_result.t
val find_rules : ?ctx:(string * string) list -> target_spec -> (Guardian.Authorizer.auth_rule list, string) Lwt_result.t
val grant_roles : ?ctx:(string * string) list -> Uuid.Actor.t -> ActorSet.t -> (unit, string) Lwt_result.t
val revoke_roles : ?ctx:(string * string) list -> Uuid.Actor.t -> ActorSet.t -> (unit, string) Lwt_result.t
val save_owner : ?ctx:(string * string) list -> ?owner:Uuid.Actor.t -> Uuid.Actor.t -> (unit, string) Stdlib.result Lwt.t
OCaml

Innovation. Community. Security.