util

package
v0.0.20 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StarlarkIntToInt64

func StarlarkIntToInt64(starInt starlark.Int) int64

StarlarkIntToInt64 converts a starlark.Int to a Go int64 safely.

func StarlarkValueToGoMap

func StarlarkValueToGoMap(val starlark.Value) (map[string]string, error)

func StarlarkValueToMap

func StarlarkValueToMap(v starlark.Value) (map[string]any, error)

func StarlarkValueToUnstructured

func StarlarkValueToUnstructured(v starlark.Value) (runtime.Unstructured, error)

Example usage: Create an unstructured.Unstructured from a starlark.Dict.

func UnstructuredToStarlarkValue

func UnstructuredToStarlarkValue(u runtime.Unstructured) (starlark.Value, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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