rcode0

package
v0.13.6 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RcodeZeroProvider

type RcodeZeroProvider struct {
	provider.BaseProvider
	Client *rc0.Client

	DomainFilter endpoint.DomainFilter
	DryRun       bool
	TXTEncrypt   bool
	Key          []byte
}

RcodeZeroProvider implements the DNS provider for RcodeZero Anycast DNS.

func NewRcodeZeroProvider

func NewRcodeZeroProvider(domainFilter endpoint.DomainFilter, dryRun bool, txtEnc bool) (*RcodeZeroProvider, error)

NewRcodeZeroProvider creates a new RcodeZero Anycast DNS provider.

Returns the provider or an error if a provider could not be created.

func (*RcodeZeroProvider) ApplyChanges

func (p *RcodeZeroProvider) ApplyChanges(ctx context.Context, changes *plan.Changes) error

ApplyChanges applies a given set of changes in a given zone.

func (*RcodeZeroProvider) NewRcodezeroChange

func (p *RcodeZeroProvider) NewRcodezeroChange(action string, endpoint *endpoint.Endpoint) *rc0.RRSetChange

NewRcodezeroChange returns a RcodeZero specific rrset change object.

func (*RcodeZeroProvider) NewRcodezeroChanges

func (p *RcodeZeroProvider) NewRcodezeroChanges(action string, endpoints []*endpoint.Endpoint) []*rc0.RRSetChange

NewRcodezeroChanges returns a RcodeZero specific array with rrset change objects.

func (*RcodeZeroProvider) Records

func (p *RcodeZeroProvider) Records(ctx context.Context) ([]*endpoint.Endpoint, error)

Records returns resource records

Decrypts TXT records if TXT-Encrypt flag is set and key is provided

func (*RcodeZeroProvider) Zones

func (p *RcodeZeroProvider) Zones() ([]*rc0.Zone, error)

Zones returns filtered zones if filter is set

Jump to

Keyboard shortcuts

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