Documentation ¶
Index ¶
- type DomainAPI
- type ScalewayChange
- type ScalewayProvider
- func (p *ScalewayProvider) AdjustEndpoints(endpoints []*endpoint.Endpoint) []*endpoint.Endpoint
- func (p *ScalewayProvider) ApplyChanges(ctx context.Context, changes *plan.Changes) error
- func (p *ScalewayProvider) Records(ctx context.Context) ([]*endpoint.Endpoint, error)
- func (p *ScalewayProvider) Zones(ctx context.Context) ([]*domain.DNSZone, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DomainAPI ¶
type DomainAPI interface { ListDNSZones(req *domain.ListDNSZonesRequest, opts ...scw.RequestOption) (*domain.ListDNSZonesResponse, error) ListDNSZoneRecords(req *domain.ListDNSZoneRecordsRequest, opts ...scw.RequestOption) (*domain.ListDNSZoneRecordsResponse, error) UpdateDNSZoneRecords(req *domain.UpdateDNSZoneRecordsRequest, opts ...scw.RequestOption) (*domain.UpdateDNSZoneRecordsResponse, error) }
DomainAPI is an interface matching the domain.API struct
type ScalewayChange ¶
ScalewayChange differentiates between ChangActions
type ScalewayProvider ¶
type ScalewayProvider struct { provider.BaseProvider // contains filtered or unexported fields }
ScalewayProvider implements the DNS provider for Scaleway DNS
func NewScalewayProvider ¶
func NewScalewayProvider(ctx context.Context, domainFilter endpoint.DomainFilter, dryRun bool) (*ScalewayProvider, error)
NewScalewayProvider initializes a new Scaleway DNS provider
func (*ScalewayProvider) AdjustEndpoints ¶ added in v0.8.0
func (p *ScalewayProvider) AdjustEndpoints(endpoints []*endpoint.Endpoint) []*endpoint.Endpoint
AdjustEndpoints is used to normalize the endoints
func (*ScalewayProvider) ApplyChanges ¶
ApplyChanges applies a set of changes in a zone.
Click to show internal directories.
Click to hide internal directories.