Documentation ¶
Overview ¶
internal implements a stub for the AWS Route53 API, used primarily for unit testing purposes
Index ¶
- type Route53API
- type Route53APIStub
- func (r *Route53APIStub) ChangeResourceRecordSets(input *route53.ChangeResourceRecordSetsInput) (*route53.ChangeResourceRecordSetsOutput, error)
- func (r *Route53APIStub) CreateHostedZone(input *route53.CreateHostedZoneInput) (*route53.CreateHostedZoneOutput, error)
- func (r *Route53APIStub) DeleteHostedZone(input *route53.DeleteHostedZoneInput) (*route53.DeleteHostedZoneOutput, error)
- func (r *Route53APIStub) ListHostedZonesPages(input *route53.ListHostedZonesInput, ...) error
- func (r *Route53APIStub) ListResourceRecordSetsPages(input *route53.ListResourceRecordSetsInput, ...) error
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 (r *Route53APIStub) ChangeResourceRecordSets(input *route53.ChangeResourceRecordSetsInput) (*route53.ChangeResourceRecordSetsOutput, error)
func (*Route53APIStub) CreateHostedZone ¶
func (r *Route53APIStub) CreateHostedZone(input *route53.CreateHostedZoneInput) (*route53.CreateHostedZoneOutput, error)
func (*Route53APIStub) DeleteHostedZone ¶
func (r *Route53APIStub) DeleteHostedZone(input *route53.DeleteHostedZoneInput) (*route53.DeleteHostedZoneOutput, error)
func (*Route53APIStub) ListHostedZonesPages ¶ added in v1.4.1
func (r *Route53APIStub) ListHostedZonesPages(input *route53.ListHostedZonesInput, fn func(p *route53.ListHostedZonesOutput, lastPage bool) (shouldContinue bool)) error
func (*Route53APIStub) ListResourceRecordSetsPages ¶ added in v1.4.1
func (r *Route53APIStub) ListResourceRecordSetsPages(input *route53.ListResourceRecordSetsInput, fn func(p *route53.ListResourceRecordSetsOutput, lastPage bool) (shouldContinue bool)) error
Click to show internal directories.
Click to hide internal directories.