reproxyexec

package
v0.0.0-...-3c039c4 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: BSD-3-Clause Imports: 25 Imported by: 0

Documentation

Overview

Package reproxyexec executes cmd with reproxy.

Index

Constants

View Source
const (
	// WorkerNameRemote is a worker name used in ActionResult.ExecutionMetadata for remote execution result.
	WorkerNameRemote = "reproxy-remote"
	// WorkerNameLocal is a worker name used in ActionResult.ExecutionMetadata for local execution result.
	WorkerNameLocal = "reproxy-local"
	// WorkerNameFallback is a worker name used in ActionResult.ExecutionMetadata for local fallback result.
	WorkerNameFallback = "reproxy-fallback"
	// WorkerNameRacingLocal is a worker name used in ActionResult.ExecutionMetadata for racing local result.
	WorkerNameRacingLocal = "reproxy-racing-local"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type REProxyExec

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

REProxyExec is executor with reproxy. Users of REProxyExec should ensure Close is called to clean up the connection.

func New

func New(ctx context.Context, addr string) *REProxyExec

New creates new remote executor.

func (*REProxyExec) Close

func (re *REProxyExec) Close() error

Close cleans up the executor.

func (*REProxyExec) Enabled

func (re *REProxyExec) Enabled() bool

Enabled returns whether reproxy is enabled or not.

func (*REProxyExec) Run

func (re *REProxyExec) Run(ctx context.Context, cmd *execute.Cmd) error

Run runs a cmd.

func (*REProxyExec) Used

func (re *REProxyExec) Used() bool

Used returns whether reproxy is used or not.

Directories

Path Synopsis
Package reproxytest provides fake implementation of reproxy for test.
Package reproxytest provides fake implementation of reproxy for test.

Jump to

Keyboard shortcuts

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