Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrEmptyResponse is returned when the ip service returns an empty // response. ErrEmptyResponse = errors.New("empty response") // ErrInvalidIP is returned when the ip service returns an invalid IP. ErrInvalidIP = errors.New("invalid ip address") // ErrUnsupported is returned if the provider does not support the update // mode. ErrUnsupported = errors.New("unsupported") // ErrUnexpectedResponse is returned when the ip service returns an // unexpected response status code. ErrUnexpectedResponse = errors.New("unexpected response") )
Functions ¶
Types ¶
type Provider ¶
type Provider interface { // Update updates the DNS provider using the specified update mode. // One or both of ipv4 or ipv6 may be included. If both are included, // both the 'A' and 'AAAA' records will be updated. If only one is // included, only the corresponding record will be updated. If neither // are included, the function should return an error. Update(ipv4, ipv6 net.IP) error }
Provider is an interface for dynamically updating the IP address on a DNS provider.
Click to show internal directories.
Click to hide internal directories.