route53

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: May 9, 2019 License: Apache-2.0 Imports: 6 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client added in v0.3.0

type Client interface {
	CreateAlias(CreateAliasInput) (string, error)
	CreateResourceRecord(CreateResourceRecordInput) (string, error)
	ListHostedZones() (HostedZones, error)
}

Client represents a method for accessing Amazon Route 53.

type CreateAliasInput added in v0.3.0

type CreateAliasInput struct {
	HostedZoneID, Name, RecordType, Target, TargetHostedZoneID string
}

CreateAliasInput holds configuration parameters for CreateAlias.

type CreateResourceRecordInput added in v0.3.0

type CreateResourceRecordInput struct {
	HostedZoneID, RecordType, Name, Value string
}

CreateResourceRecordInput holds configuration parameters for CreateResourceRecord.

type HostedZone

type HostedZone struct {
	Name string
	ID   string
}

HostedZone is a zone hosted in Amazon Route 53.

type HostedZones added in v0.3.0

type HostedZones []HostedZone

HostedZones is a collection of HostedZones.

func (HostedZones) FindSuperDomainOf added in v0.3.0

func (h HostedZones) FindSuperDomainOf(fqdn string) (HostedZone, bool)

FindSuperDomainOf searches a HostedZones collection for the zone that is the superdomain of the given fully qualified domain name. Returns a HostedZone and a boolean indicating whether a match was found.

type SDKClient added in v0.3.0

type SDKClient struct {
	// contains filtered or unexported fields
}

SDKClient implements access to Amazon Route 53 via the AWS SDK.

func New

func New(sess *session.Session) SDKClient

New returns an SDKClient configured with the given session.

func (SDKClient) CreateAlias added in v0.3.0

func (route53 SDKClient) CreateAlias(i CreateAliasInput) (string, error)

CreateAlias creates an alias record in an Amazon Route 53 hosted zone.

func (SDKClient) CreateResourceRecord added in v0.3.0

func (route53 SDKClient) CreateResourceRecord(i CreateResourceRecordInput) (string, error)

CreateResourceRecord creates a DNS record in an Amazon Route 53 hosted zone.

func (SDKClient) ListHostedZones added in v0.3.0

func (route53 SDKClient) ListHostedZones() (HostedZones, error)

ListHostedZones returns all Amazon Route 53 zones in the caller's account.

Directories

Path Synopsis
mock
client
Package client is a generated GoMock package.
Package client is a generated GoMock package.
sdk
Package sdk is a generated GoMock package.
Package sdk is a generated GoMock package.

Jump to

Keyboard shortcuts

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