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
cmdandvalue, 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
cmdsand 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
convertfunction.