migrationtarget

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: 3 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 interface {
	// Import takes a serialized model and imports it into the target
	// controller.
	Import([]byte) error

	// Abort removes all data relating to a previously imported
	// model.
	Abort(string) error

	// Activate marks a migrated model as being ready to use.
	Activate(string) error
}

Client describes the client side API for the MigrationTarget facade. It is called by the migration master worker to talk 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.

Jump to

Keyboard shortcuts

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