dnsprovider

package
v0.0.0-...-e602c46 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AWS_ACCESS_KEY = "AWS_ACCESS_KEY_ID"
	AWS_SECRET_KEY = "AWS_SECRET_ACCESS_KEY"
)

Variables

View Source
var (
	AWS_REGION = "us-east-1"
)

Functions

func ReadConfig

func ReadConfig(configFile, provider string) (map[string]string, error)

Types

type Aws

type Aws struct {
	Client *route53.Client
}

func NewAws

func NewAws(ctx context.Context, accessKeyId, secretAccessKey string) (Aws, error)

func (Aws) UpdateRecord

func (a Aws) UpdateRecord(ctx context.Context, record, zone, ip string, TTL int64) (err error)

type DnsProvider

type DnsProvider interface {
	UpdateRecord(ctx context.Context, record, zone, ip string, TTL int64) error
}

func ConfigureDnsProvider

func ConfigureDnsProvider(ctx context.Context, provider, configFile string) (DnsProvider, error)

Jump to

Keyboard shortcuts

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