Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Manifold ¶
func Manifold(config ManifoldConfig) dependency.Manifold
Manifold returns a dependency manifold that runs the migration worker.
Types ¶
type Config ¶
type Config struct { Agent agent.Agent Facade Facade Guard fortress.Guard APIOpen func(*api.Info, api.DialOpts) (api.Connection, error) ValidateMigration func(base.APICaller) error }
Config defines the operation of a Worker.
type Facade ¶
type Facade interface { Watch() (watcher.MigrationStatusWatcher, error) Report(migrationId string, phase migration.Phase, success bool) error }
Facade exposes controller functionality to a Worker.
type ManifoldConfig ¶
type ManifoldConfig struct { AgentName string APICallerName string FortressName string APIOpen func(*api.Info, api.DialOpts) (api.Connection, error) ValidateMigration func(base.APICaller) error NewFacade func(base.APICaller) (Facade, error) NewWorker func(Config) (worker.Worker, error) }
ManifoldConfig defines the names of the manifolds on which a Worker manifold will depend.
Click to show internal directories.
Click to hide internal directories.