Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Registry is the event handler registry where controller events will be sent. Registry *event.Registry // RestConfig the REST config used to access the resources to watch. RestConfig *rest.Config // RestMapper can be provided for unit testing. By default New will create its own RestMapper. RestMapper meta.RESTMapper // Client can be provided for unit testing. By default New will create its own dynamic client. Client dynamic.Interface Scheme *runtime.Scheme }
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func New ¶
func New(config *Config) (*Controller, error)
func (*Controller) Start ¶
func (c *Controller) Start(stopCh <-chan struct{}) error
Start starts the controller.
func (*Controller) Stop ¶
func (c *Controller) Stop()
Click to show internal directories.
Click to hide internal directories.