github.com/niedbalski/juju@v0.0.0-20190215020005-8ff100488e47/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  	"gopkg.in/juju/worker.v1"
     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  }