dns

package
v0.0.0-...-943ae65 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2017 License: MIT Imports: 8 Imported by: 2

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

func (*CloudFlare) RemoveIP

func (r *CloudFlare) RemoveIP(ipAddress string, dryRun bool) error

RemoveIP to remove IP from Cloudflare domain

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

func (*Route53) AddIP

func (r *Route53) AddIP(ipAddress string, dryRun bool) error

AddIP to add IP back into Route53 zone

func (*Route53) GetAddrs

func (r *Route53) GetAddrs() []string

GetAddrs returns the addresses in scope for monitoring purposes

func (*Route53) RemoveIP

func (r *Route53) RemoveIP(ipAddress string, dryRun bool) error

RemoveIP to remove IP back from Route53 zone

Jump to

Keyboard shortcuts

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