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 // MasterURL accepts the K8s API URL. By default the in-cluster-config will be used. MasterURL string // Kubeconfig accepts the kubeconfig with the cluster credentials. By default the in-cluster-config will be used. Kubeconfig string // 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 }
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.