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

components

package
v0.83.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2026 License: Apache-2.0 Imports: 20 Imported by: 28

Documentation

Overview

Package components contains the definitions of the different components 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 DockerAgent

type DockerAgent struct {
	agent.DockerAgentOutput

	// Client cannot be initialized inline as it requires other information to create client
	Client        agentclient.Agent
	ClientOptions []agentclientparams.Option
}

DockerAgent represents an Agent running in a Docker container

func (*DockerAgent) Init

func (a *DockerAgent) Init(ctx common.Context) (err error)

Init is called by e2e test Suite after the component is provisioned.

type ECSCluster

type ECSCluster struct {
	ecs.ClusterOutput

	ECSClient *clientecs.Client
}

ECSCluster is an ECS Cluster

func (*ECSCluster) Init

func (c *ECSCluster) Init(common.Context) error

Init is called by e2e test Suite after the component is provisioned.

type EnvVar

type EnvVar map[string]string

EnvVar alias to map representing env variables

type ExecuteOption

type ExecuteOption func(*ExecuteParams) error

ExecuteOption alias to a functional option changing a given Params instance

func WithEnvVariables

func WithEnvVariables(env EnvVar) ExecuteOption

WithEnvVariables allows to set env variable for the command that will be executed

type ExecuteParams

type ExecuteParams struct {
	EnvVariables EnvVar
}

ExecuteParams contains parameters for VM.Execute commands

type FakeIntake

type FakeIntake struct {
	fakeintake.FakeintakeOutput
	// contains filtered or unexported fields
}

FakeIntake represents a FakeIntake instance

func (*FakeIntake) Client

func (fi *FakeIntake) Client() *client.Client

Client returns the FakeIntake client

func (*FakeIntake) Init

func (fi *FakeIntake) Init(common.Context) error

Init is called by e2e test Suite after the component is provisioned.

type KubernetesAgent

type KubernetesAgent struct {
	agent.KubernetesAgentOutput
}

KubernetesAgent is an agent running in a Kubernetes cluster

type KubernetesCluster

type KubernetesCluster struct {
	kubernetes.ClusterOutput

	KubernetesClient *client.KubernetesClient
}

KubernetesCluster represents a Kubernetes cluster

func (*KubernetesCluster) Client

func (kc *KubernetesCluster) Client() kubeClient.Interface

Client returns the Kubernetes client

func (*KubernetesCluster) Init

Init is called by e2e test Suite after the component is provisioned.

type RemoteActiveDirectory

type RemoteActiveDirectory struct {
	activedirectory.Output
}

RemoteActiveDirectory represents an Active Directory domain on a remote machine

type RemoteHost

type RemoteHost struct {
	remote.HostOutput

	*client.Host
	// contains filtered or unexported fields
}

RemoteHost represents a remote host

func (*RemoteHost) DownloadAgentLogs

func (h *RemoteHost) DownloadAgentLogs(localPath string) error

DownloadAgentLogs downloads the agent logs from the remote host

func (*RemoteHost) Init

func (h *RemoteHost) Init(ctx common.Context) (err error)

Init is called by e2e test Suite after the component is provisioned.

type RemoteHostAgent

type RemoteHostAgent struct {
	agent.HostAgentOutput

	Client        agentclient.Agent
	ClientOptions []agentclientparams.Option
}

RemoteHostAgent represents an Agent running directly on a Host

func (*RemoteHostAgent) Init

func (a *RemoteHostAgent) Init(ctx common.Context) (err error)

Init is called by e2e test Suite after the component is provisioned.

type RemoteHostDocker

type RemoteHostDocker struct {
	docker.ManagerOutput

	Client *client.Docker
}

RemoteHostDocker represents an Agent running directly on a Host

func (*RemoteHostDocker) Init

func (d *RemoteHostDocker) Init(ctx common.Context) (err error)

Init is called by e2e test Suite after the component is provisioned.

type RemoteHostUpdater

type RemoteHostUpdater struct {
	updater.HostUpdaterOutput
}

RemoteHostUpdater represents an Updater running directly on a Host

Jump to

Keyboard shortcuts

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