modelmigration

package
v0.0.0-...-56cb166 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2025 License: AGPL-3.0 Imports: 10 Imported by: 0

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.

Jump to

Keyboard shortcuts

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