Documentation ¶
Overview ¶
Package client contains the definitions of the different clients that can be used in a test.
Index ¶
- func NewDockerAgentClient(t *testing.T, docker *Docker, agentContainerName string, ...) (agentclient.Agent, error)
- func NewHostAgentClient(t *testing.T, host *components.RemoteHost, waitForAgentReady bool) (agentclient.Agent, error)
- type Docker
- func (docker *Docker) ExecuteCommand(containerName string, commands ...string) string
- func (docker *Docker) ExecuteCommandStdoutStdErr(containerName string, commands ...string) (string, string, error)
- func (docker *Docker) ExecuteCommandWithErr(containerName string, commands ...string) (string, error)
- func (docker *Docker) GetClient() *client.Client
- type EC2Metadata
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDockerAgentClient ¶ added in v0.51.0
func NewDockerAgentClient(t *testing.T, docker *Docker, agentContainerName string, waitForAgentReady bool) (agentclient.Agent, error)
NewDockerAgentClient creates an Agent client for a Docker install
func NewHostAgentClient ¶ added in v0.51.0
func NewHostAgentClient(t *testing.T, host *components.RemoteHost, waitForAgentReady bool) (agentclient.Agent, error)
NewHostAgentClient creates an Agent client for host install
Types ¶
type Docker ¶
type Docker struct {
// contains filtered or unexported fields
}
A Docker client that is connected to an docker.Deamon.
func NewDocker ¶
NewDocker creates a new instance of Docker NOTE: docker+ssh does not support password protected SSH keys.
func (*Docker) ExecuteCommand ¶
ExecuteCommand executes a command on containerName and returns the output.
func (*Docker) ExecuteCommandStdoutStdErr ¶
func (docker *Docker) ExecuteCommandStdoutStdErr(containerName string, commands ...string) (string, string, error)
ExecuteCommandStdoutStdErr executes a command on containerName and returns the output, the error output and an error.
type EC2Metadata ¶
type EC2Metadata struct {
// contains filtered or unexported fields
}
EC2Metadata contains a pointer to a VM and its AWS token
func NewEC2Metadata ¶
func NewEC2Metadata(h *components.RemoteHost) *EC2Metadata
NewEC2Metadata creates a new EC2Metadata given an EC2 [VM]
func (*EC2Metadata) Get ¶
func (m *EC2Metadata) Get(name string) string
Get returns EC2 instance name
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package agentclient provides an interface to run Agent commands.
|
Package agentclient provides an interface to run Agent commands. |
Package agentclientparams implements function parameters for [e2e.Agent]
|
Package agentclientparams implements function parameters for [e2e.Agent] |