starlark

package
v0.25.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrMissingMainFunc defines the error type when the
	// main function does not exist in the provided template.
	ErrMissingMainFunc = errors.New("unable to find main function in template")

	// ErrInvalidMainFunc defines the error type when the
	// main function is invalid within the provided template.
	ErrInvalidMainFunc = errors.New("invalid main function (main must be a function) in template")

	// ErrInvalidPipelineReturn defines the error type when the
	// return type is not a pipeline within the provided template.
	ErrInvalidPipelineReturn = errors.New("invalid pipeline return in template")
)
View Source
var (
	// ErrUnableToConvertStarlark defines the error type when the
	// toStarlark cannot convert the provided value.
	ErrUnableToConvertStarlark = errors.New("unable to convert to starlark type")

	// ErrUnableToConvertJSON defines the error type when the
	// writeJSON cannot convert the provided value.
	ErrUnableToConvertJSON = errors.New("unable to convert to json")
)

Functions

func Render added in v0.13.0

func Render(tmpl string, name string, tName string, environment raw.StringSliceMap, variables map[string]interface{}, limit uint64) (*types.Build, error)

Render combines the template with the step in the yaml pipeline.

func RenderBuild

func RenderBuild(tmpl string, b string, envs map[string]string, variables map[string]interface{}, limit uint64) (*types.Build, error)

RenderBuild renders the templated build.

Types

This section is empty.

Jump to

Keyboard shortcuts

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