package guardian

  1. Overview
  2. Docs
module Authorizable : sig ... end
val find : ?ctx:(string * string) list -> 'kind -> Guardian.Uuid.Actor.t -> ('kind authorizable, string) monad
val find_roles : ?ctx:(string * string) list -> Guardian.Uuid.Actor.t -> (actor_role_set, string) monad
val find_rules : ?ctx:(string * string) list -> target_spec -> (auth_rule list, string) monad
val find_owner : ?ctx:(string * string) list -> Guardian.Uuid.Actor.t -> (Guardian.Uuid.Actor.t option, string) monad
val save_rule : ?ctx:(string * string) list -> auth_rule -> (unit, string) monad
val delete_rule : ?ctx:(string * string) list -> auth_rule -> (unit, string) monad
val grant_roles : ?ctx:(string * string) list -> Guardian.Uuid.Actor.t -> actor_role_set -> (unit, string) monad
val revoke_roles : ?ctx:(string * string) list -> Guardian.Uuid.Actor.t -> actor_role_set -> (unit, string) monad
val save_owner : ?ctx:(string * string) list -> ?owner:Guardian.Uuid.Actor.t -> Guardian.Uuid.Actor.t -> (unit, string) monad
val save_rules : ?ctx:(string * string) list -> auth_rule list -> (auth_rule list, auth_rule list) Lwt_result.t
val revoke_role : ?ctx:(string * string) list -> Guardian.Uuid.Actor.t -> role -> (unit, string) monad
val find_roles_exn : ?ctx:(string * string) list -> Guardian.Uuid.Actor.t -> actor_role_set Lwt.t
val find_authorizable : ?ctx:(string * string) list -> 'kind -> Guardian.Uuid.Actor.t -> ('kind authorizable, string) Lwt_result.t
val decorate : ?ctx:(string * string) list -> ('a -> 'kind authorizable) -> 'a -> ('kind authorizable, string) Lwt_result.t
OCaml

Innovation. Community. Security.