sdkruntimes

package
v0.8.5 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build added in v0.2.0

func Build(
	ctx context.Context,
	rts sdkservices.Runtimes,
	srcFS fs.FS,
	symbols []sdktypes.Symbol,
	memo map[string]string,
) (*sdkbuildfile.BuildFile, error)

func MatchRuntimeByPath

func MatchRuntimeByPath(rts []sdktypes.Runtime, path string) (sdktypes.Runtime, bool)

func New

func New(rts []*Runtime) (sdkservices.Runtimes, error)

func Run added in v0.2.0

func Run(ctx context.Context, params RunParams) (sdkservices.Run, error)

Run executes a build file and manages it across multiple runtimes. fallthourghCallbacks.{Load,Call} are called only for dynamic modules (modules that are supplied from integrations).

Types

type NewRuntimeFunc

type NewRuntimeFunc = func() (sdkservices.Runtime, error)

type RunParams added in v0.2.0

type RunParams struct {
	Runtimes             sdkservices.Runtimes
	BuildFile            *sdkbuildfile.BuildFile
	Globals              map[string]sdktypes.Value
	RunID                sdktypes.RunID
	FallthroughCallbacks sdkservices.RunCallbacks
	EntryPointPath       string
}

type Runtime

type Runtime struct {
	Desc sdktypes.Runtime
	New  func() (sdkservices.Runtime, error)
}

Jump to

Keyboard shortcuts

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