Documentation ¶
Overview ¶
Package inject defines interfaces and functions for propagating dependencies from a ControllerManager to the components registered with it. Dependencies are propagated to Reconciler, Source, EventHandler and Predicate objects which implement the Injectable interfaces.
Index ¶
- func CacheInto(c cache.Cache, i interface{}) (bool, error)
- func ClientInto(client client.Client, i interface{}) (bool, error)
- func ConfigInto(config *rest.Config, i interface{}) (bool, error)
- func DecoderInto(decoder types.Decoder, i interface{}) (bool, error)
- func InjectorInto(f Func, i interface{}) (bool, error)
- func SchemeInto(scheme *runtime.Scheme, i interface{}) (bool, error)
- func StopChannelInto(stop <-chan struct{}, i interface{}) (bool, error)
- type Cache
- type Client
- type Config
- type Decoder
- type Func
- type Injector
- type Scheme
- type Stoppable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CacheInto ¶
CacheInto will set informers on i and return the result if it implements Cache. Returns // false if i does not implement Cache.
func ClientInto ¶
ClientInto will set client on i and return the result if it implements Client. Returns false if i does not implement Client.
func ConfigInto ¶
ConfigInto will set config on i and return the result if it implements Config. Returns // false if i does not implement Config.
func DecoderInto ¶ added in v0.1.3
DecoderInto will set decoder on i and return the result if it implements Decoder. Returns false if i does not implement Decoder.
func InjectorInto ¶
InjectorInto will set f and return the result on i if it implements Injector. Returns false if i does not implement Injector.
func SchemeInto ¶
SchemeInto will set scheme and return the result on i if it implements Scheme. Returns false if i does not implement Scheme.
func StopChannelInto ¶
StopChannelInto will set stop channel on i and return the result if it implements Stoppable. Returns false if i does not implement Stoppable.
Types ¶
type Cache ¶
Cache is used by the ControllerManager to inject Cache into Sources, EventHandlers, Predicates, and Reconciles
type Client ¶
Client is used by the ControllerManager to inject client into Sources, EventHandlers, Predicates, and Reconciles
type Config ¶
Config is used by the ControllerManager to inject Config into Sources, EventHandlers, Predicates, and Reconciles
type Decoder ¶ added in v0.1.3
Decoder is used by the ControllerManager to inject decoder into webhook handlers.