plan

package
v0.0.0-...-eedacba Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 8, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Changes

type Changes struct {
	// ExternaIPs that need to be updated (current data)
	UpdateOld []*extip.ExtIP
	// ExternaIPs that need to be updated (desired data)
	UpdateNew []*extip.ExtIP
}

Changes holds lists of actions to be executed by dns providers

type Plan

type Plan struct {
	// List of current records
	Current []*extip.ExtIP
	// List of desired records
	Desired []*extip.ExtIP
	// List of changes necessary to move towards desired state
	// Populated after calling Calculate()
	Changes *Changes
}

func (*Plan) Calculate

func (p *Plan) Calculate() *Plan

Calculate computes the actions needed to move current state towards desired state. It then passes those changes to the current policy for further processing. It returns a copy of Plan with the changes populated.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL