Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchRemoteConfig ¶
func FetchRemoteConfig(factumConfig *util.ConfigFactum) (*util.ConfigDNS, error)
FetchRemoteConfig pulls the DNS sync settings from the primary, authenticated with factumConfig.Token (checked against the primary's Settings.FactumApiToken - see web.Controller.checkServiceToken).
Types ¶
type DNSClient ¶
type DNSClient struct {
Config *util.ConfigAgentRoot
DNS *util.ConfigDNS
// contains filtered or unexported fields
}
func NewDNSClient ¶
func NewDNSClient(config *util.ConfigAgentRoot) (*DNSClient, error)
NewDNSClient fetches the DNS sync settings from the primary over REST - factum-dns typically runs on a different host than the primary, so unlike before, it no longer opens a direct connection to factum's Postgres just to read these (see util.ConfigDNS's doc comment).
Click to show internal directories.
Click to hide internal directories.