controller

package
v0.17.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

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()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL