provider

package
v0.0.0-...-30ac830 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2024 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 DnsRecord

type DnsRecord struct {
	Id           string `json:"id"`
	Hostname     string `json:"hostname"`
	Type         string `json:"type"`
	Priority     string `json:"priority"`
	Destination  string `json:"destination"`
	DeleteRecord bool   `json:"deleterecord"`
	State        string `json:"state"`
}

type WrdChange

type WrdChange struct {
	Create    *[]nc.DnsRecord
	UpdateNew *[]nc.DnsRecord
	UpdateOld *[]nc.DnsRecord
	Delete    *[]nc.DnsRecord
}

WrdChange includes the changesets that need to be applied to the Wrd API

type WrdProvider

type WrdProvider struct {
	provider.BaseProvider
	// contains filtered or unexported fields
}

WrdProvider is an implementation of Provider for Wrd DNS.

func NewWrdProvider

func NewWrdProvider(domainFilterList *[]string, dryRun int, logger log.Logger) (*WrdProvider, error)

NewWrdProvider creates a new provider including the wrd API client

func (*WrdProvider) ApplyChanges

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

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

func (*WrdProvider) Records

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

Records delivers the list of Endpoint records for all zones.

Jump to

Keyboard shortcuts

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