Sort %services
entries by key
This commit is contained in:
parent
b85d86795e
commit
3199f791d8
1 changed files with 118 additions and 118 deletions
236
ddclient
236
ddclient
|
@ -495,6 +495,72 @@ my %variables = (
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
my %services = (
|
my %services = (
|
||||||
|
'changeip' => {
|
||||||
|
'updateable' => undef,
|
||||||
|
'update' => \&nic_changeip_update,
|
||||||
|
'examples' => \&nic_changeip_examples,
|
||||||
|
'variables' => merge(
|
||||||
|
{ 'server' => setv(T_FQDNP, 1, 0, 'nic.changeip.com', undef) },
|
||||||
|
{ 'min-interval' => setv(T_DELAY, 0, 0, 0, interval('5m')), },
|
||||||
|
$variables{'service-common-defaults'},
|
||||||
|
),
|
||||||
|
},
|
||||||
|
'cloudflare' => {
|
||||||
|
'updateable' => undef,
|
||||||
|
'update' => \&nic_cloudflare_update,
|
||||||
|
'examples' => \&nic_cloudflare_examples,
|
||||||
|
'variables' => merge(
|
||||||
|
{ 'server' => setv(T_FQDNP, 1, 0, 'api.cloudflare.com/client/v4', undef) },
|
||||||
|
{ 'min-interval' => setv(T_DELAY, 0, 0, interval('5m'), 0), },
|
||||||
|
$variables{'cloudflare-common-defaults'},
|
||||||
|
$variables{'service-common-defaults'},
|
||||||
|
),
|
||||||
|
},
|
||||||
|
'dnsmadeeasy' => {
|
||||||
|
'updateable' => undef,
|
||||||
|
'update' => \&nic_dnsmadeeasy_update,
|
||||||
|
'examples' => \&nic_dnsmadeeasy_examples,
|
||||||
|
'variables' => merge(
|
||||||
|
$variables{'dnsmadeeasy-common-defaults'},
|
||||||
|
$variables{'service-common-defaults'},
|
||||||
|
),
|
||||||
|
},
|
||||||
|
'dondominio' => {
|
||||||
|
'updateable' => undef,
|
||||||
|
'update' => \&nic_dondominio_update,
|
||||||
|
'examples' => \&nic_dondominio_examples,
|
||||||
|
'variables' => merge(
|
||||||
|
$variables{'dondominio-common-defaults'},
|
||||||
|
$variables{'service-common-defaults'},
|
||||||
|
),
|
||||||
|
},
|
||||||
|
'dslreports1' => {
|
||||||
|
'updateable' => undef,
|
||||||
|
'update' => \&nic_dslreports1_update,
|
||||||
|
'examples' => \&nic_dslreports1_examples,
|
||||||
|
'variables' => merge(
|
||||||
|
{ 'host' => setv(T_NUMBER, 1, 1, 0, undef) },
|
||||||
|
$variables{'service-common-defaults'},
|
||||||
|
),
|
||||||
|
},
|
||||||
|
'dtdns' => {
|
||||||
|
'updateable' => undef,
|
||||||
|
'update' => \&nic_dtdns_update,
|
||||||
|
'examples' => \&nic_dtdns_examples,
|
||||||
|
'variables' => merge(
|
||||||
|
$variables{'dtdns-common-defaults'},
|
||||||
|
$variables{'service-common-defaults'},
|
||||||
|
),
|
||||||
|
},
|
||||||
|
'duckdns' => {
|
||||||
|
'updateable' => undef,
|
||||||
|
'update' => \&nic_duckdns_update,
|
||||||
|
'examples' => \&nic_duckdns_examples,
|
||||||
|
'variables' => merge(
|
||||||
|
$variables{'duckdns-common-defaults'},
|
||||||
|
$variables{'service-common-defaults'},
|
||||||
|
),
|
||||||
|
},
|
||||||
'dyndns1' => {
|
'dyndns1' => {
|
||||||
'updateable' => \&nic_dyndns2_updateable,
|
'updateable' => \&nic_dyndns2_updateable,
|
||||||
'update' => \&nic_dyndns1_update,
|
'update' => \&nic_dyndns1_update,
|
||||||
|
@ -515,22 +581,43 @@ my %services = (
|
||||||
$variables{'service-common-defaults'},
|
$variables{'service-common-defaults'},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
'noip' => {
|
'easydns' => {
|
||||||
'updateable' => undef,
|
'updateable' => undef,
|
||||||
'update' => \&nic_noip_update,
|
'update' => \&nic_easydns_update,
|
||||||
'examples' => \&nic_noip_examples,
|
'examples' => \&nic_easydns_examples,
|
||||||
'variables' => merge(
|
'variables' => merge(
|
||||||
{ 'custom' => setv(T_BOOL, 0, 1, 0, undef), },
|
{ 'server' => setv(T_FQDNP, 1, 0, 'members.easydns.com', undef) },
|
||||||
$variables{'noip-common-defaults'},
|
{ 'min-interval' => setv(T_DELAY, 0, 0, interval('5m'), 0), },
|
||||||
$variables{'noip-service-common-defaults'},
|
$variables{'easydns-common-defaults'},
|
||||||
|
$variables{'service-common-defaults'},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
'dslreports1' => {
|
'freedns' => {
|
||||||
'updateable' => undef,
|
'updateable' => undef,
|
||||||
'update' => \&nic_dslreports1_update,
|
'update' => \&nic_freedns_update,
|
||||||
'examples' => \&nic_dslreports1_examples,
|
'examples' => \&nic_freedns_examples,
|
||||||
'variables' => merge(
|
'variables' => merge(
|
||||||
{ 'host' => setv(T_NUMBER, 1, 1, 0, undef) },
|
{ 'server' => setv(T_FQDNP, 1, 0, 'freedns.afraid.org', undef) },
|
||||||
|
{ 'min-interval' => setv(T_DELAY, 0, 0, 0, interval('5m')), },
|
||||||
|
$variables{'service-common-defaults'},
|
||||||
|
),
|
||||||
|
},
|
||||||
|
'freemyip' => {
|
||||||
|
'updateable' => undef,
|
||||||
|
'update' => \&nic_freemyip_update,
|
||||||
|
'examples' => \&nic_freemyip_examples,
|
||||||
|
'variables' => merge(
|
||||||
|
$variables{'freemyip-common-defaults'},
|
||||||
|
$variables{'service-common-defaults'},
|
||||||
|
),
|
||||||
|
},
|
||||||
|
'googledomains' => {
|
||||||
|
'updateable' => undef,
|
||||||
|
'update' => \&nic_googledomains_update,
|
||||||
|
'examples' => \&nic_googledomains_examples,
|
||||||
|
'variables' => merge(
|
||||||
|
{ 'min-interval' => setv(T_DELAY, 0, 0, interval('5m'), 0), },
|
||||||
|
$variables{'googledomains-common-defaults'},
|
||||||
$variables{'service-common-defaults'},
|
$variables{'service-common-defaults'},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
|
@ -544,28 +631,6 @@ my %services = (
|
||||||
$variables{'service-common-defaults'},
|
$variables{'service-common-defaults'},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
'zoneedit1' => {
|
|
||||||
'updateable' => undef,
|
|
||||||
'update' => \&nic_zoneedit1_update,
|
|
||||||
'examples' => \&nic_zoneedit1_examples,
|
|
||||||
'variables' => merge(
|
|
||||||
{ 'server' => setv(T_FQDNP, 1, 0, 'dynamic.zoneedit.com', undef) },
|
|
||||||
{ 'min-interval' => setv(T_DELAY, 0, 0, interval('5m'), 0), },
|
|
||||||
$variables{'service-common-defaults'},
|
|
||||||
$variables{'zoneedit-service-common-defaults'},
|
|
||||||
),
|
|
||||||
},
|
|
||||||
'easydns' => {
|
|
||||||
'updateable' => undef,
|
|
||||||
'update' => \&nic_easydns_update,
|
|
||||||
'examples' => \&nic_easydns_examples,
|
|
||||||
'variables' => merge(
|
|
||||||
{ 'server' => setv(T_FQDNP, 1, 0, 'members.easydns.com', undef) },
|
|
||||||
{ 'min-interval' => setv(T_DELAY, 0, 0, interval('5m'), 0), },
|
|
||||||
$variables{'easydns-common-defaults'},
|
|
||||||
$variables{'service-common-defaults'},
|
|
||||||
),
|
|
||||||
},
|
|
||||||
'namecheap' => {
|
'namecheap' => {
|
||||||
'updateable' => undef,
|
'updateable' => undef,
|
||||||
'update' => \&nic_namecheap_update,
|
'update' => \&nic_namecheap_update,
|
||||||
|
@ -588,43 +653,14 @@ my %services = (
|
||||||
$variables{'service-common-defaults'},
|
$variables{'service-common-defaults'},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
'sitelutions' => {
|
'noip' => {
|
||||||
'updateable' => undef,
|
'updateable' => undef,
|
||||||
'update' => \&nic_sitelutions_update,
|
'update' => \&nic_noip_update,
|
||||||
'examples' => \&nic_sitelutions_examples,
|
'examples' => \&nic_noip_examples,
|
||||||
'variables' => merge(
|
'variables' => merge(
|
||||||
{ 'server' => setv(T_FQDNP, 1, 0, 'www.sitelutions.com', undef) },
|
{ 'custom' => setv(T_BOOL, 0, 1, 0, undef), },
|
||||||
{ 'min-interval' => setv(T_DELAY, 0, 0, 0, interval('5m')), },
|
$variables{'noip-common-defaults'},
|
||||||
$variables{'service-common-defaults'},
|
$variables{'noip-service-common-defaults'},
|
||||||
),
|
|
||||||
},
|
|
||||||
'freedns' => {
|
|
||||||
'updateable' => undef,
|
|
||||||
'update' => \&nic_freedns_update,
|
|
||||||
'examples' => \&nic_freedns_examples,
|
|
||||||
'variables' => merge(
|
|
||||||
{ 'server' => setv(T_FQDNP, 1, 0, 'freedns.afraid.org', undef) },
|
|
||||||
{ 'min-interval' => setv(T_DELAY, 0, 0, 0, interval('5m')), },
|
|
||||||
$variables{'service-common-defaults'},
|
|
||||||
),
|
|
||||||
},
|
|
||||||
'changeip' => {
|
|
||||||
'updateable' => undef,
|
|
||||||
'update' => \&nic_changeip_update,
|
|
||||||
'examples' => \&nic_changeip_examples,
|
|
||||||
'variables' => merge(
|
|
||||||
{ 'server' => setv(T_FQDNP, 1, 0, 'nic.changeip.com', undef) },
|
|
||||||
{ 'min-interval' => setv(T_DELAY, 0, 0, 0, interval('5m')), },
|
|
||||||
$variables{'service-common-defaults'},
|
|
||||||
),
|
|
||||||
},
|
|
||||||
'dtdns' => {
|
|
||||||
'updateable' => undef,
|
|
||||||
'update' => \&nic_dtdns_update,
|
|
||||||
'examples' => \&nic_dtdns_examples,
|
|
||||||
'variables' => merge(
|
|
||||||
$variables{'dtdns-common-defaults'},
|
|
||||||
$variables{'service-common-defaults'},
|
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
'nsupdate' => {
|
'nsupdate' => {
|
||||||
|
@ -637,42 +673,22 @@ my %services = (
|
||||||
$variables{'service-common-defaults'},
|
$variables{'service-common-defaults'},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
'cloudflare' => {
|
'ovh' => {
|
||||||
'updateable' => undef,
|
'updateable' => undef,
|
||||||
'update' => \&nic_cloudflare_update,
|
'update' => \&nic_ovh_update,
|
||||||
'examples' => \&nic_cloudflare_examples,
|
'examples' => \&nic_ovh_examples,
|
||||||
'variables' => merge(
|
'variables' => merge(
|
||||||
{ 'server' => setv(T_FQDNP, 1, 0, 'api.cloudflare.com/client/v4', undef) },
|
$variables{'ovh-common-defaults'},
|
||||||
{ 'min-interval' => setv(T_DELAY, 0, 0, interval('5m'), 0), },
|
|
||||||
$variables{'cloudflare-common-defaults'},
|
|
||||||
$variables{'service-common-defaults'},
|
$variables{'service-common-defaults'},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
'googledomains' => {
|
'sitelutions' => {
|
||||||
'updateable' => undef,
|
'updateable' => undef,
|
||||||
'update' => \&nic_googledomains_update,
|
'update' => \&nic_sitelutions_update,
|
||||||
'examples' => \&nic_googledomains_examples,
|
'examples' => \&nic_sitelutions_examples,
|
||||||
'variables' => merge(
|
'variables' => merge(
|
||||||
{ 'min-interval' => setv(T_DELAY, 0, 0, interval('5m'), 0), },
|
{ 'server' => setv(T_FQDNP, 1, 0, 'www.sitelutions.com', undef) },
|
||||||
$variables{'googledomains-common-defaults'},
|
{ 'min-interval' => setv(T_DELAY, 0, 0, 0, interval('5m')), },
|
||||||
$variables{'service-common-defaults'},
|
|
||||||
),
|
|
||||||
},
|
|
||||||
'duckdns' => {
|
|
||||||
'updateable' => undef,
|
|
||||||
'update' => \&nic_duckdns_update,
|
|
||||||
'examples' => \&nic_duckdns_examples,
|
|
||||||
'variables' => merge(
|
|
||||||
$variables{'duckdns-common-defaults'},
|
|
||||||
$variables{'service-common-defaults'},
|
|
||||||
),
|
|
||||||
},
|
|
||||||
'freemyip' => {
|
|
||||||
'updateable' => undef,
|
|
||||||
'update' => \&nic_freemyip_update,
|
|
||||||
'examples' => \&nic_freemyip_examples,
|
|
||||||
'variables' => merge(
|
|
||||||
$variables{'freemyip-common-defaults'},
|
|
||||||
$variables{'service-common-defaults'},
|
$variables{'service-common-defaults'},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
|
@ -695,31 +711,15 @@ my %services = (
|
||||||
$variables{'service-common-defaults'},
|
$variables{'service-common-defaults'},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
'dnsmadeeasy' => {
|
'zoneedit1' => {
|
||||||
'updateable' => undef,
|
'updateable' => undef,
|
||||||
'update' => \&nic_dnsmadeeasy_update,
|
'update' => \&nic_zoneedit1_update,
|
||||||
'examples' => \&nic_dnsmadeeasy_examples,
|
'examples' => \&nic_zoneedit1_examples,
|
||||||
'variables' => merge(
|
'variables' => merge(
|
||||||
$variables{'dnsmadeeasy-common-defaults'},
|
{ 'server' => setv(T_FQDNP, 1, 0, 'dynamic.zoneedit.com', undef) },
|
||||||
$variables{'service-common-defaults'},
|
{ 'min-interval' => setv(T_DELAY, 0, 0, interval('5m'), 0), },
|
||||||
),
|
|
||||||
},
|
|
||||||
'dondominio' => {
|
|
||||||
'updateable' => undef,
|
|
||||||
'update' => \&nic_dondominio_update,
|
|
||||||
'examples' => \&nic_dondominio_examples,
|
|
||||||
'variables' => merge(
|
|
||||||
$variables{'dondominio-common-defaults'},
|
|
||||||
$variables{'service-common-defaults'},
|
|
||||||
),
|
|
||||||
},
|
|
||||||
'ovh' => {
|
|
||||||
'updateable' => undef,
|
|
||||||
'update' => \&nic_ovh_update,
|
|
||||||
'examples' => \&nic_ovh_examples,
|
|
||||||
'variables' => merge(
|
|
||||||
$variables{'ovh-common-defaults'},
|
|
||||||
$variables{'service-common-defaults'},
|
$variables{'service-common-defaults'},
|
||||||
|
$variables{'zoneedit-service-common-defaults'},
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue