executor

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package executor handles pack protocol communication using PackRunners.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Executor

type Executor struct {
	// contains filtered or unexported fields
}

Executor handles pack protocol communication using a PackRunner.

func NewExecutor

func NewExecutor(r runner.PackRunner, packLogsEnabled bool) *Executor

NewExecutor creates a new Executor with the given runner. packLogsEnabled controls whether stderr output from the pack is logged.

func (*Executor) Cleanup

func (e *Executor) Cleanup(ctx context.Context, input *pack.CleanupInput) (*pack.Result, error)

Cleanup runs the pack's cleanup command.

func (*Executor) Detonate

func (e *Executor) Detonate(ctx context.Context, input *pack.DetonateInput) (*pack.Result, error)

Detonate runs the pack's detonate command.

func (*Executor) WithLogFields

func (e *Executor) WithLogFields(fields logrus.Fields) *Executor

WithLogFields returns a new Executor that includes extra fields in all log entries.

Jump to

Keyboard shortcuts

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