route53

package
v0.3.0-pre-4-g1073dbb Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

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

CreateAliasInput holds configuration parameters for CreateAlias.

type CreateResourceRecordInput

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

type HostedZones []HostedZone

HostedZones is a collection of HostedZones.

func (HostedZones) FindSuperDomainOf

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

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

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

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

func (SDKClient) CreateResourceRecord

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

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

func (SDKClient) ListHostedZones

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