modelmigration

package
v0.0.0-...-f88c608 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 License: AGPL-3.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterExport

func RegisterExport(coordinator Coordinator, logger logger.Logger)

RegisterExport registers the export operations with the given coordinator.

func RegisterImport

func RegisterImport(coordinator Coordinator, logger logger.Logger)

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 {
	CloudCredential(ctx context.Context, key credential.Key) (cloud.Credential, error)
}

ExportService provides a subset of the credential domain service methods needed for credential export.

type ImportService

type ImportService interface {
	CloudCredential(context.Context, credential.Key) (cloud.Credential, error)
	UpdateCloudCredential(context.Context, credential.Key, cloud.Credential) error
}

ImportService provides a subset of the credential domain service methods needed for credential import.

Jump to

Keyboard shortcuts

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