Documentation
¶
Index ¶
- func CopyFilesToTestDir() error
- func CopyResourcesFromPath(resourcesPath string) error
- func DownloadBundle(bundleLocation string, bundleDestination string, bundleName string) (string, error)
- func GetRetryParametersFromTimeoutInSeconds(iterations, timeout int) (time.Duration, time.Duration, error)
- func MatchWithRetry(expression string, match func(string) error, retryCount, timeout int) error
- func RemoveCRCHome(crcHome string) error
- func RunDiagnose(dir string) error
- type Collector
- type CommandCollector
- type ContainerLogCollector
- type FileCollector
- type FileWriter
- type TreeCollector
- type VMCommandCollector
- type Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyFilesToTestDir ¶
func CopyFilesToTestDir() error
func CopyResourcesFromPath ¶
func DownloadBundle ¶
func DownloadBundle(bundleLocation string, bundleDestination string, bundleName string) (string, error)
Download bundle for testing
func GetRetryParametersFromTimeoutInSeconds ¶
func GetRetryParametersFromTimeoutInSeconds(iterations, timeout int) (time.Duration, time.Duration, error)
Based on the number of iterations for a given timeout in seconds the function returns the duration of echa loop and the extra time in case required to complete the timeout
func MatchWithRetry ¶ added in v1.34.0
func RemoveCRCHome ¶
func RunDiagnose ¶
Types ¶
type CommandCollector ¶
type CommandCollector struct {
Command, Target string
}
func (*CommandCollector) Collect ¶
func (collector *CommandCollector) Collect(w Writer) error
type ContainerLogCollector ¶
type ContainerLogCollector struct {
Process string
}
func (*ContainerLogCollector) Collect ¶
func (collector *ContainerLogCollector) Collect(w Writer) error
type FileCollector ¶
type FileCollector struct {
Source, Target string
}
func (*FileCollector) Collect ¶
func (collector *FileCollector) Collect(w Writer) error
type FileWriter ¶
type FileWriter struct {
// contains filtered or unexported fields
}
type TreeCollector ¶
func (*TreeCollector) Collect ¶
func (collector *TreeCollector) Collect(w Writer) error
type VMCommandCollector ¶
type VMCommandCollector struct {
Command, Target string
}
func (*VMCommandCollector) Collect ¶
func (collector *VMCommandCollector) Collect(w Writer) error
Click to show internal directories.
Click to hide internal directories.