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

Struct SimpleProxyReactor

testing/fixture.go:540–544  ·  view source on GitHub ↗

SimpleProxyReactor is a ProxyReactor. Each reaction function is attached to a given resource. "*" matches everything for that value. For instance, *,pods matches all verbs on pods. This allows for easier composition of reaction functions.

Source from the content-addressed store, hash-verified

538// SimpleProxyReactor is a ProxyReactor. Each reaction function is attached to a given resource. "*" matches everything for that value.
539// For instance, *,pods matches all verbs on pods. This allows for easier composition of reaction functions.
540type SimpleProxyReactor struct {
541 Resource string
542
543 Reaction ProxyReactionFunc
544}
545
546func (r *SimpleProxyReactor) Handles(action Action) bool {
547 resourceCovers := r.Resource == "*" || r.Resource == action.GetResource().Resource

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected