agent

package
v0.73.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package agent contains a wrapper around the agent commands for use in tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

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

Agent is a cross platform wrapper around the agent commands for use in tests.

func New

func New(t func() *testing.T, host *environments.Host) *Agent

New creates a new instance of Agent.

func (*Agent) Configuration

func (a *Agent) Configuration() (map[string]any, error)

Configuration returns the configuration of the agent.

func (*Agent) Install

func (a *Agent) Install(options ...InstallOption) error

Install installs the agent.

func (*Agent) MustInstall

func (a *Agent) MustInstall(options ...InstallOption)

MustInstall installs the agent and panics if it fails.

func (*Agent) MustSetExperimentTimeout

func (a *Agent) MustSetExperimentTimeout(timeout time.Duration)

MustSetExperimentTimeout sets the agent experiment timeout for config and upgrades.

func (*Agent) MustUninstall

func (a *Agent) MustUninstall()

MustUninstall uninstalls the agent and panics if it fails.

func (*Agent) MustUnsetExperimentTimeout

func (a *Agent) MustUnsetExperimentTimeout()

MustUnsetExperimentTimeout unsets the agent experiment timeout for config and upgrades.

func (*Agent) Uninstall

func (a *Agent) Uninstall() error

Uninstall uninstalls the agent.

type InstallOption

type InstallOption func(*installParams)

InstallOption is an optional function parameter type for InstallParams options

func WithRemoteUpdates

func WithRemoteUpdates() InstallOption

WithRemoteUpdates enables remote updates.

func WithStablePackages

func WithStablePackages() InstallOption

WithStablePackages uses the stable packages.

Jump to

Keyboard shortcuts

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