migrationmaster

package
v0.0.0-...-2608902 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2016 License: AGPL-3.0 Imports: 7 Imported by: 0

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).

func NewClient

func NewClient(caller base.APICaller) Client

NewClient returns a new Client based on an existing API connection.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL