sceneops

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrPluginNotInstalled error = errors.New("plugin not installed")
	ErrInvalidPlugins     error = errors.New("invalid plugins")
)

Functions

This section is empty.

Types

type DatasetMigrator

type DatasetMigrator struct {
	PropertyRepo      repo.Property
	LayerRepo         repo.Layer
	DatasetSchemaRepo repo.DatasetSchema
	DatasetRepo       repo.Dataset
	Plugin            plugin.Loader
}

TODO: define new loader types and use them instead of repos

func (DatasetMigrator) Migrate

func (srv DatasetMigrator) Migrate(ctx context.Context, sid dataset.SceneID, newdsl []*dataset.Schema, newdl dataset.List) (MigrateDatasetResult, error)

NOTE: DatasetSchemaの削除には対応していない(自動的に削除されない)

type MigrateDatasetResult

type MigrateDatasetResult struct {
	Layers                layer.Map
	Properties            property.Map
	RemovedLayers         *layer.IDSet
	RemovedDatasetSchemas []dataset.SchemaID
	RemovedDatasets       []dataset.ID
}

func (MigrateDatasetResult) Merge

type MigratePluginsResult

type MigratePluginsResult struct {
	Scene             *scene.Scene
	Layers            layer.List
	Properties        []*property.Property
	RemovedLayers     []layer.ID
	RemovedProperties []property.ID
}

type PluginInstaller

type PluginInstaller struct {
}

func (PluginInstaller) InstallPluginFromRepository

func (s PluginInstaller) InstallPluginFromRepository(pluginID scene.PluginID) error

type PluginMigrator

type PluginMigrator struct {
	Property       property.Loader
	PropertySchema property.SchemaLoader
	Dataset        dataset.Loader
	Layer          layer.LoaderByScene
	Plugin         plugin.Loader
}

func (*PluginMigrator) MigratePlugins

func (s *PluginMigrator) MigratePlugins(ctx context.Context, sc *scene.Scene, oldPluginID, newPluginID plugin.ID) (MigratePluginsResult, error)

Jump to

Keyboard shortcuts

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