engines

package
v0.0.0-...-cfe5bfc Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// TODO: Try to remove this
	EngineSLURM = "slurm"
)

Variables

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

Functions

This section is empty.

Types

type Config

type Config = struct{}

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