Documentation ¶
Overview ¶
This package defines the API facade for use by the migration master worker when communicating to it's own controller.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
API implements the API required for the model migration master worker.
func NewAPI ¶
func NewAPI( st *state.State, resources *common.Resources, authorizer common.Authorizer, ) (*API, error)
NewAPI creates a new API server endpoint for the model migration master worker.
func (*API) Export ¶
func (api *API) Export() (params.SerializedModel, error)
Export serializes the model associated with the API connection.
func (*API) GetMigrationStatus ¶
func (api *API) GetMigrationStatus() (params.FullMigrationStatus, error)
GetMigrationStatus returns the details and progress of the latest model migration.
type Backend ¶
type Backend interface { migration.StateExporter WatchForModelMigration() (state.NotifyWatcher, error) GetModelMigration() (state.ModelMigration, error) }
Backend defines the state functionality required by the migrationmaster facade.
Click to show internal directories.
Click to hide internal directories.