Constructor
new DnsProvider(optionsopt)
Constructor.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Ojbect |
<optional> |
Options for the instance. Properties
|
Methods
init(providerOptions) → {Promise}
Initialize class
Override for implementation specific initialization needs (read info from cloud provider, read database, etc.). Called at the start of processing.
Parameters:
Name | Type | Description |
---|---|---|
providerOptions |
Object | Provider specific options. |
Returns:
A promise which will be resolved when init is complete.
- Type
- Promise
(abstract) update(instances) → {Promise}
Updates DNS records with the given instances
Parameters:
Name | Type | Description |
---|---|---|
instances |
Object | Array of instances, each having the form
|
Returns:
A promise which will be resolved with the instance ID of the elected primary.
- Type
- Promise