Documentation ¶
Overview ¶
Package controller provides interfaces that are used to define and construct controller instances.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Constructor ¶
Constructor is a function type that takes a controller context and returns a controller implementation. It is used to construct user defined controller instances.
type Context ¶
type Context struct { // An instance of a Kubernetes API client Client clientset.Interface SharedInformers informers.SharedInformers // Recorder is used for recording Kubernetes events Recorder record.EventRecorder // Logger is a logger that can be used by the controller to log info and error messages Logger *logging.Logger }
Context defines a controller context. Each controller is given a context in it's constructor which provides it with various objects set up my the controller manager.
Click to show internal directories.
Click to hide internal directories.