module

LavinMQ::PolicyTarget

Instance methods

after_policy_applied

This can be overriden if the child class needs to do something after a policy has been applied.

Source
apply_policy(policy : Policy | Nil, operator_policy : OperatorPolicy | Nil, generation : UInt64 | Nil = nil)

Policy arguments are staged by clear_policy_arguments and apply_policy_argument, and only take effect in commit_policy_arguments, so a re-apply never exposes the resource without its policy.

A generation older than the newest one applied means a later apply_policies run, with newer policies, got here first: skip it.

Source
apply_policy_argument(key : String, value : JSON::Any) : Bool

Return true if applied

Source
clear_policy
Source
clear_policy_arguments
Source
effective_policy_args
Source
operator_policy
Source
policy
Source
reapply_policy
Source