Documentation
¶
Index ¶
- func Initialize(manager types.DNSManager, serviceVersion string)
- type DNSWebhook
- func (m *DNSWebhook) AddDNSRecord(w http.ResponseWriter, r *http.Request)
- func (m *DNSWebhook) GetDNSRecord(w http.ResponseWriter, r *http.Request)
- func (m *DNSWebhook) GetDNSRecords(w http.ResponseWriter, r *http.Request)
- func (m *DNSWebhook) RemoveDNSRecord(w http.ResponseWriter, r *http.Request)
- func (m *DNSWebhook) UpdateDNSRecord(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Initialize ¶
func Initialize(manager types.DNSManager, serviceVersion string)
Initialize starts up a dns manager webhook
Types ¶
type DNSWebhook ¶
type DNSWebhook struct {
// DNSManager defines the dnsmanager object this webhook will call
DNSManager types.DNSManager
}
DNSWebhook defines the basic structure of a DNS Webhook
func (*DNSWebhook) AddDNSRecord ¶
func (m *DNSWebhook) AddDNSRecord(w http.ResponseWriter, r *http.Request)
AddDNSRecord handles a POST request Expects a DNSRecord object as a body payload
func (*DNSWebhook) GetDNSRecord ¶
func (m *DNSWebhook) GetDNSRecord(w http.ResponseWriter, r *http.Request)
GetDNSRecord gets a specific DNS Record. DNS Record name and type comes from url params
func (*DNSWebhook) GetDNSRecords ¶
func (m *DNSWebhook) GetDNSRecords(w http.ResponseWriter, r *http.Request)
GetDNSRecords lists the registered DNS Records
func (*DNSWebhook) RemoveDNSRecord ¶
func (m *DNSWebhook) RemoveDNSRecord(w http.ResponseWriter, r *http.Request)
RemoveDNSRecord removes a dns record identified by its name
func (*DNSWebhook) UpdateDNSRecord ¶
func (m *DNSWebhook) UpdateDNSRecord(w http.ResponseWriter, r *http.Request)
UpdateDNSRecord updates a dns record Expects a DNSRecord object as a body payload
Click to show internal directories.
Click to hide internal directories.