executors

package
v1.16.1 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JavaExecutor

type JavaExecutor struct {
	// Path to the command to run.
	Cmd string

	// Optional dir to run the command in.
	Dir string

	// Command to run the Java code - the main entrypoint.
	RunArgs []string

	// Command args to resolve dependencies and build; this will
	// be called after `pulumi new` on Gradle templates. Optional.
	BuildArgs []string

	// Command to autodetect and print Pulumi plugins depended on
	// by the Java program.
	PluginArgs []string

	// Command args to run a plugin (e.g. a provider). Optional if the executor
	// does not support running plugins.
	RunPluginArgs []string

	// Returns a list of program dependencies as configured for the executor (e.g. in a `pom.xml` for Maven, or a
	// `build.gradle` for Gradle).
	GetProgramDependencies func(
		ctx context.Context,
		req *pulumirpc.GetProgramDependenciesRequest,
	) (*pulumirpc.GetProgramDependenciesResponse, error)
}

Abstracts interactions with a Java project, ability to build, run Java code, and detect plugin dependencies.

func NewJavaExecutor

func NewJavaExecutor(opts JavaExecutorOptions, attachDebugger bool) (*JavaExecutor, error)

Create a new java executor. Note that when a debugger is being attached the only executor that is supported is the maven executor.

type JavaExecutorOptions

type JavaExecutorOptions struct {
	// Current working directory. Abstract to enable testing.
	WD fsys.ParentFS

	// The value of `runtime.options.binary` setting from
	// `Pulumi.yaml`. Optional.
	Binary string

	// The value of `runtime.options.use-executor` setting from
	// `Pulumi.yaml`. Optional.
	UseExecutor string

	// Additional runtime arguments to pass to the program.
	ProgramArgs []string
}

Information available to pick an executor.

Jump to

Keyboard shortcuts

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