SaltDns.Proxy.Backend (Salt v1.0.0)

A backend of a proxy group: a name routes point at, the mode (only http) and its servers. Names follow SaltDns.Proxy.Routes.validate_backend_name/1.

A local backend has a name and no servers: it is defined in the operator's own HAProxy file, Salt DNS does not render it, and routes may point at it. It is sent in the state as {"name", "mode": "http", "local": true} (contract 3.9).

Summary

Functions

The map HaproxyConfig and State take.

Types

t()

@type t() :: %SaltDns.Proxy.Backend{
  __meta__: term(),
  group: term(),
  group_id: term(),
  id: term(),
  inserted_at: term(),
  local: term(),
  mode: term(),
  name: term(),
  servers: term(),
  updated_at: term()
}

Functions

to_input(backend)

@spec to_input(t()) :: map()

The map HaproxyConfig and State take.