Skip to content

Commit 43b2188

Browse files
committed
fix private names
1 parent 47236fd commit 43b2188

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

provider/cloudflare/cloudflare.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ func (p *CloudFlareProvider) newCloudFlareChange(action string, endpoint *endpoi
648648
}
649649
}
650650

651-
func NewDNSRecordIndex(r cloudflare.DNSRecord) DNSRecordIndex {
651+
func newDNSRecordIndex(r cloudflare.DNSRecord) DNSRecordIndex {
652652
return DNSRecordIndex{Name: r.Name, Type: r.Type, Content: r.Content}
653653
}
654654

@@ -672,7 +672,7 @@ func (p *CloudFlareProvider) listDNSRecordsWithAutoPagination(ctx context.Contex
672672
}
673673

674674
for _, r := range pageRecords {
675-
records[NewDNSRecordIndex(r)] = r
675+
records[newDNSRecordIndex(r)] = r
676676
}
677677
params.ResultInfo = resultInfo.Next()
678678
if params.ResultInfo.Done() {
@@ -682,7 +682,7 @@ func (p *CloudFlareProvider) listDNSRecordsWithAutoPagination(ctx context.Contex
682682
return records, nil
683683
}
684684

685-
func NewCustomHostnameIndex(ch cloudflare.CustomHostname) CustomHostnameIndex {
685+
func newCustomHostnameIndex(ch cloudflare.CustomHostname) CustomHostnameIndex {
686686
return CustomHostnameIndex{Hostname: ch.Hostname}
687687
}
688688

@@ -707,7 +707,7 @@ func (p *CloudFlareProvider) listCustomHostnamesWithPagination(ctx context.Conte
707707
return nil, err
708708
}
709709
for _, ch := range pageCustomHostnameListResponse {
710-
chs[NewCustomHostnameIndex(ch)] = ch
710+
chs[newCustomHostnameIndex(ch)] = ch
711711
}
712712
resultInfo = result.Next()
713713
if resultInfo.Done() {

provider/cloudflare/cloudflare_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1312,7 +1312,7 @@ func TestCloudflareGroupByNameAndType(t *testing.T) {
13121312
for _, tc := range testCases {
13131313
records := make(DNSRecordsMap)
13141314
for _, r := range tc.Records {
1315-
records[NewDNSRecordIndex(r)] = r
1315+
records[newDNSRecordIndex(r)] = r
13161316
}
13171317
endpoints := groupByNameAndTypeWithCustomHostnames(records, CustomHostnamesMap{})
13181318
// Targets order could be random with underlying map

0 commit comments

Comments
 (0)