Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TestOnlySetFatalOnDecodeError ¶
func TestOnlySetFatalOnDecodeError(b bool)
TestOnlySetFatalOnDecodeError should only be used for cases where decode errors are expected and need to be tested. e.g. conversion webhooks.
func WatchInitialized ¶
WatchInitialized sends a signal to priority and fairness dispatcher that a given watch request has already been initialized.
Types ¶
type InitializationSignal ¶
type InitializationSignal interface { // Signal notifies the dispatcher about finished initialization. Signal() // Wait waits for the initialization signal. Wait() }
InitializationSignal is an interface that allows sending and handling initialization signals.
func NewInitializationSignal ¶
func NewInitializationSignal() InitializationSignal
type LeaseManagerConfig ¶
type LeaseManagerConfig struct { // ReuseDurationSeconds specifies time in seconds that each lease is reused ReuseDurationSeconds int64 // MaxObjectCount specifies how many objects that a lease can attach MaxObjectCount int64 }
LeaseManagerConfig is configuration for creating a lease manager.
func NewDefaultLeaseManagerConfig ¶
func NewDefaultLeaseManagerConfig() LeaseManagerConfig
NewDefaultLeaseManagerConfig creates a LeaseManagerConfig with default values
Click to show internal directories.
Click to hide internal directories.