github.com/makyo/juju@v0.0.0-20160425123129-2608902037e9/apiserver/migrationminion/state.go (about) 1 // Copyright 2016 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 package migrationminion 5 6 import "github.com/juju/juju/state" 7 8 // Backend defines the state functionality required by the 9 // MigrationMinion facade. 10 type Backend interface { 11 WatchMigrationStatus() (state.NotifyWatcher, error) 12 } 13 14 var getBackend = func(st *state.State) Backend { 15 return st 16 }