scriptlet

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 19 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 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.

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