package
0.0.0-20200122233423-62801f1d34cf
Repository: https://github.com/vishvananda/pkg.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

No description provided by the author
Filter makes it simple to create FilterFunc's for use with cache.FilteringResourceEventHandler that filter based on the schema.GroupVersionKind of the controlling resources.
FilterWithName makes it simple to create FilterFunc's for use with cache.FilteringResourceEventHandler that filter based on a name.
FilterWithNameAndNamespace makes it simple to create FilterFunc's for use with cache.FilteringResourceEventHandler that filter based on a namespace and a name.
GetEventRecorder attempts to look up the record.EventRecorder on a given context.
GetResyncPeriod returns the resync period associated with the given context.
GetTrackerLease fetches the tracker lease from the controller context.
HandleAll wraps the provided handler function into a cache.ResourceEventHandler that sends all events to the given handler.
IsPermanentError returns true if given error is permanentError.
MustNewStatsReporter creates a new instance of StatsReporter.
NewImpl instantiates an instance of our controller that will feed work to the provided Reconciler as it is enqueued.
No description provided by the author
NewPermanentError returns a new instance of permanentError.
NewStatsReporter creates a reporter that collects and reports metrics.
PassNew makes it simple to create an UpdateFunc for use with cache.ResourceEventHandlerFuncs that can delegate the same methods as AddFunc/DeleteFunc but passing through only the second argument (which is the "new" object).
RunInformers kicks off all of the passed informers and then waits for all of them to synchronize.
StartAll kicks off all of the passed controllers with DefaultThreadsPerController.
StartInformers kicks off all of the passed informers and then waits for all of them to synchronize.
WithEventRecorder attaches the given record.EventRecorder to the provided context in the returned context.
WithResyncPeriod associates the given resync period with the given context in the context that is returned.

# Constants

DefaultResyncPeriod is the default duration that is used when no resync period is associated with a controllers initialization context.

# Variables

DefaultThreadsPerController is the number of threads to use when processing the controller's workqueue.

# Structs

Impl is our core controller implementation.

# Interfaces

Informer is the group of methods that a type must implement to be passed to StartInformers.
Reconciler is the interface that controller implementations are expected to implement, so that the shared controller.Impl can drive work through it.
StatsReporter defines the interface for sending metrics.

# Type aliases

No description provided by the author