MCPcopy
hub / github.com/kubernetes/client-go / PrependWatchReactor

Method PrependWatchReactor

testing/fake.go:113–115  ·  view source on GitHub ↗

PrependWatchReactor adds a reactor to the beginning of the chain.

(resource string, reaction WatchReactionFunc)

Source from the content-addressed store, hash-verified

111
112// PrependWatchReactor adds a reactor to the beginning of the chain.
113func (c *Fake) PrependWatchReactor(resource string, reaction WatchReactionFunc) {
114 c.WatchReactionChain = append([]WatchReactor{&SimpleWatchReactor{resource, reaction}}, c.WatchReactionChain...)
115}
116
117// AddProxyReactor appends a reactor to the end of the chain.
118func (c *Fake) AddProxyReactor(resource string, reaction ProxyReactionFunc) {

Callers 1

TestNewInformerWatcherFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestNewInformerWatcherFunction · 0.64