Virani::Client - Client for remotely accessing Virani vis HTTP or HTTPS.
Version 0.0.1
Quick summary of what the module does.
Perhaps a little code snippet.
use Virani::Client; my $virani_client = Virani::Client->new(url=>$url);
Initiates the object.
- url :: The URL to use to contact mojo-virani by. Default :: undef - apikey :: The API key if needed. Default :: undef - timeout :: Timeout for fetching it in seconds. Default :: 60 - verify_hostname :: Check the cert if using HTTPS. Default :: 1
Of the above keys, only 'url' is a requirement.
If verify_hostname is undef, the following enviromental variables are checked in the following order.
VIRANI_VERIFY_HOSTNAME HTTPS_VERIFY_HOSTNAME PERL_LWP_VERIFY_HOSTNAME
Reaches out via HTTP or HTTPS and fetches the PCAP and JSON metadata.
- start :: A L<Time::Piece> object of when to start looking. - Default :: undef - end :: A L<Time::Piece> object of when to stop looking. - Default :: undef - filter :: The BPF or tshark filter to use. - Default :: undef - set :: The PCAP set to use. Will use what ever the default is set to if undef or blank. - Default :: undef - file :: The file to output to. The metadata writen to a file of the same name with '.json' appended. - Default :: out.pcap - type :: 'tcpdump', 'bpf2tshark', or 'tshark', depending on what one wants the filter todo. If not set, the remote system uses what ever is defined as the default for that set. - Default :: undef
The following are required
start end filter
IF the command success the raw unparsed JSON of the metadata is returned.
my $raw_metadata_json=$virani_client->(start=>$start, end=>$end, filter=>$filter);
Zane C. Bowers-Hadley, <vvelox at vvelox.net>
<vvelox at vvelox.net>
Please report any bugs or feature requests to bug-virani at rt.cpan.org, or through the web interface at https://rt.cpan.org/NoAuth/ReportBug.html?Queue=Virani. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-virani at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Virani::Client
You can also look for information at:
RT: CPAN's request tracker (report bugs here)
https://rt.cpan.org/NoAuth/Bugs.html?Dist=Virani
CPAN Ratings
https://cpanratings.perl.org/d/Virani
Search CPAN
https://metacpan.org/release/Virani
This software is Copyright (c) 2023 by Zane C. Bowers-Hadley.
This is free software, licensed under:
The GNU Lesser General Public License, Version 2.1, February 1999
To install Virani, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Virani
CPAN shell
perl -MCPAN -e shell install Virani
For more information on module installation, please visit the detailed CPAN module installation guide.