Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pkg/transform/transform.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions providers/autodns/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
1 change: 1 addition & 0 deletions providers/autodns/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
6 changes: 3 additions & 3 deletions providers/exoscale/exoscaleProvider.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
})
}

Expand Down
Loading