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 { GetAllSpaces(ctx context.Context) (network.SpaceInfos, error) GetAllSubnets(ctx context.Context) (network.SubnetInfos, error) }
ExportService provides a subset of the network domain service methods needed for spaces/subnets export.
type ImportService ¶
type ImportService interface { AddSpace(ctx context.Context, space network.SpaceInfo) (network.Id, error) Space(ctx context.Context, uuid string) (*network.SpaceInfo, error) AddSubnet(ctx context.Context, args network.SubnetInfo) (network.Id, error) }
ImportService provides a subset of the network domain service methods needed for spaces/subnets import.
Click to show internal directories.
Click to hide internal directories.