engines

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnsupportedEngine = errors.New("unsupported engine")

Functions

This section is empty.

Types

type Config

type Config = map[string]any

type Engine

type Engine interface {
	GetComputeInstances(ctx context.Context, environment Environment) ([]topology.ComputeInstances, error)
	GenerateOutput(ctx context.Context, vertex *topology.Vertex, params map[string]any) ([]byte, error)
}

type Environment

type Environment interface{}

type Loader

type Loader = component.Loader[Engine, Config]

type NamedLoader

type NamedLoader = component.NamedLoader[Engine, Config]

type Registry

type Registry component.Registry[Engine, Config]

func NewRegistry

func NewRegistry(namedLoaders ...NamedLoader) Registry

func (Registry) Get

func (r Registry) Get(name string) (Loader, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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