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 ¶
Click to show internal directories.
Click to hide internal directories.