func NewFakePVCControllerSource() *FakePVCControllerSource { return &FakePVCControllerSource{ FakeControllerSource{ Items: map[nnu]runtime.Object{}, Broadcaster: watch.NewBroadcaster(100, watch.WaitIfChannelFull), }} }
// Creates a new event broadcaster. func NewBroadcaster() EventBroadcaster { return &eventBroadcasterImpl{watch.NewBroadcaster(maxQueuedEvents, watch.DropIfChannelFull), defaultSleepDuration} }
func NewBroadcasterForTests(sleepDuration time.Duration) EventBroadcaster { return &eventBroadcasterImpl{watch.NewBroadcaster(maxQueuedEvents, watch.DropIfChannelFull), sleepDuration} }