Help us shape the future of Go! Take the 2026 Go Developer Survey

environments

package
v0.74.1 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package environments contains the definitions of the different environments that can be used in a test.

Package environments contains the definitions of the different environments that can be used in a test.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CoverageTargetSpec added in v0.74.0

type CoverageTargetSpec struct {
	AgentName       string
	CoverageCommand []string
	Required        bool
}

CoverageTargetSpec defines the name of the agent, the command to run to generate the coverage and if the coverage is required

type DockerHost

type DockerHost struct {
	// Components
	RemoteHost *components.RemoteHost
	FakeIntake *components.FakeIntake
	Agent      *components.DockerAgent
	Docker     *components.RemoteHostDocker
}

DockerHost is an environment that contains a Docker VM, FakeIntake and Agent configured to talk to each other.

func (*DockerHost) Coverage added in v0.72.0

func (e *DockerHost) Coverage(outputDir string) (string, error)

Coverage generates a coverage report for the Docker agent

func (*DockerHost) Diagnose added in v0.72.0

func (e *DockerHost) Diagnose(outputDir string) (string, error)

Diagnose returns a string containing the diagnosis of the environment

func (*DockerHost) Init

func (e *DockerHost) Init(_ common.Context) error

Init initializes the environment

type ECS added in v0.53.0

type ECS struct {
	// Components
	ECSCluster *components.ECSCluster
	FakeIntake *components.FakeIntake
}

ECS is an environment that contains a ECS deployed in a cluster, FakeIntake and Agent configured to talk to each other.

type Host

type Host struct {
	RemoteHost *components.RemoteHost
	FakeIntake *components.FakeIntake
	Agent      *components.RemoteHostAgent
	Updater    *components.RemoteHostUpdater
}

Host is an environment that contains a Host, FakeIntake and Agent configured to talk to each other.

func (*Host) Coverage added in v0.70.0

func (e *Host) Coverage(outputDir string) (string, error)

Coverage runs the coverage command for each agent and downloads the coverage folders to the output directory

func (*Host) Diagnose added in v0.63.0

func (e *Host) Diagnose(outputDir string) (string, error)

Diagnose returns a string containing the diagnosis of the environment

func (*Host) Init

func (e *Host) Init(_ common.Context) error

Init initializes the environment

type Kubernetes added in v0.53.0

type Kubernetes struct {
	// Components
	KubernetesCluster *components.KubernetesCluster
	FakeIntake        *components.FakeIntake
	Agent             *components.KubernetesAgent
}

Kubernetes is an environment that contains a Kubernetes cluster, the Agent and a FakeIntake.

func (*Kubernetes) Coverage added in v0.72.0

func (e *Kubernetes) Coverage(outputDir string) (string, error)

Coverage generates a coverage report for each pod and container

func (*Kubernetes) Diagnose added in v0.72.0

func (e *Kubernetes) Diagnose(outputDir string) (string, error)

Diagnose generates a diagnose for the Kubernetes environment, creating a flare for each agent and cluster-agent pod.

type WindowsHost added in v0.53.0

type WindowsHost struct {
	Environment config.Env
	// Components
	RemoteHost      *components.RemoteHost
	FakeIntake      *components.FakeIntake
	Agent           *components.RemoteHostAgent
	ActiveDirectory *components.RemoteActiveDirectory
}

WindowsHost is an environment based on environments.Host but that is specific to Windows.

func (*WindowsHost) Diagnose added in v0.72.0

func (e *WindowsHost) Diagnose(outputDir string) (string, error)

Diagnose returns a string containing the diagnosis of the environment

func (*WindowsHost) Init added in v0.53.0

func (e *WindowsHost) Init(_ common.Context) error

Init initializes the environment

Jump to

Keyboard shortcuts

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