stubs

package
v1.4.10-beta.0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2017 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

internal implements a stub for the AWS Route53 API, used primarily for unit testing purposes

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Route53API

type Route53API interface {
	ListResourceRecordSetsPages(input *route53.ListResourceRecordSetsInput, fn func(p *route53.ListResourceRecordSetsOutput, lastPage bool) (shouldContinue bool)) error
	ChangeResourceRecordSets(*route53.ChangeResourceRecordSetsInput) (*route53.ChangeResourceRecordSetsOutput, error)
	ListHostedZonesPages(input *route53.ListHostedZonesInput, fn func(p *route53.ListHostedZonesOutput, lastPage bool) (shouldContinue bool)) error
	CreateHostedZone(*route53.CreateHostedZoneInput) (*route53.CreateHostedZoneOutput, error)
	DeleteHostedZone(*route53.DeleteHostedZoneInput) (*route53.DeleteHostedZoneOutput, error)
}

Route53API is the subset of the AWS Route53 API that we actually use. Add methods as required. Signatures must match exactly.

type Route53APIStub

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

Route53APIStub is a minimal implementation of Route53API, used primarily for unit testing. See http://http://docs.aws.amazon.com/sdk-for-go/api/service/route53.html for descriptions of all of it's methods.

func NewRoute53APIStub

func NewRoute53APIStub() *Route53APIStub

NewRoute53APIStub returns an initlialized Route53APIStub

func (*Route53APIStub) ChangeResourceRecordSets

func (*Route53APIStub) CreateHostedZone

func (*Route53APIStub) DeleteHostedZone

func (*Route53APIStub) ListHostedZonesPages added in v1.4.0

func (r *Route53APIStub) ListHostedZonesPages(input *route53.ListHostedZonesInput, fn func(p *route53.ListHostedZonesOutput, lastPage bool) (shouldContinue bool)) error

func (*Route53APIStub) ListResourceRecordSetsPages added in v1.4.0

func (r *Route53APIStub) ListResourceRecordSetsPages(input *route53.ListResourceRecordSetsInput, fn func(p *route53.ListResourceRecordSetsOutput, lastPage bool) (shouldContinue bool)) error

Jump to

Keyboard shortcuts

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