scaleway

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2025 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 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

type ScalewayChange struct {
	Action string
	Record []domain.Record
}

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, error)

AdjustEndpoints is used to normalize the endoints

func (*ScalewayProvider) ApplyChanges

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

ApplyChanges applies a set of changes in a zone.

func (*ScalewayProvider) Records

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

Records returns the list of records in a given zone.

func (*ScalewayProvider) Zones

func (p *ScalewayProvider) Zones(ctx context.Context) ([]*domain.DNSZone, error)

Zones returns the list of hosted zones.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳