agenttransfer

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: May 20, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package agenttransfer caches uploads of the mproxy-agent binary. It receives a remote backend plus local and remote agent paths from the runtime wiring, and feeds remoteexec, path-stub setup, and file-client bootstrap with the resolved remote agent path.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Transferer

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

Transferer caches the resolved remote agent path so repeated callers of Ensure share one upload.

func New

func New(backend remote.Backend, localPath, remotePath string, log *slog.Logger) *Transferer

New constructs a Transferer.

func (*Transferer) Ensure

func (t *Transferer) Ensure(ctx context.Context) (string, error)

Ensure uploads the agent binary if it hasn't been already and returns the resolved remote path.

Jump to

Keyboard shortcuts

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