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 a new model migration importer to the coordinator, for importing unit states.
Types ¶
type Coordinator ¶
type Coordinator interface {
Add(modelmigration.Operation)
}
Coordinator is the interface that is used to add operations to a migration.
type ExportService ¶
type ExportService interface { // GetState returns the full unit state. The state may be empty. GetState(ctx context.Context, name coreunit.Name) (unitstate.RetrievedUnitState, error) }
ExportService provides a subset of the unitstate domain service methods needed for the unitstate export.
type ImportService ¶
type ImportService interface { // SetState persists the input unit state selectively, // based on its populated values. SetState(context.Context, unitstate.UnitState) error }
ImportService provides a subset of the unitstate domain service methods needed for the unitstate import.
Click to show internal directories.
Click to hide internal directories.