1 package watch 2 3 import "k8s.io/apimachinery/pkg/watch" 4 5 type NoOpWatcher struct{} 6 7 var _ watch.Interface = (*NoOpWatcher)(nil) 8 9 func NewNoOpWatcher() NoOpWatcher { 10 return NoOpWatcher{} 11 } 12 13 func (o NoOpWatcher) Stop() {} 14 15 func (o NoOpWatcher) ResultChan() <-chan watch.Event { 16 return make(chan watch.Event) 17 } 18