dns

package
v0.18.3 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Append(domain string, records ...string) error
	Get(domain string) ([]string, error)
	Update(domain string, records ...string) error
	Delete(domain string, records ...string) error
}

type DummyDNSClient

type DummyDNSClient struct {
	logger.Logger
	Zone string
}

func (DummyDNSClient) Append

func (d DummyDNSClient) Append(domain string, records ...string) error

func (DummyDNSClient) Delete

func (d DummyDNSClient) Delete(domain string, records ...string) error

func (DummyDNSClient) Get

func (d DummyDNSClient) Get(domain string) ([]string, error)

func (DummyDNSClient) Update

func (d DummyDNSClient) Update(domain string, records ...string) error

type DynamicDNSClient

type DynamicDNSClient struct {
	logger.Logger
	KeyName    string
	Zone       string
	Nameserver string
	Key        string
	Algorithm  string
	Insecure   bool
}

func (DynamicDNSClient) Append

func (client DynamicDNSClient) Append(domain string, records ...string) error

func (DynamicDNSClient) Delete

func (client DynamicDNSClient) Delete(domain string, records ...string) error

func (DynamicDNSClient) Get

func (client DynamicDNSClient) Get(domain string) ([]string, error)

func (DynamicDNSClient) String

func (client DynamicDNSClient) String() string

func (DynamicDNSClient) Update

func (client DynamicDNSClient) Update(domain string, records ...string) error

type Route53Client

type Route53Client struct {
	logger.Logger
	HostedZoneID         string
	AccessKey, SecretKey string
	Domain               string
	// contains filtered or unexported fields
}

func (*Route53Client) Append

func (r53 *Route53Client) Append(domain string, records ...string) error

func (*Route53Client) Delete

func (r53 *Route53Client) Delete(domain string, records ...string) error

func (*Route53Client) Get

func (r53 *Route53Client) Get(domain string) ([]string, error)

func (*Route53Client) Init

func (r53 *Route53Client) Init()

func (*Route53Client) Update

func (r53 *Route53Client) Update(domain string, records ...string) error

Jump to

Keyboard shortcuts

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