hook

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2019 License: MIT Imports: 8 Imported by: 2

Documentation

Index

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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