remoteagent

package
v0.124.3 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: AGPL-3.0 Imports: 20 Imported by: 0

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