engine

package
v0.71.0-beta2024121901 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: MIT Imports: 29 Imported by: 0

Documentation

Overview

Package engine provides the pluggable IaC engine for Terragrunt.

Index

Constants

View Source
const PublicKey = `` /* 2431-byte string literal not displayed */

Variables

This section is empty.

Functions

func ConvertMetaToProtobuf added in v0.66.7

func ConvertMetaToProtobuf(meta map[string]interface{}) (map[string]*anypb.Any, error)

ConvertMetaToProtobuf converts metadata map to protobuf map

func DownloadEngine added in v0.63.5

func DownloadEngine(ctx context.Context, opts *options.TerragruntOptions) error

DownloadEngine downloads the engine for the given options.

func ReadEngineOutput added in v0.66.7

func ReadEngineOutput(runOptions *ExecutionOptions, forceStdErr bool, output outputFn) error

ReadEngineOutput reads the output from the engine, since grpc plugins don't have common type, use lambda function to read bytes from the stream

func Run

func Run(
	ctx context.Context,
	runOptions *ExecutionOptions,
) (*util.CmdOutput, error)

Run executes the given command with the experimental engine.

func Shutdown

func Shutdown(ctx context.Context, opts *options.TerragruntOptions) error

Shutdown shuts down the experimental engine.

func WithEngineValues added in v0.66.3

func WithEngineValues(ctx context.Context) context.Context

WithEngineValues add to context default values for engine.

Types

type ExecutionOptions

type ExecutionOptions struct {
	TerragruntOptions *options.TerragruntOptions
	CmdStdout         io.Writer
	CmdStderr         io.Writer
	WorkingDir        string
	SuppressStdout    bool
	AllocatePseudoTty bool
	Command           string
	Args              []string
}

type OutputLine added in v0.66.7

type OutputLine struct {
	Stdout string
	Stderr string
}

OutputLine represents the output from the engine

Jump to

Keyboard shortcuts

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