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

Method AddReactor

testing/fake.go:98–100  ·  view source on GitHub ↗

AddReactor appends a reactor to the end of the chain.

(verb, resource string, reaction ReactionFunc)

Source from the content-addressed store, hash-verified

96
97// AddReactor appends a reactor to the end of the chain.
98func (c *Fake) AddReactor(verb, resource string, reaction ReactionFunc) {
99 c.ReactionChain = append(c.ReactionChain, &SimpleReactor{verb, resource, reaction})
100}
101
102// PrependReactor adds a reactor to the beginning of the chain.
103func (c *Fake) PrependReactor(verb, resource string, reaction ReactionFunc) {

Callers 5

testTryAcquireOrRenewFunction · 0.80
NewSimpleClientsetFunction · 0.80
NewSimpleDynamicClientFunction · 0.80

Calls

no outgoing calls

Tested by 3

testTryAcquireOrRenewFunction · 0.64