controller

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	Zone string

	Source   source.Source
	Provider provider.Provider
	// The interval between individual synchronizations
	Interval time.Duration
}

Controller is responsible for orchestrating the different components. It works in the following way: * Ask the DNS provider for current list of endpoints. * Ask the Source for the desired list of endpoints. * Take both lists and calculate a Plan to move current towards desired state. * Tell the DNS provider to apply the changes calucated by the Plan.

func (*Controller) Run

func (c *Controller) Run(stopChan <-chan struct{})

Run runs RunOnce in a loop with a delay until stopChan receives a value.

func (*Controller) RunOnce

func (c *Controller) RunOnce() error

RunOnce runs a single iteration of a reconciliation loop.

Jump to

Keyboard shortcuts

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