Documentation ¶
Index ¶
- type DNSWebhookClient
- func (l *DNSWebhookClient) AddRecord(name string, recordType string, value string) error
- func (l *DNSWebhookClient) GetRecord(name, recordType string) (result types.DNSRecord, err error)
- func (l *DNSWebhookClient) GetRecords() (result []types.DNSRecord, err error)
- func (l *DNSWebhookClient) RemoveRecord(name, recordType string) error
- func (l *DNSWebhookClient) UpdateRecord(record *types.DNSRecord) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DNSWebhookClient ¶
DNSWebhookClient defines the basic structure of a DNS Listener
func New ¶
func New(managerAddress string, httpClient *http.Client) (*DNSWebhookClient, error)
New builds the client to communicate with the dns manager
func (*DNSWebhookClient) AddRecord ¶
func (l *DNSWebhookClient) AddRecord(name string, recordType string, value string) error
AddRecord adds a DNS record
func (*DNSWebhookClient) GetRecord ¶
func (l *DNSWebhookClient) GetRecord(name, recordType string) (result types.DNSRecord, err error)
GetRecord communicates with the dns manager and gets a DNS Record
func (*DNSWebhookClient) GetRecords ¶
func (l *DNSWebhookClient) GetRecords() (result []types.DNSRecord, err error)
GetRecords communicates with the dns manager and gets the DNS Records
func (*DNSWebhookClient) RemoveRecord ¶
func (l *DNSWebhookClient) RemoveRecord(name, recordType string) error
RemoveRecord is a function that calls the defined webhook to remove a specific dns record
func (*DNSWebhookClient) UpdateRecord ¶
func (l *DNSWebhookClient) UpdateRecord(record *types.DNSRecord) error
UpdateRecord is a function that calls the defined webhook to update a specific dns record
Click to show internal directories.
Click to hide internal directories.