class ScalewayDDNS::Updater

Defined in:

scaleway_ddns/updater.cr

Constant Summary

EMPTY_DOMAIN_LIST = "Empty domain list, please check configuration variables."

Reported when no domain is configured.

MISSING_SECRET_KEY = "Empty secret key, please check configuration variables."

Reported when no secret key is configured.

RECORD_TYPES = {"ipv4" => "A", "ipv6" => "AAAA"}
ZONE_SEPARATOR = ':'

Separator between a record name and its explicit DNS zone in DOMAIN_LIST.

Constructors

Instance Method Summary

Constructor Detail

def self.new(config : Config) #

[View source]

Instance Method Detail

def run : NoReturn #

Runs update cycles until the process is terminated.


[View source]
def update : Nil #

Performs a single update cycle for every configured domain.


[View source]