gandi

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DomainClientAdapter

type DomainClientAdapter interface {
	ListDomains() (domains []domain.ListResponse, err error)
}

func NewDomainClient

func NewDomainClient(client *domain.Domain) DomainClientAdapter

type GandiChanges

type GandiChanges struct {
	Action   string
	ZoneName string
	Record   livedns.DomainRecord
}

type GandiProvider

type GandiProvider struct {
	provider.BaseProvider
	LiveDNSClient LiveDNSClientAdapter
	DomainClient  DomainClientAdapter

	DryRun bool
	// contains filtered or unexported fields
}

func NewGandiProvider

func NewGandiProvider(ctx context.Context, domainFilter endpoint.DomainFilter, dryRun bool) (*GandiProvider, error)

func (*GandiProvider) ApplyChanges

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

func (*GandiProvider) Records

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

func (*GandiProvider) Zones

func (p *GandiProvider) Zones() (zones []string, err error)

type LiveDNSClient

type LiveDNSClient struct {
	Client *livedns.LiveDNS
}

func (*LiveDNSClient) CreateDomainRecord

func (p *LiveDNSClient) CreateDomainRecord(fqdn, name, recordtype string, ttl int, values []string) (response standardResponse, err error)

func (*LiveDNSClient) DeleteDomainRecord

func (p *LiveDNSClient) DeleteDomainRecord(fqdn, name, recordtype string) (err error)

func (*LiveDNSClient) GetDomainRecords

func (p *LiveDNSClient) GetDomainRecords(fqdn string) (records []livedns.DomainRecord, err error)

func (*LiveDNSClient) UpdateDomainRecordByNameAndType

func (p *LiveDNSClient) UpdateDomainRecordByNameAndType(fqdn, name, recordtype string, ttl int, values []string) (response standardResponse, err error)

type LiveDNSClientAdapter

type LiveDNSClientAdapter interface {
	GetDomainRecords(fqdn string) (records []livedns.DomainRecord, err error)
	CreateDomainRecord(fqdn, name, recordtype string, ttl int, values []string) (response standardResponse, err error)
	DeleteDomainRecord(fqdn, name, recordtype string) (err error)
	UpdateDomainRecordByNameAndType(fqdn, name, recordtype string, ttl int, values []string) (response standardResponse, err error)
}

func NewLiveDNSClient

func NewLiveDNSClient(client *livedns.LiveDNS) LiveDNSClientAdapter

Jump to

Keyboard shortcuts

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