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(ctx context.Context, input *route53.ChangeResourceRecordSetsInput, ...) (*route53.ChangeResourceRecordSetsOutput, error)
- func (r *Route53APIStub) CreateHostedZone(ctx context.Context, input *route53.CreateHostedZoneInput, ...) (*route53.CreateHostedZoneOutput, error)
- func (r *Route53APIStub) DeleteHostedZone(ctx context.Context, input *route53.DeleteHostedZoneInput, ...) (*route53.DeleteHostedZoneOutput, error)
- func (r *Route53APIStub) ListHostedZones(ctx context.Context, input *route53.ListHostedZonesInput, ...) (*route53.ListHostedZonesOutput, error)
- func (r *Route53APIStub) ListResourceRecordSets(ctx context.Context, input *route53.ListResourceRecordSetsInput, ...) (*route53.ListResourceRecordSetsOutput, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Route53API ¶
type Route53API interface { ListResourceRecordSets(ctx context.Context, params *route53.ListResourceRecordSetsInput, optFns ...func(*route53.Options)) (*route53.ListResourceRecordSetsOutput, error) ChangeResourceRecordSets(ctx context.Context, params *route53.ChangeResourceRecordSetsInput, optFns ...func(*route53.Options)) (*route53.ChangeResourceRecordSetsOutput, error) ListHostedZones(ctx context.Context, params *route53.ListHostedZonesInput, optFns ...func(*route53.Options)) (*route53.ListHostedZonesOutput, error) CreateHostedZone(ctx context.Context, params *route53.CreateHostedZoneInput, optFns ...func(*route53.Options)) (*route53.CreateHostedZoneOutput, error) DeleteHostedZone(ctx context.Context, params *route53.DeleteHostedZoneInput, optFns ...func(*route53.Options)) (*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 https://docs.aws.amazon.com/sdk-for-go/api/service/route53/ of all of its methods.
func NewRoute53APIStub ¶
func NewRoute53APIStub() *Route53APIStub
NewRoute53APIStub returns an initialized Route53APIStub
func (*Route53APIStub) ChangeResourceRecordSets ¶
func (r *Route53APIStub) ChangeResourceRecordSets(ctx context.Context, input *route53.ChangeResourceRecordSetsInput, optFns ...func(*route53.Options)) (*route53.ChangeResourceRecordSetsOutput, error)
func (*Route53APIStub) CreateHostedZone ¶
func (r *Route53APIStub) CreateHostedZone(ctx context.Context, input *route53.CreateHostedZoneInput, optFns ...func(*route53.Options)) (*route53.CreateHostedZoneOutput, error)
func (*Route53APIStub) DeleteHostedZone ¶
func (r *Route53APIStub) DeleteHostedZone(ctx context.Context, input *route53.DeleteHostedZoneInput, optFns ...func(*route53.Options)) (*route53.DeleteHostedZoneOutput, error)
func (*Route53APIStub) ListHostedZones ¶ added in v1.30.0
func (r *Route53APIStub) ListHostedZones(ctx context.Context, input *route53.ListHostedZonesInput, optFns ...func(*route53.Options)) (*route53.ListHostedZonesOutput, error)
func (*Route53APIStub) ListResourceRecordSets ¶ added in v1.30.0
func (r *Route53APIStub) ListResourceRecordSets(ctx context.Context, input *route53.ListResourceRecordSetsInput, optFns ...func(*route53.Options)) (*route53.ListResourceRecordSetsOutput, error)
Click to show internal directories.
Click to hide internal directories.