github.com/cloud-green/juju@v0.0.0-20151002100041-a00291338d3d/worker/uniter/remotestate/interface.go (about) 1 package remotestate 2 3 type Watcher interface { 4 // RemoteStateChanged returns a channel which is signalled 5 // whenever the remote state is changed. 6 RemoteStateChanged() <-chan struct{} 7 8 // Snapshot returns the current snapshot of the remote state. 9 Snapshot() Snapshot 10 11 // TODO(axw) Kill instead of Stop 12 Stop() error 13 Wait() error 14 }