package
0.13.28
Repository: https://github.com/fafucoder/cilium.git
Documentation: pkg.go.dev

# Packages

Copyright 2017 Authors of Cilium Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.

# Functions

CountValues returns the count of the occurrences of key in data, as well as the length of data.
CreateKubectl initializes a Kubectl helper with the provided vmName and log It marks the test as Fail if cannot get the ssh meta information or cannot execute a `ls` on the virtual machine.
CreateLogFile creates the ReportDirectory if it is not present, writes the given data to the given filename.
CreateNewRuntimeHelper returns SSHMeta helper for running the runtime tests on the provided VM target and using logger log.
CreateReportDirectory creates and returns the directory path to export all report commands that need to be run in the case that a test has failed.
CreateSSHMeta returns an SSHMeta with the specified host, port, and user, as well as an according SSHClient.
CreateVM creates a new vagrant server.Receives a scope which indicates the target server that needs to be created.
CurlFail returns the string representing the curl command with `-s` and `--fail` options enabled to curl the specified endpoint.
CurlWithHTTPCode retunrs the string representation of the curl command which only outputs the HTTP code returned by its execution against the specified endpoint.
DecodeYAMLOrJSON reads a json or yaml file and exports all documents as an array of interfaces.
DestroyVM destroys all running Vagrant VMs in the provided scope.
Fail is a Ginkgo failure handler which raises a SIGSTOP for the test process when there is a failure, so that developers can debug the live environment.
GenerateManifestForEndpoints generates k8s manifests that will create endpointCount Cilium endpoints when applied.
GetAppPods fetches app pod names for a namespace.
GetCurrentK8SEnv returns the value of K8S_VERSION from the OS environment.
GetFilePath returns the absolute path of the provided filename.
GetSSHClient initializes an SSHClient for the specified host/port/user combination.
GetVagrantSSHMeta returns a SSHMeta initialized based on the provided SSH-config target.
GetVagrantSSHMetadata returns a string containing the output of `vagrant ssh-config` for the provided Vagrant of name vmName.
ImportSSHconfig imports the SSH configuration stored at the provided path.
InitRuntimeHelper returns SSHMeta helper for running the runtime tests on the provided VM target and using logger 'log'.
InstallExampleCilium uses Cilium Kubernetes example from the repo, changes the etcd parameter and installs the stable tag from docker-hub.
IsRunningOnJenkins detects if the currently running Ginkgo application is most likely running in a Jenkins environment.
K8s1VMName is the name of the Kubernetes master node when running K8s tests.
K8s2VMName is the name of the Kubernetes worker node when running K8s tests.
MakeUID returns a randomly generated string.
Netcat returns the string representing the netcat command to the specified endpoint.
Netperf returns the string representing the netperf command to use when testing connectivity between endpoints.
NewWriter creates and initializes a Writer with a empty Buffer and the given outWriter.
Ping returns the string representing the ping command to ping the specified endpoint.
Ping6 returns the string representing the ping6 command to ping6 the specified endpoint.
RenderTemplateToFile renders a text/template string into a target filename with specific persmisions.
Sleep sleeps for the specified duration in seconds.
SSHAgent returns the ssh.Authmethod using the Public keys.
Status returns a mapping of Vagrant VM name to its status.
WaitUntilEndpointUpdates checks the policy version and then iterates through all endpoints waiting for the endpoints to have updated policies.
WithTimeout executes body using the time interval specified in config until the timeout in config is reached.
WithTimeoutErr executes body using the time interval specified.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
CiliumDockerNetwork is the name of the Docker network which Cilium manages.
CiliumPath is the path where cilium test code is located.
No description provided by the author
Container lifecycle actions.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Names of commonly used containers in tests.
No description provided by the author
No description provided by the author
HttpdImage is the image used for starting an HTTP server.
IP Address families.
No description provided by the author
VM / Test suite constants.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ManifestBase tells ginkgo suite where to look for manifests.
No description provided by the author
KubectlCmd Kubernetes controller command.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
LogPerm is the permission for files that are created by this framework that contain logs, outputs of Cilium CLI commands, etc.
MaxRetries is the number of times that a loop should iterate until a specified condition is not met.
No description provided by the author
NetperfImage is the Docker image used for performance testing.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
PolicyEnforcement represents the PolicyEnforcement configuration option for the Cilium agent.
PolicyEnforcementAlways represents the PolicyEnforcement mode for Cilium in which traffic is denied by default even when no policy is imported.
PolicyEnforcementDefault represents the default PolicyEnforcement mode for Cilium.
PolicyEnforcementNever represents the PolicyEnforcement mode for Cilium in which traffic is always allowed even if there is a policy selecting endpoints.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
TCP_RR represents a netperf test for TCP Request/Response performance.
No description provided by the author
No description provided by the author
UDP_RR represents a netperf test for UDP Request/Response performance.

# Variables

BasePath is the path in the Vagrant VMs to which the test directory is mounted.
WithTimeout helper translates it to seconds.
SSHMetaLogs is a buffer where all commands sent over ssh are saved.

# Structs

CmdRes contains a variety of data which results from running a command.
ExecOptions options to execute Exec and ExecWithContext.
Kubectl is a wrapper around an SSHMeta.
ManifestValues wraps manifest index.
SSHClient stores the information needed to SSH into a remote location for running tests.
SSHCommand stores the data associated with executing a command.
SSHConfig contains metadata for an SSH session.
SSHMeta contains metadata to SSH into a remote location to run tests.
TimeoutConfig represents the configuration for the timeout of a command.
A Writer is a struct that has a variable-sized `bytes.Buffer` and one outWriter(`io.writer`) to stream data.

# Type aliases

EndpointMap maps an endpoint's container name to its Cilium API endpoint model.
PerfTest represents a type of test to run when running `netperf`.
ResourceLifeCycleAction represents an action performed upon objects in Kubernetes.
SSHConfigs maps the name of a host (VM) to its corresponding SSHConfiguration.