providers

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAWSProvider

func NewAWSProvider() (*r53, error)

func NewCloudflareProvider

func NewCloudflareProvider() (*cf, error)

Generate a new Cloudflare Provider that can be used to create DNS records. The provider requires values to be defined by the user in order to be configured properly.

The CF_API_TOKEN value can either be sourced from an environment variable, or from a file. The file needs to be located at `${kProviderConfigPath}/CF_API_TOKEN` The file path is preferred as that's easier to work with different providers and Kubernetes secret system.

Types

type Provider

type Provider interface {
	Create(context.Context, *sequencer.DNSRecord) error
	Delete(context.Context, *sequencer.DNSRecord) error
}

func DefaultProvider

func DefaultProvider() Provider

Same as NewProvider but throw a fatal exception if the configuration settings can't initialize a provider.

func NewProvider

func NewProvider(name string) (Provider, error)

Jump to

Keyboard shortcuts

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