controller

package
v0.0.0-...-e4d8b92 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: Apache-2.0 Imports: 8 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (

	// ClientTimeout specifies the timeout for our calls to the API server for
	// all client operations
	ClientTimeout = 30 * time.Second

	// APIResponseSoftLimit specifies the time after which a Warning gets logged if
	// response from API is not received before that time
	APIResponseSoftLimit = 2 * time.Second
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudNetworkConfigController

type CloudNetworkConfigController struct {
	// CloudNetworkConfigController implements the generic interface: which
	// allows all derived controllers an abstraction from the "bricks and pipes"
	// of the controller framework, allowing them to implement only their
	// specific control loop functionality and not bother with the rest.
	CloudNetworkConfigControllerIntf
	// contains filtered or unexported fields
}

func NewCloudNetworkConfigController

func NewCloudNetworkConfigController(
	syncs []cache.InformerSynced,
	resourceController CloudNetworkConfigControllerIntf,
	resourceControllerKey string,
	resourceControllerType reflect.Type) *CloudNetworkConfigController

func (*CloudNetworkConfigController) Enqueue

func (c *CloudNetworkConfigController) Enqueue(obj interface{})

Enqueue takes a resource object and converts it into a name/namespace or name string which is then put onto the work queue. This method __should__ not be passed resources of any type other than the dedicated controller object.

func (*CloudNetworkConfigController) Run

func (c *CloudNetworkConfigController) Run(stopCh <-chan struct{}) error

Run will set up the event handlers for types we are interested in, as well as syncing informer caches and starting workers. It will block until stopCh is closed, at which point it will shutdown the workqueue and wait for workers to finish processing their current work items.

type CloudNetworkConfigControllerIntf

type CloudNetworkConfigControllerIntf interface {
	SyncHandler(key string) error
	// InitialSync is called once after informer caches are synced but before workers start.
	// Use this for one-time cleanup or initialization that requires access to the full
	// state of the cluster (e.g., listing all existing resources).
	InitialSync() error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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