View Source Actors.Security.Acl behaviour (spawn v2.0.0-RC5)

Acl is a acces control list helper module

Summary

Types

base_policies_path()

@type base_policies_path() :: String.t()

invocation()

@type invocation() :: Spawn.InvocationRequest.t()

policies()

@type policies() :: [AclPolicy.t()]

Callbacks

get_policies!()

@callback get_policies!() :: policies()

is_authorized?(policies, invocation)

@callback is_authorized?(policies(), invocation()) :: boolean()

load_acl_policies(base_policies_path)

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