1
// Copyright 2016 Canonical Ltd.
2
// Licensed under the AGPLv3, see LICENCE file for details.
4
package migrationmaster
7
"github.com/juju/juju/migration"
8
"github.com/juju/juju/state"
11
func PatchState(p Patcher, st Backend) {
12
p.PatchValue(&getBackend, func(*state.State) Backend {
17
func PatchExportModel(p Patcher, f func(migration.StateExporter) ([]byte, error)) {
18
p.PatchValue(&exportModel, f)
21
type Patcher interface {
22
PatchValue(ptr, value interface{})