route53

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NormalizeDomains added in v0.0.10

func NormalizeDomains(domains []string) []string

NormalizeDomains adds a "." at the end of each domain in the domains slice if not present already.

Types

type AliasRepository

type AliasRepository interface {
	// Upsert inserts or updates Aliases on Route53
	Upsert(aliases Aliases) error
	// Delete deletes Aliases on Route53
	Delete(aliases Aliases) error
}

AliasRepository provides a layer to interact with the AWS API when manipulating Route53 records

func NewAliasRepository added in v0.0.10

func NewAliasRepository(awsClient route53iface.Route53API) AliasRepository

NewAliasRepository builds a new AliasRepository

type Aliases

type Aliases struct {
	Target            string
	HostedZoneID      string
	OwnershipTXTValue string
	Entries           []Entry
}

Aliases represents all aliases which should be bound to a CF distribution

func NewAliases

func NewAliases(target, hostedZoneID, txtOwnerValue string, domains []string, ipv6Enabled bool) Aliases

NewAliases builds a new Aliases

func (Aliases) Domains

func (a Aliases) Domains() []string

Domains returns a slice of all domains from an Aliases' Entries

type Entry

type Entry struct {
	Name  string
	Types []string
}

Entry represents an alias entry with all desired record types for it

Jump to

Keyboard shortcuts

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