Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterExport ¶
func RegisterExport(coordinator Coordinator, logger logger.Logger, clock clock.Clock)
RegisterExport registers the export operations with the given coordinator.
func RegisterImport ¶
func RegisterImport(coordinator Coordinator, logger logger.Logger, clock clock.Clock)
RegisterImport register's a new model migration importer into the supplied coordinator.
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 {
AllCloudImageMetadata(ctx context.Context) ([]cloudimagemetadata.Metadata, error)
}
ExportService provides methods to export cloud image metadata.
type ImportService ¶
type ImportService interface {
SaveMetadata(ctx context.Context, metadata []cloudimagemetadata.Metadata) error
}
ImportService provides methods to save metadata information.
Click to show internal directories.
Click to hide internal directories.