Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) AddARecord(domain, address, host string, ttl int64, six bool) error
- func (c *Client) AddCNAME(domain, value, host string, ttl int64) error
- func (c *Client) AddMX(domain, value, host string, ttl int64, priority uint16) error
- func (c *Client) AddNS(domain, value, host string, ttl int64, priority uint16) error
- func (c *Client) AddSRV(domain, value, host string, ttl int64, priority, port, weight uint16) error
- func (c *Client) AddTXT(domain, value, host string, ttl int64, priority uint16) error
- func (c *Client) Authenticate() bool
- func (c *Client) DNSActive(string) bool
- func (c *Client) DeleteARecord(domain, value, host string, six bool) error
- func (c *Client) DeleteCNAME(domain, value, host string) error
- func (c *Client) DeleteMX(domain, value, host string) error
- func (c *Client) DeleteNS(domain, value, host string) error
- func (c *Client) DeleteSRV(domain, value, host string, port, weight uint16) error
- func (c *Client) DeleteTXT(domain, value, host string) error
- func (c *Client) EditARecord(domain, oldip, newip, host string, ttl int64, six bool) error
- func (c *Client) EditCNAME(domain, oldip, newip, host string, ttl int64) error
- func (c *Client) EditMX(domain, oldip, newip, host string, ttl int64, priority uint16) error
- func (c *Client) EditNS(domain, oldip, newip, host string, ttl int64) error
- func (c *Client) EditSOA(domain, person string, refresh, retry, expire, ttl int64) error
- func (c *Client) EditSRV(domain, oldval, newval, host string, ttl int64, priority, port, weight uint) error
- func (c *Client) EditTXT(domain, oldip, newip, host string, ttl int64) error
- func (c *Client) GetDNSRecords(domain, value, host, t string, page int) (*lbapi.DNSRecordList, error)
Constants ¶
View Source
const ( // PathAuth accepts 'username' and 'password' parameters. PathAuth = "/auth" // PathInfo has no parameters and returns an InfoDump. PathInfo = "/info" // PathDNSGet fetches records for a domain. PathDNSGet = "/dnsget" // PathDNSAdd adds a record to a domain. PathDNSAdd = "/dnsadd" // PathDNSEdit modifies a record for a domain. PathDNSEdit = "/dnsedit" // PathDNSDelete removes a record from a domain. PathDNSDelete = "/dnsdelete" // PathDNSNuke wipes out all but the primary A and AAAA records for a domain. PathDNSNuke = "/dnsnuke" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is the structure used by end-user software to access lbproxy middleman servers.
func (*Client) AddARecord ¶
AddARecord adds A or AAAA records.
func (*Client) Authenticate ¶
func (*Client) DeleteARecord ¶
DeleteARecord deletes A or AAAA records.
func (*Client) DeleteCNAME ¶
DeleteCNAME does exactly that.
func (*Client) EditARecord ¶
EditARecord modifies A or AAAA records.
func (*Client) EditSRV ¶
func (c *Client) EditSRV(domain, oldval, newval, host string, ttl int64, priority, port, weight uint) error
EditSRV modifies a SRV record.
func (*Client) GetDNSRecords ¶
func (c *Client) GetDNSRecords(domain, value, host, t string, page int) (*lbapi.DNSRecordList, error)
GetDNSRecords gets the first up to 50 records of one type for a domain. Pass a higher page number to get the next set of up to 50.
Click to show internal directories.
Click to hide internal directories.