client

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 18, 2019 License: MIT Imports: 7 Imported by: 88

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DNSWebhookClient

type DNSWebhookClient struct {
	ClientAPI gohclient.API
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL