environments

package
v0.77.0-devel Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2026 License: Apache-2.0 Imports: 17 Imported by: 3 modules, 14 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

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

func CreateEnv

func CreateEnv[Env any]() (*Env, []reflect.StructField, []reflect.Value, error)

Types

type CoverageTargetSpec

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

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

Coverage generates a coverage report for the Docker agent

func (*DockerHost) Diagnose

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

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

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

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

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

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

Coverage generates a coverage report for each pod and container

func (*Kubernetes) Diagnose

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

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

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

Diagnose returns a string containing the diagnosis of the environment

func (*WindowsHost) Init

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