Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloudFlare ¶
type CloudFlare struct { DNSDomain string `toml:"dns_domain"` Proxied bool `toml:"dns_proxied"` Addresses []string `toml:"ip_addresses"` Hostnames []string `toml:"hostnames"` }
CloudFlare to maintain cloudflare addresses and domain in scope
func ConfigureCloudflare ¶
func ConfigureCloudflare(domain string, proxied bool, addresses []string, hostnames []string) *CloudFlare
ConfigureCloudflare to initialize CloudFlare struct
func (*CloudFlare) AddIP ¶
func (r *CloudFlare) AddIP(ipAddress string, dryRun bool) error
AddIP to add IP back into cloudflare domain
func (*CloudFlare) GetAddrs ¶
func (r *CloudFlare) GetAddrs() []string
GetAddrs returns the addresses in scope for monitoring purposes
type Provider ¶
type Provider interface { AddIP(ipAddress string, dryRun bool) error RemoveIP(ipAddress string, dryRun bool) error GetAddrs() []string }
Provider interface for DNS service provider interface
type Route53 ¶
type Route53 struct { DNSDomain string `toml:"aws_domain"` AWSRegion string `toml:"aws_region"` TTL int64 `toml:"ttl"` AWSZoneID string `toml:"aws_zoneid"` Addresses []string `toml:"ip_addresses"` Hostnames []string `toml:"hostnames"` }
Route53 to maintain Route53 addresses and domain in scope
func ConfigureRoute53 ¶
func ConfigureRoute53(domain string, region string, ttl int64, zoneID string, addresses []string, hostnames []string) *Route53
ConfigureRoute53 object
Click to show internal directories.
Click to hide internal directories.