Documentation ¶
Index ¶
- type DomainClientAdapter
- type GandiChanges
- type GandiProvider
- type LiveDNSClient
- func (p *LiveDNSClient) CreateDomainRecord(fqdn, name, recordtype string, ttl int, values []string) (response standardResponse, err error)
- func (p *LiveDNSClient) DeleteDomainRecord(fqdn, name, recordtype string) (err error)
- func (p *LiveDNSClient) GetDomainRecords(fqdn string) (records []livedns.DomainRecord, err error)
- func (p *LiveDNSClient) UpdateDomainRecordByNameAndType(fqdn, name, recordtype string, ttl int, values []string) (response standardResponse, err error)
- type LiveDNSClientAdapter
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 (*GandiProvider) Zones ¶
func (p *GandiProvider) Zones() (zones []string, err error)
type LiveDNSClient ¶
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
Click to show internal directories.
Click to hide internal directories.