Documentation ¶
Index ¶
- func BadEvents(events []*api.Event) int
- func CheckCadvisorHealthOnAllNodes(c *client.Client, timeout time.Duration)
- func ClusterLevelLoggingWithElasticsearch(c *client.Client)
- func DeleteRC(c *client.Client, ns, name string) error
- func FailedContainers(pod api.Pod) map[string]ContainerFailures
- func Failf(format string, a ...interface{})
- func HighLatencyRequests(c *client.Client, threshold time.Duration, ignoredResources util.StringSet) (int, error)
- func LaunchNetTestPodPerNode(nodes *api.NodeList, name string, c *client.Client, ns string) []string
- func Logf(format string, a ...interface{})
- func NodeSSHHosts(c *client.Client) ([]string, error)
- func ResizeRC(c *client.Client, ns, name string, size uint) error
- func RunRC(c *client.Client, name string, ns, image string, replicas int) error
- func SSH(cmd, host, provider string) (string, string, int, error)
- func ServeImageOrFail(c *client.Client, test string, image string)
- type CloudConfig
- type ContainerFailures
- type LatencyMetric
- type PodDiff
- type TestContextType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClusterLevelLoggingWithElasticsearch ¶
ClusterLevelLoggingWithElasticsearch is an end to end test for cluster level logging.
func FailedContainers ¶
func FailedContainers(pod api.Pod) map[string]ContainerFailures
FailedContainers inspects all containers in a pod and returns failure information for containers that have failed or been restarted. A map is returned where the key is the containerID and the value is a struct containing the restart and failure information
func HighLatencyRequests ¶
func HighLatencyRequests(c *client.Client, threshold time.Duration, ignoredResources util.StringSet) (int, error)
Prints summary metrics for request types with latency above threshold and returns number of such request types.
func LaunchNetTestPodPerNode ¶
func NodeSSHHosts ¶
NodeSSHHosts returns SSH-able host names for all nodes. It returns an error if it can't find an external IP for every node, though it still returns all hosts that it found in that case.
func RunRC ¶
RunRC Launches (and verifies correctness) of a Replication Controller It will waits for all pods it spawns to become "Running". It's the caller's responsibility to clean up externally (i.e. use the namespace lifecycle for handling cleanup).
Types ¶
type CloudConfig ¶
type CloudConfig struct { ProjectID string Zone string MasterName string Provider cloudprovider.Interface }
type ContainerFailures ¶
type ContainerFailures struct {
// contains filtered or unexported fields
}
type LatencyMetric ¶
type LatencyMetric struct {
// contains filtered or unexported fields
}
LatencyMetrics stores data about request latency at a given quantile broken down by verb (e.g. GET, PUT, LIST) and resource (e.g. pods, services).
func ReadLatencyMetrics ¶
func ReadLatencyMetrics(c *client.Client) ([]LatencyMetric, error)
type PodDiff ¶
type PodDiff map[string]*podInfo
PodDiff is a map of pod name to podInfos