populator

package
v4.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2018 License: Apache-2.0, Apache-2.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package populator implements interfaces that monitor and keep the states of the desired_state_of_word in sync with the "ground truth" from informer.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DesiredStateOfWorldPopulator

type DesiredStateOfWorldPopulator interface {
	Run(stopCh <-chan struct{})
}

DesiredStateOfWorldPopulator periodically verifies that the snapshot in the desired state of the world still exist, if not, it removes them. It also loops through the list of snapshots in the actual state of the world and ensures that each one exists in the desired state of the world cache

func NewDesiredStateOfWorldPopulator

func NewDesiredStateOfWorldPopulator(
	loopSleepDuration time.Duration,
	listSnapshotsRetryDuration time.Duration,
	snapshotStore k8scache.Store,
	desiredStateOfWorld cache.DesiredStateOfWorld) DesiredStateOfWorldPopulator

NewDesiredStateOfWorldPopulator returns a new instance of DesiredStateOfWorldPopulator. loopSleepDuration - the amount of time the populator loop sleeps between

successive executions

desiredStateOfWorld - the cache to populate

Jump to

Keyboard shortcuts

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