github.com/niedbalski/juju@v0.0.0-20190215020005-8ff100488e47/core/watcher/migrationstatus.go (about) 1 // Copyright 2016 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 package watcher 5 6 import "github.com/juju/juju/core/migration" 7 8 // MigrationStatus is the client side version of 9 // params.MigrationStatus. 10 type MigrationStatus struct { 11 MigrationId string 12 Attempt int 13 Phase migration.Phase 14 SourceAPIAddrs []string 15 SourceCACert string 16 TargetAPIAddrs []string 17 TargetCACert string 18 } 19 20 // MigrationStatusWatcher describes a watcher that reports the latest 21 // status of a migration for a model. 22 type MigrationStatusWatcher interface { 23 CoreWatcher 24 Changes() <-chan MigrationStatus 25 }