provider

package
v0.0.0-...-8cc68c2 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: GPL-3.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 ClientService

type ClientService interface {
	DoLogin() error
	DoLogout() error
	GetMatchingZones(*endpoint.DomainFilter) (map[string]*common.ZoneData, error)
	GetZoneEndpoints(zone string, zoneData *common.ZoneData) ([]*endpoint.Endpoint, error)
	CreateRecords(string, *common.ZoneData, []*endpoint.Endpoint) error
	DeleteRecords(string, *common.ZoneData, []*endpoint.Endpoint) error
}

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

func NewMockProvider

func NewMockProvider(config *config.Config, domainFilter *endpoint.DomainFilter) *Provider

func NewProvider

func NewProvider(client ClientService, domainFilter *endpoint.DomainFilter) (*Provider, error)

func NewProvider(client *client.HEClient) (*Provider, error) {

func (*Provider) AdjustEndpoints

func (p *Provider) AdjustEndpoints(desiredEndpoints []*endpoint.Endpoint) ([]*endpoint.Endpoint, error)

here is where we add provider-specific properties to the desired endpoints, so they match the current ones (if they exist, of course). Use allEndpoints to get info about the existing ones.

func (*Provider) ApplyChanges

func (p *Provider) ApplyChanges(changes *plan.Changes) error

func (*Provider) DomainFilter

func (p *Provider) DomainFilter() *endpoint.DomainFilter

func (*Provider) GetAllRecords

func (p *Provider) GetAllRecords() ([]*endpoint.Endpoint, error)

Jump to

Keyboard shortcuts

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