mirror of
https://github.com/redhat-developer/odo.git
synced 2025-10-19 03:06:19 +03:00
* Call WatchAndPush * NoOpWatcher for Kube-related watchers + Move cleanup to dedicated method * Set component state * Call reconcile again when files changed * Fix prompt message * Integration test for podman/sync file * More integration tests * Move display of forwarded ports after application started
18 lines
308 B
Go
18 lines
308 B
Go
package watch
|
|
|
|
import "k8s.io/apimachinery/pkg/watch"
|
|
|
|
type NoOpWatcher struct{}
|
|
|
|
var _ watch.Interface = (*NoOpWatcher)(nil)
|
|
|
|
func NewNoOpWatcher() NoOpWatcher {
|
|
return NoOpWatcher{}
|
|
}
|
|
|
|
func (o NoOpWatcher) Stop() {}
|
|
|
|
func (o NoOpWatcher) ResultChan() <-chan watch.Event {
|
|
return make(chan watch.Event)
|
|
}
|