dynamic_server_manager v0.0.3 DynamicServerManager.Dns behaviour

Link to this section Summary

Link to this section Types

Link to this type record()
record() :: %{type: record_type(), ttl: Integer.t(), ip: String.t()}
Link to this type record_type()
record_type() :: [
  :a | :aaaa | :cname | :mx | :naptr | :ns | :ptr | :soa | :spf | :srv | :txt
]

Link to this section Functions

Link to this function get_module(provider)

Link to this section Callbacks

Link to this callback create_ipv4_record(zone_name, hostname, ip)
create_ipv4_record(
  zone_name :: String.t(),
  hostname :: String.t(),
  ip :: String.t()
) :: :ok | {:error, String.t()}
Link to this callback delete_ipv4_record(zone_name, hostname)
delete_ipv4_record(zone_name :: String.t(), hostname :: String.t()) ::
  :ok | {:error, String.t()}
Link to this callback get_record(zone_name, hostname)
get_record(zone_name :: String.t(), hostname :: String.t()) ::
  {:ok, record()} | {:error, String.t()}