scaleway

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: May 26, 2022 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DomainAPI

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

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