github.com/almamedia/fargate@v0.2.4-0.20220704071213-7b5b3d27c5eb/route53/mock/sdk/paginators.go (about) 1 package sdk 2 3 import ( 4 "github.com/aws/aws-sdk-go/service/route53" 5 "github.com/aws/aws-sdk-go/service/route53/route53iface" 6 ) 7 8 type MockListHostedZonesPagesClient struct { 9 route53iface.Route53API 10 Resp *route53.ListHostedZonesOutput 11 Error error 12 } 13 14 func (m MockListHostedZonesPagesClient) ListHostedZonesPages(in *route53.ListHostedZonesInput, fn func(*route53.ListHostedZonesOutput, bool) bool) error { 15 if m.Error != nil { 16 return m.Error 17 } 18 19 fn(m.Resp, true) 20 21 return nil 22 }