Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Correlation ¶
type Correlation struct { Existing *models.RecordConfig Desired *models.RecordConfig // contains filtered or unexported fields }
Correlation stores a difference between two domains.
func (Correlation) String ¶
func (c Correlation) String() string
type Differ ¶
type Differ interface { // IncrementalDiff performs a diff on a record-by-record basis, and returns a sets for which records need to be created, deleted, or modified. IncrementalDiff(existing []*models.RecordConfig) (unchanged, create, toDelete, modify Changeset) // ChangedGroups performs a diff more appropriate for providers with a "RecordSet" model, where all records with the same name and type are grouped. // Individual record changes are often not useful in such scenarios. Instead we return a map of record keys to a list of change descriptions within that group. ChangedGroups(existing []*models.RecordConfig) map[models.RecordKey][]string }
Differ is an interface for computing the difference between two zones.
func New ¶
func New(dc *models.DomainConfig, extraValues ...func(*models.RecordConfig) map[string]string) Differ
New is a constructor for a Differ.
Click to show internal directories.
Click to hide internal directories.