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 exposes endpoint startup barriers. All waits include initialization of endpoint dependencies, even when state restoration is disabled.
Click to show internal directories.
Click to hide internal directories.