scriptlet

package
v0.0.0-pre.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BatchPlacement

func BatchPlacement(batchName string) string

BatchPlacement is the name used in Starlark for the batch placement scriptlet.

func BatchPlacementCompile

func BatchPlacementCompile(name string, src string) (*starlark.Program, error)

BatchPlacementCompile compiles the batch placement scriptlet.

func BatchPlacementProgram

func BatchPlacementProgram(loader *scriptlet.Loader, batchName string) (*starlark.Program, *starlark.Thread, error)

BatchPlacementProgram returns the precompiled batch placement scriptlet program.

func BatchPlacementRun

func BatchPlacementRun(ctx context.Context, loader *scriptlet.Loader, instance api.Instance, batch api.Batch, usedNetworks []api.Network) (*api.Placement, error)

func BatchPlacementSet

func BatchPlacementSet(loader *scriptlet.Loader, src string, batchName string) error

BatchPlacementSet compiles the batch placement scriptlet into memory for use with BatchPlacementRun. If empty src is provided the current program is deleted.

func BatchPlacementValidate

func BatchPlacementValidate(src string, batchName string) error

BatchPlacementValidate validates the batch placement scriptlet.

func CreateLogger

CreateLogger creates a logger for scriptlets.

Types

This section is empty.

Jump to

Keyboard shortcuts

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