server

package
v0.0.0-...-01c4e9a Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReasonResync    = "resync"
	ReasonEvent     = "event"
	ResultChanged   = "changed"
	ResultNoChanges = "no_changes"
)

Variables

This section is empty.

Functions

func NewNackBackoff

func NewNackBackoff(backoff time.Duration) util_xds.DeltaCallbacks

Types

type ErrorRecorderStream

type ErrorRecorderStream interface {
	stream.DeltaStream
	Err() error
}

ErrorRecorderStream is a DeltaStream that records an error We need this because go-control-plane@v0.11.1/pkg/server/delta/v3/server.go:190 swallows an error on Recv()

func NewErrorRecorderStream

func NewErrorRecorderStream(s stream.DeltaStream) ErrorRecorderStream

type EventBasedWatchdog

type EventBasedWatchdog struct {
	Ctx                 context.Context
	Node                *envoy_core.Node
	EventBus            events.EventBus
	Reconciler          reconcile.Reconciler
	ProvidedTypes       map[model.ResourceType]struct{}
	Log                 logr.Logger
	NewFlushTicker      func() *time.Ticker
	NewFullResyncTicker func() *time.Ticker
}

func (*EventBasedWatchdog) Start

func (e *EventBasedWatchdog) Start(stop <-chan struct{})

type Server

type Server interface {
	ZoneToGlobal(stream stream.DeltaStream) error
	mesh_proto.DDSSyncServiceServer
}

func New

func New(
	log logr.Logger,
	rt core_runtime.Runtime,
	providedTypes []model.ResourceType,
	serverID string,
	refresh time.Duration,
	filter reconcile.ResourceFilter,
	mapper reconcile.ResourceMapper,
	nackBackoff time.Duration,
) (Server, error)

func NewServer

func NewServer(config envoy_cache.Cache, callbacks envoy_server.Callbacks) Server

type ServerStream

type ServerStream interface {
	stream.DeltaStream
}

func NewServerStream

NewServerStream converts client stream to a server's DeltaStream, so it can be used in DeltaStreamHandler

Jump to

Keyboard shortcuts

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