Documentation ¶
Index ¶
- Constants
- func IsDirEmpty(name string) (bool, error)
- func RunSSHCommand(host string, config *ssh.ClientConfig, cmd string) (code int, stdout string, stderr string, err error)
- func RunSSHCommandOnNode(nodeName string, cmd string) (code int, stdout string, stderr string, err error)
- type ClusterInfo
- type ClusterNode
- type PodCondition
- type TestData
- type TestOptions
Constants ¶
View Source
const AntreaDaemonSet string = "antrea-agent"
View Source
const AntreaNamespace string = "kube-system"
AntreaNamespace is the K8s Namespace in which all Antrea resources are running.
View Source
const OVSContainerName string = "antrea-ovs"
Variables ¶
This section is empty.
Functions ¶
func IsDirEmpty ¶
IsDirEmpty checks whether a directory is empty or not.
func RunSSHCommand ¶
func RunSSHCommand(host string, config *ssh.ClientConfig, cmd string) (code int, stdout string, stderr string, err error)
Run the provided SSH command on the specified host. Returns the exit code of the command, along with the contents of stdout and stderr as strings. Note that if the command returns a non-zero error code, this function does not report it as an error.
Types ¶
type ClusterInfo ¶
type ClusterInfo struct {
// contains filtered or unexported fields
}
type ClusterNode ¶
type ClusterNode struct {
// contains filtered or unexported fields
}
type TestData ¶
type TestData struct {
// contains filtered or unexported fields
}
TestData stores the state required for each test case.
type TestOptions ¶
type TestOptions struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.