sync

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2018 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Overwatch *overwatch

Overwatch is watching over every registered synchronizer. In case of error it will be logged and if RestartPolicy is set to "Always" synchronizer will be restarted.

Functions

func NewSynchronizerManager

func NewSynchronizerManager(client kubernetes.Interface) syncApi.SynchronizerManager

NewSynchronizerManager creates new instance of SynchronizerManager.

Types

type RestartPolicy

type RestartPolicy string

RestartPolicy is used by Overwatch to determine how to behave in case of synchronizer error.

const (
	// In case of synchronizer error it will be restarted.
	AlwaysRestart RestartPolicy = "always"
	NeverRestart  RestartPolicy = "never"

	RestartDelay = 2 * time.Second
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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