starlark

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2021 License: Apache-2.0 Imports: 12 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 RenderBuild added in v0.9.0

func RenderBuild(b string, envs map[string]string) (*types.Build, error)

RenderBuild renders the templated build.

func RenderStep added in v0.9.0

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

nolint: funlen,lll // ignore function length due to comments

Types

This section is empty.

Jump to

Keyboard shortcuts

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