Documentation ¶
Index ¶
- type GoogleConfig
- type GoogleProvider
- func (p *GoogleProvider) ApplyChanges(ctx context.Context, changes *plan.Changes) error
- func (p *GoogleProvider) CreateRecords(endpoints []*endpoint.Endpoint) error
- func (p *GoogleProvider) DeleteRecords(endpoints []*endpoint.Endpoint) error
- func (p *GoogleProvider) Records(ctx context.Context) (endpoints []*endpoint.Endpoint, _ error)
- func (p *GoogleProvider) SupportedRecordType(recordType string) bool
- func (p *GoogleProvider) UpdateRecords(records, oldRecords []*endpoint.Endpoint) error
- func (p *GoogleProvider) Zones(ctx context.Context) (map[string]*dns.ManagedZone, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoogleConfig ¶
type GoogleConfig struct { Project string DomainFilter endpoint.DomainFilter ZoneIDFilter provider.ZoneIDFilter ZoneTypeFilter provider.ZoneTypeFilter BatchChangeSize int BatchChangeInterval time.Duration DryRun bool }
GoogleConfig contains configuration to create a new Google provider.
type GoogleProvider ¶
type GoogleProvider struct { provider.BaseProvider // contains filtered or unexported fields }
GoogleProvider is an implementation of Provider for Google CloudDNS.
func NewGoogleProvider ¶
func NewGoogleProvider(ctx context.Context, config GoogleConfig) (*GoogleProvider, error)
NewGoogleProvider initializes a new Google CloudDNS based Provider.
func NewGoogleProviderWithService ¶
func NewGoogleProviderWithService(ctx context.Context, config GoogleConfig, dnsClient *dns.Service) (*GoogleProvider, error)
func (*GoogleProvider) ApplyChanges ¶
ApplyChanges applies a given set of changes in a given zone.
func (*GoogleProvider) CreateRecords ¶
func (p *GoogleProvider) CreateRecords(endpoints []*endpoint.Endpoint) error
CreateRecords creates a given set of DNS records in the given hosted zone.
func (*GoogleProvider) DeleteRecords ¶
func (p *GoogleProvider) DeleteRecords(endpoints []*endpoint.Endpoint) error
DeleteRecords deletes a given set of DNS records in a given zone.
func (*GoogleProvider) SupportedRecordType ¶
func (p *GoogleProvider) SupportedRecordType(recordType string) bool
SupportedRecordType returns true if the record type is supported by the provider
func (*GoogleProvider) UpdateRecords ¶
func (p *GoogleProvider) UpdateRecords(records, oldRecords []*endpoint.Endpoint) error
UpdateRecords updates a given set of old records to a new set of records in a given hosted zone.
Click to show internal directories.
Click to hide internal directories.