github.com/niedbalski/juju@v0.0.0-20190215020005-8ff100488e47/worker/restorewatcher/shim.go (about) 1 // Copyright 2017 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 package restorewatcher 5 6 import "github.com/juju/juju/state" 7 8 type RestoreInfoWatcherShim struct { 9 *state.State 10 } 11 12 func (r RestoreInfoWatcherShim) RestoreStatus() (state.RestoreStatus, error) { 13 return r.RestoreInfo().Status() 14 }