Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
// Watch returns a watcher which reports when a migration is
// active for the model associated with the API connection.
Watch() (watcher.NotifyWatcher, error)
// GetMigrationStatus returns the details and progress of the
// latest model migration.
GetMigrationStatus() (MigrationStatus, error)
// SetPhase updates the phase of the currently active model
// migration.
SetPhase(migration.Phase) error
// Export returns a serialized representation of the model
// associated with the API connection.
Export() ([]byte, error)
}
Client describes the client side API for the MigrationMaster facade (used by the migration master worker).
type MigrationStatus ¶
type MigrationStatus struct {
ModelUUID string
Attempt int
Phase migration.Phase
TargetInfo migration.TargetInfo
}
MigrationStatus returns the details for a migration as needed by the migration master worker.
Click to show internal directories.
Click to hide internal directories.