github.com/cilium/cilium@v1.16.2/pkg/endpointstate/restorer.go (about)

     1  // SPDX-License-Identifier: Apache-2.0
     2  // Copyright Authors of Cilium
     3  
     4  package endpointstate
     5  
     6  import "context"
     7  
     8  // Restorer wraps a method to wait for endpoints restoration.
     9  type Restorer interface {
    10  	// WaitForEndpointRestore blocks the caller until either the context is
    11  	// cancelled or all the endpoints have been restored from a previous run.
    12  	WaitForEndpointRestore(ctx context.Context)
    13  }