WGmeta::ValidAttributes - Supported attribute configurations
In this module all supported attributes are configured (and as well their possible validation function). Attributes configured here affect how the parser stores them
use Wireguard::WGmeta::ValidAttributes; my $attr_type = get_attr_type($attr_name); if ($attr_type == ATTR_TYPE_IS_WG_META){ print "Yiii-haa"; }
(Default) - wg-meta attributes
wg-quick attribute
Original Wireguard attribute, valid for [Interface] sections.
[Interface]
Original Wireguard attribute, valid for [Peer] sections.
[Peer]
Any unknown attribute types
Mapping of all known attributes
[Generated] Static mapping from in_config_name to attr_key.
Shorthand for getting the attribute type
To install Wireguard::WGmeta, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Wireguard::WGmeta
CPAN shell
perl -MCPAN -e shell install Wireguard::WGmeta
For more information on module installation, please visit the detailed CPAN module installation guide.