- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for KnownOrCallback (0.25 sec)
-
pkg/kube/kclient/crdwatcher_test.go
ctl := c.CrdWatcher() // Created before informer runs assert.Equal(t, ctl.KnownOrCallback(gvr.VirtualService, func(s <-chan struct{}) { assert.Equal(t, s, stop) vsCalls.Inc() }), false) c.RunAndWait(stop) assert.EventuallyEqual(t, vsCalls.Load, 1) // created once running assert.Equal(t, ctl.KnownOrCallback(gvr.GatewayClass, func(s <-chan struct{}) { t.Fatalf("callback should not be called") }), true)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Apr 25 14:44:17 UTC 2024 - 3.1K bytes - Viewed (0) -
pkg/kube/kclient/crdwatcher.go
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Apr 25 14:44:17 UTC 2024 - 5.7K bytes - Viewed (0) -
pkg/kube/kclient/client.go
} // If resource is not yet known, we will use the delayedClient. // When the resource is later loaded, the callback will trigger and swap our dummy delayedClient // with a full client readyNow := delay.KnownOrCallback(func(stop <-chan struct{}) { // The inf() call is responsible for starting the informer inf := getInf() fc := &informerClient[T]{ informer: inf.Informer, startInformer: inf.Start, }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 17 07:14:28 UTC 2024 - 13K bytes - Viewed (0)