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)} }
func NewBroadcasterForTests(sleepDuration time.Duration) EventBroadcaster { return &eventBroadcasterImpl{watch.NewBroadcaster(maxQueuedEvents, watch.DropIfChannelFull), sleepDuration} }
// Creates a new event broadcaster. func NewBroadcaster() EventBroadcaster { return &eventBroadcasterImpl{watch.NewBroadcaster(maxQueuedEvents, watch.DropIfChannelFull), defaultSleepDuration} }
func NewGeneric(list runtime.Object) *GenericRegistry { return &GenericRegistry{ ObjectList: list, Broadcaster: watch.NewBroadcaster(0, watch.WaitIfChannelFull), } }
func NewPodRegistry(pods *api.PodList) *PodRegistry { return &PodRegistry{ Pods: pods, broadcaster: watch.NewBroadcaster(0, watch.WaitIfChannelFull), } }
// NewFake makes a new fake MasterElector. func NewFake() *Fake { // 0 means block for clients. return &Fake{mux: watch.NewBroadcaster(0, watch.WaitIfChannelFull)} }