Files
odo/pkg/watch/noop_watcher.go
Philippe Martin f079c3cd7a Sync files on Podman (#6348)
* 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
2022-11-30 11:43:07 -05:00

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)
}