xdsmgr

package
v0.15.7 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package xdsmgr implements a resource discovery manager for envoy.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

A Manager manages xDS resources.

func NewManager

func NewManager(resources map[string][]*envoy_service_discovery_v3.Resource, eventHandler func(*events.EnvoyConfigurationEvent)) *Manager

NewManager creates a new Manager.

func (*Manager) DeltaAggregatedResources

DeltaAggregatedResources implements the increment xDS server.

func (*Manager) StreamAggregatedResources

StreamAggregatedResources is not implemented.

func (*Manager) Update

func (mgr *Manager) Update(ctx context.Context, resources map[string][]*envoy_service_discovery_v3.Resource)

Update updates the state of resources. If any changes are made they will be pushed to any listening streams. For each TypeURL the list of resources should be the complete list of resources.

Jump to

Keyboard shortcuts

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