expand

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2022 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpandStar

func ExpandStar(
	expandRoot string,
	clusterRoot string,
	params map[string]interface{},
) error

ExpandStar expands all starlark in the root directory, replacing each file with its YAML expansion.

func GoToStarValue

func GoToStarValue(obj interface{}) (starlark.Value, error)

GoToStarValue converts the given go interface to the equivalent Starlark value.

func NewURLFileReader

func NewURLFileReader(root string) (*urlFileReader, error)

NewURLFileReader returns a skycfg FileReader that reads files from local disk, resolving remote URLs if needed.

func StarStrToObjs

func StarStrToObjs(
	starStr string,
	root string,
	params map[string]interface{},
) ([]runtime.Object, error)

StarStrToObjs converts a starlark string into one or more Kubernetes objects. It's intended for testing.

func StarToObjs

func StarToObjs(
	path string,
	root string,
	params map[string]interface{},
) ([]runtime.Object, error)

StarToObjs converts a starlark file into one or more Kubernetes objects.

func StarToYaml

func StarToYaml(path string, root string, params map[string]interface{}) (string, error)

StarToYaml converts a starlark file into a YAML Kubernetes file.

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