package guardian

  1. Overview
  2. Docs
module Authorizable : sig ... end
val find : ?ctx:(string * string) list -> 'kind -> Guardian.Uuid.Target.t -> ('kind authorizable_target, string) monad
val find_roles : ?ctx:(string * string) list -> Guardian.Uuid.Target.t -> (target_role_set, string) monad
val find_owner : ?ctx:(string * string) list -> Guardian.Uuid.Target.t -> (Guardian.Uuid.Actor.t option, string) monad
val save_owner : ?ctx:(string * string) list -> ?owner:Guardian.Uuid.Actor.t -> Guardian.Uuid.Target.t -> (unit, string) monad
val decorate : ?ctx:(string * string) list -> ('a -> 'kind authorizable_target) -> 'a -> ('kind authorizable_target, string) Lwt_result.t
val find_checker : ?ctx:(string * string) list -> 'a authorizable_target -> ('b authorizable -> [ `Create | `Read | `Update | `Delete | `Manage ] -> bool, string) Lwt_result.t
val find_role_checker : ?ctx:(string * string) list -> target_role_set -> ('b authorizable -> [ `Create | `Read | `Update | `Delete | `Manage ] -> bool, string) Lwt_result.t
OCaml

Innovation. Community. Security.