evaluator

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAndProcessPklFile

func CreateAndProcessPklFile(
	fs afero.Fs,
	ctx context.Context,
	sections []string,
	finalFileName string,
	pklTemplate string,
	logger *logging.Logger,
	processFunc func(fs afero.Fs, ctx context.Context, tmpFile string, headerSection string, logger *logging.Logger) (string, error),
	isExtension bool,
) error

func EnsurePklBinaryExists

func EnsurePklBinaryExists(ctx context.Context, logger *logging.Logger) error

EnsurePklBinaryExists checks if the 'pkl' binary exists in the system PATH.

func EvalPkl

func EvalPkl(fs afero.Fs, ctx context.Context, resourcePath string, headerSection string, logger *logging.Logger) (string, error)

EvalPkl evaluates the resource file at resourcePath using the 'pkl' binary. It expects the resourcePath to have a .pkl extension.

Types

This section is empty.

Jump to

Keyboard shortcuts

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