The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

WGmeta::ValidAttributes - Supported attribute configurations

DESCRIPTION

In this module all supported attributes are configured (and as well their possible validation function). Attributes configured here affect how the parser stores them

SYNOPSIS

    use Wireguard::WGmeta::ValidAttributes;

    my $attr_type = get_attr_type($attr_name);

    if ($attr_type == ATTR_TYPE_IS_WG_META){
        print "Yiii-haa";
    }

ATTRIBUTE TYPES

ATTR_TYPE_IS_WG_META

(Default) - wg-meta attributes

ATTR_TYPE_IS_WG_QUICK

wg-quick attribute

ATTR_TYPE_IS_WG_ORIG_INTERFACE

Original Wireguard attribute, valid for [Interface] sections.

ATTR_TYPE_IS_WG_ORIG_PEER

Original Wireguard attribute, valid for [Peer] sections.

ATTR_TYPE_IS_UNKNOWN

Any unknown attribute types

KNOWN_ATTRIBUTES

Mapping of all known attributes

NAME_2_KEYS_MAPPING

[Generated] Static mapping from in_config_name to attr_key.

get_attr_type($attr_name)

Shorthand for getting the attribute type