route53

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2020 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrCode

func ErrCode(msg string, err error) error

ErrCode processes the error codes comming back from route53 and converts them into apierror, a standardized form consumable by downstream systems.

Types

type Route53

type Route53 struct {
	Service route53iface.Route53API
	Domains map[string]*common.Domain
}

Route53 is a wrapper around the aws route53 service with some default config info

func NewSession

func NewSession(account common.Account) Route53

NewSession creates a new cloudfront session

func (*Route53) CreateRecord

func (r *Route53) CreateRecord(ctx context.Context, zoneID string, record *route53.ResourceRecordSet) (*route53.ChangeInfo, error)

CreateRecord creates a route53 resource record. This will fail if the record already exists.

func (*Route53) DeleteRecord added in v0.8.0

func (r *Route53) DeleteRecord(ctx context.Context, zoneID string, record *route53.ResourceRecordSet) (*route53.ChangeInfo, error)

DeleteRecord deletes a route53 resource record.

func (*Route53) GetRecordByName

func (r *Route53) GetRecordByName(ctx context.Context, zoneID, name, recordType string) (*route53.ResourceRecordSet, error)

GetRecordByName gets a route53 resource record by name and by type if one is specified.

func (*Route53) ListRecords

func (r *Route53) ListRecords(ctx context.Context, zoneID string) ([]*route53.ResourceRecordSet, error)

ListRecords lists the route53 resource records for a zone

Jump to

Keyboard shortcuts

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