remoteexec

package
v0.0.0-...-9febfc8 Latest Latest
Warning

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

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

Documentation

Overview

Package remoteexec executes cmd with remote exec API.

Index

Constants

This section is empty.

Variables

View Source
var Semaphore = semaphore.New("remoteexec-digest", runtimex.NumCPU()*10)

Semaphore enforces a limit on parallel digest calculations to prevent an OOM.

Functions

This section is empty.

Types

type RemoteExec

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

RemoteExec is executor with remote exec API.

func New

func New(ctx context.Context, client *reapi.Client) *RemoteExec

New creates new remote executor.

func (*RemoteExec) Run

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

Run runs a cmd.

Jump to

Keyboard shortcuts

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