View Source Actors.Security.Acl behaviour (spawn v1.3.2)

Acl is a acces control list helper module

Summary

Types

@type base_policies_path() :: String.t()
@type invocation() :: Eigr.Functions.Protocol.InvocationRequest.t()
@type policies() :: [AclPolicy.t()]

Callbacks

@callback get_policies!() :: policies()
Link to this callback

is_authorized?(policies, invocation)

View Source
@callback is_authorized?(policies(), invocation()) :: boolean()
Link to this callback

load_acl_policies(base_policies_path)

View Source
@callback load_acl_policies(base_policies_path()) :: policies()