- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for KnownOrCallback (0.21 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/delayed.go
Resource schema.GroupVersionResource } func (d *delayedFilter) HasSynced() bool { return d.Watcher.HasSynced() } func (d *delayedFilter) KnownOrCallback(f func(stop <-chan struct{})) bool { return d.Watcher.KnownOrCallback(d.Resource, f) } func newDelayedFilter(resource schema.GroupVersionResource, watcher kubetypes.CrdWatcher) *delayedFilter { return &delayedFilter{ Watcher: watcher,
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 31 02:32:59 UTC 2023 - 3.5K bytes - Viewed (0) -
pkg/kube/kubetypes/types.go
type CrdWatcher interface { // HasSynced returns true once all existing state has been synced. HasSynced() bool // KnownOrCallback returns `true` immediately if the resource is known. // If it is not known, `false` is returned. If the resource is later added, the callback will be triggered. KnownOrCallback(s schema.GroupVersionResource, f func(stop <-chan struct{})) bool
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Feb 28 16:41:38 UTC 2024 - 6.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)