diff --git a/pkg/transform/transform.go b/pkg/transform/transform.go index 919e3b5796..0e3717d067 100644 --- a/pkg/transform/transform.go +++ b/pkg/transform/transform.go @@ -212,6 +212,7 @@ func decodeHexOrBase64(s string) ([]byte, error) { } } +// OPENPGPKEY decoded an OPENPGP key. func OPENPGPKEY(encodedKey string) (string, error) { // Decode the key, which can be either hex or base64. decodedKey, err := decodeHexOrBase64(encodedKey) diff --git a/providers/autodns/api.go b/providers/autodns/api.go index 5bcc100071..761421a308 100644 --- a/providers/autodns/api.go +++ b/providers/autodns/api.go @@ -30,6 +30,7 @@ type ZoneListRequest struct { View *ZoneListView `json:"view,omitempty"` } +// ZoneListView describes a JSON zone list reply. type ZoneListView struct { Limit int `json:"limit"` Offset int `json:"offset"` diff --git a/providers/autodns/types.go b/providers/autodns/types.go index eb95161ae9..d6814ce846 100644 --- a/providers/autodns/types.go +++ b/providers/autodns/types.go @@ -80,6 +80,7 @@ type NameServer struct { IPAddresses []string `json:"ipAddresses,omitempty"` } +// ListResponseMetaData represents a JSON reply to a list command. type ListResponseMetaData struct { ObjectType string `json:"type"` ItemCount int `json:"summary"` diff --git a/providers/exoscale/exoscaleProvider.go b/providers/exoscale/exoscaleProvider.go index 36d049a22c..262d6fea6a 100644 --- a/providers/exoscale/exoscaleProvider.go +++ b/providers/exoscale/exoscaleProvider.go @@ -214,11 +214,11 @@ func (provider *exoscaleProvider) GetZoneRecordsCorrections( } for _, updateCorrelation := range toUpdate { - old := updateCorrelation.Existing.Original.(*egoscale.DNSDomainRecord) - new_ := updateCorrelation.Desired + oldc := updateCorrelation.Existing.Original.(*egoscale.DNSDomainRecord) + newc := updateCorrelation.Desired corrections = append(corrections, &models.Correction{ Msg: updateCorrelation.String(), - F: provider.updateRecordFunc(old, new_, domain.ID), + F: provider.updateRecordFunc(oldc, newc, domain.ID), }) }