NAME
Net::FreeIPA::Convert provides type conversion for Net::FreeIPA
Public functions
- convert
-
Convert/cast value to type.
If a type is not found in the dispatch tabel, log a warning and return the value as-is.
Always returns value, dies when dealing with non-convertable type (using 'FATAL numeric').
- check_command
-
Given the (single) command hashref
cmd
andvalue
, verify the value, convert it and add it towhere
.(Adding to where is required to avoid using intermdiadate varaibles which can cause problems for the internal types).
Returns errormessage (which is undef on success).
- process_args
-
Given the command hasref
cmds
and the arguments passed, return- errmsg: an error message in case of failure
- posarg: arrayref with positional arguments
- opts: hasref with options
- rpc: hashref with options for the RPC call
-
(All options starting with
__
are passed as options toNet::FreeIPA::RPC::rpc
, with__
prefix removed).
Positional argument and option values are converted using
convert
function.