1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

CHORE: linting (#2176)

This commit is contained in:
Tom Limoncelli
2023-03-15 18:35:34 -04:00
committed by GitHub
parent fb6a79ab6f
commit 81054e72c5
3 changed files with 23 additions and 14 deletions

View File

@ -13,8 +13,10 @@ import (
"github.com/StackExchange/dnscontrol/v3/models"
)
// Verb indicates the Change's type (create, delete, etc.)
type Verb int
// CREATE and other verbs.
const (
_ Verb = iota // Skip the first value of 0
CREATE // Create a record/recordset/label where none existed before.
@ -23,8 +25,11 @@ const (
REPORT // No change, but I have something to say!
)
// ChangeList is a list of Change
type ChangeList []Change
// Change is an instruction to the provider. Generally if one properly executes
// all the changes, an "existing" zone will turn into the "desired" zone.
type Change struct {
Type Verb // Add, Change, Delete