github.com/makyo/juju@v0.0.0-20160425123129-2608902037e9/apiserver/migrationmaster/state.go (about)

     1  // Copyright 2016 Canonical Ltd.
     2  // Licensed under the AGPLv3, see LICENCE file for details.
     3  
     4  package migrationmaster
     5  
     6  import (
     7  	"github.com/juju/juju/migration"
     8  	"github.com/juju/juju/state"
     9  )
    10  
    11  // Backend defines the state functionality required by the
    12  // migrationmaster facade.
    13  type Backend interface {
    14  	migration.StateExporter
    15  
    16  	WatchForModelMigration() (state.NotifyWatcher, error)
    17  	GetModelMigration() (state.ModelMigration, error)
    18  }
    19  
    20  var getBackend = func(st *state.State) Backend {
    21  	return st
    22  }