github.com/makyo/juju@v0.0.0-20160425123129-2608902037e9/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 }