migrationtarget

package
v0.0.0-...-4bd6544 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2016 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

This package defines the API facade for use by the migration master worker when interacting with the target controller during a migration.

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 when communicating with the target controller.

func NewAPI

func NewAPI(
	st *state.State,
	resources facade.Resources,
	authorizer facade.Authorizer,
) (*API, error)

NewAPI returns a new API.

func (*API) Abort

func (api *API) Abort(args params.ModelArgs) error

Abort removes the specified model from the database. It is an error to attempt to Abort a model that has a migration mode other than importing.

func (*API) Activate

func (api *API) Activate(args params.ModelArgs) error

Activate sets the migration mode of the model to "active". It is an error to attempt to Abort a model that has a migration mode other than importing.

func (*API) Import

func (api *API) Import(serialized params.SerializedModel) error

Import takes a serialized Juju model, deserializes it, and recreates it in the receiving controller.

func (*API) Prechecks

func (api *API) Prechecks(model params.MigrationModelInfo) error

Prechecks ensure that the target controller is ready to accept a model migration.

Jump to

Keyboard shortcuts

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