process

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package process owns external processes used by test infrastructure.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	Name   string
	Args   []string
	Dir    string
	Env    map[string]string
	Stdin  io.Reader
	Stdout io.Writer
	Stderr io.Writer
}

type Executor

type Executor struct{}

func (Executor) Run

func (e Executor) Run(ctx context.Context, command *Command) (Result, error)

func (Executor) Start

func (Executor) Start(ctx context.Context, command *Command) (Running, error)

type Result

type Result struct {
	Stdout   string
	Stderr   string
	Combined string
	ExitCode int
}

type Runner

type Runner interface {
	Run(context.Context, *Command) (Result, error)
	Start(context.Context, *Command) (Running, error)
}

type Running

type Running interface {
	Done() <-chan struct{}
	Output() Result
	Wait() (Result, error)
	Stop() error
}

Jump to

Keyboard shortcuts

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