agenttransfer

package
v1.2.1 Latest Latest
Warning

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

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

Documentation

Overview

Package agenttransfer is a thin caching layer over remote.Backend.UploadAgent. The backend does the actual upload; this package just memoises the resolved remote path so multiple callers (path-stub enumeration, broker startup) don't repeat the work.

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