IO::Iron::PolicyBase - Base package (inherited) for IO::Iron::IronMQ/Cache/Worker::Policy packages.
version 0.14
This class is for internal use only.
Default policies for all clients. These policies allow everything.
Return all possible alternatives.
Parameters:
Return: List of possible alternatives if validation is successful. If the policy is not set, throws a NoIronPolicyException.
Is this policy valid?
Return: Boolean.
Validate a candidate string. Same as method is_valid_policy() but this method throws an exception of type IronPolicyException if the validation fails.
Return: Boolean True if validation is successful, otherwise throws an exception.
Get the policies from file or use the defaults. This function is for internal use.
The configuration is constructed as follows:
Return: ref to policies.
Mikko Koivunalho <mikko.koivunalho@iki.fi>
Please report any bugs or feature requests to bug-io-iron@rt.cpan.org or through the web interface at: http://rt.cpan.org/Public/Dist/Display.html?Name=IO-Iron
This software is copyright (c) 2023 by Mikko Koivunalho.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
The full text of the license can be found in the LICENSE file included with this distribution.
To install IO::Iron, copy and paste the appropriate command in to your terminal.
cpanm
cpanm IO::Iron
CPAN shell
perl -MCPAN -e shell install IO::Iron
For more information on module installation, please visit the detailed CPAN module installation guide.