Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterExport ¶
func RegisterExport(coordinator Coordinator)
RegisterExport registers the export operations with the given coordinator.
func RegisterImport ¶
func RegisterImport(coordinator Coordinator)
RegisterImport registers the import operations with the given coordinator.
Types ¶
type Coordinator ¶
type Coordinator interface { // Add adds the given operation to the migration. Add(modelmigration.Operation) }
Coordinator is the interface that is used to add operations to a migration.
type ExportService ¶
type ExportService interface { // ControllerForModel returns the controller record that's associated // with the modelUUID. ControllerForModel(ctx context.Context, modelUUID string) (*crossmodel.ControllerInfo, error) // ModelsForController returns the list of model UUIDs for // the given controllerUUID. ModelsForController(ctx context.Context, controllerUUID string) ([]string, error) // ControllersForModels returns the list of controllers which // are part of the given modelUUIDs. // The resulting MigrationControllerInfo contains the list of models // for each controller. ControllersForModels(ctx context.Context, modelUUIDs ...string) ([]crossmodel.ControllerInfo, error) }
ExportService provides a subset of the external controller domain service methods needed for external controller export.
type ImportService ¶
type ImportService interface {
ImportExternalControllers(context.Context, []crossmodel.ControllerInfo) error
}
Click to show internal directories.
Click to hide internal directories.