Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // TimeoutConfigDefault is the default timeout configuration. TimeoutConfigDefault = TimeoutConfig{ ClusterMeshSyncTimeout: 1 * time.Minute, } // ErrRemoteClusterDisconnected is the error returned by wait for sync // operations if the remote cluster is disconnected while still waiting. ErrRemoteClusterDisconnected = errors.New("remote cluster disconnected") )
Functions ¶
Types ¶
type Fn ¶ added in v1.16.0
Fn is the type of a function to wait for the initial synchronization of a given resource type from all remote clusters.
type SyncedCommon ¶ added in v1.16.0
type SyncedCommon struct {
// contains filtered or unexported fields
}
SyncedCommon contains common fields and methods used for tracking the synchronization status of a remote cluster.
func NewSyncedCommon ¶ added in v1.16.0
func NewSyncedCommon() SyncedCommon
NewSyncedCommon returns a new SyncedCommon instance.
func (*SyncedCommon) Stop ¶ added in v1.16.0
func (sc *SyncedCommon) Stop()
type TimeoutConfig ¶
type TimeoutConfig struct { // ClusterMeshSyncTimeout is the timeout when waiting for the initial // synchronization from all remote clusters, before triggering the // circuit breaker and possibly disrupting cross-cluster connections. ClusterMeshSyncTimeout time.Duration }
func (TimeoutConfig) Flags ¶
func (def TimeoutConfig) Flags(flags *pflag.FlagSet)
Click to show internal directories.
Click to hide internal directories.