powerdnsex v0.2.0 PowerDNSex
Link to this section Summary
Functions
Create a new Record for the given Zone
Create a new Zone on PowerDNS
Delete specific Record of given Zone
Delete specific Zone on PowerDNS
Show / Retrive info of the specific Record of the given Zone name
Show / Retrive info of the specific Zone
Called when an application is started
Update Record of the given Zone
Link to this section Functions
create_record(zone, rrset_attrs)
create_record(PowerDNSex.Models.Zone.t(), struct()) ::
:ok | {:error, String.t()}
create_record(PowerDNSex.Models.Zone.t(), struct()) :: :ok | {:error, String.t()}
Create a new Record for the given Zone
create_zone(zone, server_name \\ "localhost")
create_zone(PowerDNSex.Models.Zone.t(), String.t()) ::
PowerDNSex.Models.Zone.t() | PowerDNSex.Models.Error.t()
create_zone(PowerDNSex.Models.Zone.t(), String.t()) :: PowerDNSex.Models.Zone.t() | PowerDNSex.Models.Error.t()
Create a new Zone on PowerDNS
delete_record(zone, rrset_attrs)
delete_record(PowerDNSex.Models.Zone.t(), struct()) ::
:ok | {:error, String.t()}
delete_record(PowerDNSex.Models.Zone.t(), struct()) :: :ok | {:error, String.t()}
Delete specific Record of given Zone
delete_zone(zone, server_name \\ "localhost")
Delete specific Zone on PowerDNS
show_record(zone_name, rrset_attrs)
Show / Retrive info of the specific Record of the given Zone name
show_zone(zone, server_name \\ "localhost")
Show / Retrive info of the specific Zone
start(_, _)
Called when an application is started.
This function is called when an application is started using
Application.start/2
(and functions on top of that, such as
Application.ensure_started/2
). This function should start the top-level
process of the application (which should be the top supervisor of the
application's supervision tree if the application follows the OTP design
principles around supervision).
start_type
defines how the application is started:
:normal
- used if the startup is a normal startup or if the application is distributed and is started on the current node because of a failover from another node and the application specification key:start_phases
is:undefined
.{:takeover, node}
- used if the application is distributed and is started on the current node because of a failover on the nodenode
.{:failover, node}
- used if the application is distributed and is started on the current node because of a failover on nodenode
, and the application specification key:start_phases
is not:undefined
.
start_args
are the arguments passed to the application in the :mod
specification key (e.g., mod: {MyApp, [:my_args]}
).
This function should either return {:ok, pid}
or {:ok, pid, state}
if
startup is successful. pid
should be the PID of the top supervisor. state
can be an arbitrary term, and if omitted will default to []
; if the
application is later stopped, state
is passed to the stop/1
callback (see
the documentation for the c:stop/1
callback for more information).
use Application
provides no default implementation for the start/2
callback.
Callback implementation for Application.start/2
.
update_record(zone, rrset_attrs)
update_record(PowerDNSex.Models.Zone.t(), struct()) ::
:ok | {:error, String.t()}
update_record(PowerDNSex.Models.Zone.t(), struct()) :: :ok | {:error, String.t()}
Update Record of the given Zone