endpointstate

package
v1.19.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RestorationNotifier added in v1.19.0

type RestorationNotifier interface {
	// RestorationNotify is called once the "old" endpoints have been read from disk.
	// The Endpoints are not yet exposed to the EndpointManager.
	RestorationNotify(possible map[uint16]*endpoint.Endpoint)
}

RestorationNotifier is implemented by components that need to be restored with the "old" endpoints that have been read from disk by the Endpoint restorer. Components should register with Hive value groups by using RestorationNotifierOut.

type RestorationNotifierOut added in v1.19.0

type RestorationNotifierOut struct {
	cell.Out

	Restorer RestorationNotifier `group:"endpointRestorationNotifiers"`
}

type Restorer

type Restorer interface {
	// WaitForEndpointRestoreWithoutRegeneration blocks the caller until either the context is
	// cancelled or all the endpoints from a previous run have been restored.
	WaitForEndpointRestoreWithoutRegeneration(ctx context.Context) error

	// WaitForEndpointRestore blocks the caller until either the context is
	// cancelled or all the endpoints from a previous run have been restored and regenerated.
	WaitForEndpointRestore(ctx context.Context) error

	// WaitForInitialPolicy blocks the caller until either the context is
	// cancelled or initial policies of all restored endpoints have been computed.
	WaitForInitialPolicy(ctx context.Context) error
}

Restorer wraps a method to wait for endpoints restoration.

Jump to

Keyboard shortcuts

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