reconcile

package
v0.0.0-...-7b34d14 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Any

func Any(clusterID string, r model.Resource) bool

Types

type Reconciler

type Reconciler interface {
	Reconcile(context.Context, *envoy_core.Node) error
}

Reconciler re-computes configuration for a given node.

func NewReconciler

func NewReconciler(hasher envoy_cache.NodeHash, cache util_xds.SnapshotCache,
	generator SnapshotGenerator, versioner util_xds.SnapshotVersioner) Reconciler

type ResourceFilter

type ResourceFilter func(clusterID string, r model.Resource) bool

type SnapshotGenerator

type SnapshotGenerator interface {
	GenerateSnapshot(context.Context, *envoy_core.Node) (util_xds.Snapshot, error)
}

Generates a snapshot of xDS resources for a given node.

func NewSnapshotGenerator

func NewSnapshotGenerator(resourceManager core_manager.ReadOnlyResourceManager, types []model.ResourceType, filter ResourceFilter) SnapshotGenerator

Jump to

Keyboard shortcuts

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