migrationtarget

package
v0.0.0-...-6cf1bc9 Latest Latest
Warning

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

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

Documentation

Overview

Package migrationtarget defines the client side API facade for use by the migration master worker when communicating with the target controller.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is the client-side API for the MigrationTarget facade. It is used by the migrationmaster worker when talking to the target controller during a migration.

func NewClient

func NewClient(caller base.APICaller) *Client

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

func (*Client) Abort

func (c *Client) Abort(modelUUID string) error

Abort removes all data relating to a previously imported model.

func (*Client) Activate

func (c *Client) Activate(modelUUID string) error

Activate marks a migrated model as being ready to use.

func (*Client) Import

func (c *Client) Import(bytes []byte) error

Import takes a serialized model and imports it into the target controller.

func (*Client) Prechecks

func (c *Client) Prechecks(model coremigration.ModelInfo) error

Jump to

Keyboard shortcuts

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