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
type ECSCluster ¶
type ECSCluster struct {
ecs.ClusterOutput
ECSClient *clientecs.Client
}
ECSCluster is an ECS Cluster
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
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 ¶
func (kc *KubernetesCluster) Init(common.Context) error
Init is called by e2e test Suite after the component is provisioned.
func (*KubernetesCluster) ServerVersion ¶ added in v0.86.0
func (kc *KubernetesCluster) ServerVersion() (*utilversion.Version, error)
ServerVersion returns the version of the Kubernetes API server, as reported by the cluster itself. It works with every provider, including those for which no Kubernetes version is passed explicitly at provisioning time (e.g. EKS).
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
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.
func (*RemoteHostAgent) InitFromHost ¶ added in v0.84.0
func (a *RemoteHostAgent) InitFromHost(host *RemoteHost) error
InitFromHost initializes the Agent client with the context of an already initialized host. It is used when an Agent is added to a live environment.
type RemoteHostDocker ¶
type RemoteHostDocker struct {
docker.ManagerOutput
Client *client.Docker
}
RemoteHostDocker represents an Agent running directly on a Host
type RemoteHostUpdater ¶
type RemoteHostUpdater struct {
updater.HostUpdaterOutput
}
RemoteHostUpdater represents an Updater running directly on a Host