sync

package
v0.0.0-...-8a48855 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

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

	RestartDelay = 2 * time.Second
	// We don't need to sync it with every instance. If a single instance synchronizer fails
	// often, just force restart it.
	MaxRestartCount = 15
)

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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