stackitprovider

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CREATE = "CREATE"
	UPDATE = "UPDATE"
	DELETE = "DELETE"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ProjectId    string
	DomainFilter endpoint.DomainFilter
	DryRun       bool
	Workers      int
}

Config is used to configure the creation of the StackitDNSProvider.

type ErrorMessage

type ErrorMessage struct {
	Message string `json:"message"`
}

ErrorMessage is the error message returned by the API.

type StackitDNSProvider

type StackitDNSProvider struct {
	provider.BaseProvider
	// contains filtered or unexported fields
}

StackitDNSProvider implements the DNS stackitprovider for STACKIT DNS.

func NewStackitDNSProvider

func NewStackitDNSProvider(
	logger *zap.Logger,
	providerConfig Config,
	stackitConfig ...stackitconfig.ConfigurationOption,
) (*StackitDNSProvider, error)

NewStackitDNSProvider creates a new STACKIT DNS stackitprovider.

func (*StackitDNSProvider) ApplyChanges

func (d *StackitDNSProvider) ApplyChanges(ctx context.Context, changes *plan.Changes) error

ApplyChanges applies a given set of changes in a given zone.

func (*StackitDNSProvider) GetDomainFilter added in v0.2.0

func (d *StackitDNSProvider) GetDomainFilter() endpoint.DomainFilter

func (*StackitDNSProvider) Records

func (d *StackitDNSProvider) Records(ctx context.Context) ([]*endpoint.Endpoint, error)

Records returns resource records.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL