github.com/wallyworld/juju@v0.0.0-20161013125918-6cf1bc9d917a/worker/uniter/remotestate/interface.go (about) 1 // Copyright 2015 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 package remotestate 5 6 import ( 7 "github.com/juju/juju/worker" 8 ) 9 10 type Watcher interface { 11 // RemoteStateChanged returns a channel which is signalled 12 // whenever the remote state is changed. 13 RemoteStateChanged() <-chan struct{} 14 15 // Snapshot returns the current snapshot of the remote state. 16 Snapshot() Snapshot 17 18 worker.Worker 19 }