remoteagent

package
v0.132.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: AGPL-3.0 Imports: 19 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrFailed = errors.New("remote agent failed")
)

Functions

func TimeSyncCommand

func TimeSyncCommand(t time.Time) string

func WaitForAgent

func WaitForAgent(
	ctx context.Context,
	logger logger.Lightweight,
	addr string,
	sshUser string,
	sshPassword string,
	agentOS string,
	agentArchitecture string,
	config *runconfig.RunConfig,
	synchronizeTime bool,
	initializeHooks WaitForAgentHooks,
	terminateHooks WaitForAgentHooks,
	preCreatedWorkingDir string,
	env map[string]string,
) error

func WaitForSSH added in v0.116.0

func WaitForSSH(
	ctx context.Context,
	addr string,
	sshUser string,
	sshPassword string,
	logger logger.Lightweight,
) (*ssh.Client, error)

Types

type WaitForAgentHook added in v0.77.1

type WaitForAgentHook func(ctx context.Context, sshClient *ssh.Client) error

type WaitForAgentHooks added in v0.109.0

type WaitForAgentHooks []WaitForAgentHook

func (WaitForAgentHooks) Run added in v0.109.0

func (hooks WaitForAgentHooks) Run(ctx context.Context, cli *ssh.Client) error

Jump to

Keyboard shortcuts

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