scriptlet

package
v6.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InstancePlacementRun

func InstancePlacementRun(ctx context.Context, l logger.Logger, s *state.State, req *apiScriptlet.InstancePlacement, candidateMembers []db.NodeInfo, leaderAddress string) (*db.NodeInfo, error)

InstancePlacementRun runs the instance placement scriptlet and returns the chosen cluster member target.

func QEMURun added in v6.0.2

func QEMURun(l logger.Logger, m *qmp.Monitor, instance string, stage string) error

QEMURun runs the QEMU scriptlet.

func StarlarkMarshal

func StarlarkMarshal(input any) (starlark.Value, error)

StarlarkMarshal converts input to a starlark Value. It only includes exported struct fields, and uses the "json" tag for field names.

func StarlarkUnmarshal added in v6.0.2

func StarlarkUnmarshal(input starlark.Value) (any, error)

StarlarkUnmarshal converts a Starlark value into a Go value. Only NoneType, Bool, Int, Float, String, List and Dict are supported.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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