cmd

package
v0.22.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 1, 2024 License: GPL-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute runs vmshed

func NewNetworkList added in v0.11.0

func NewNetworkList(currentV4, currentV6 *net.IPNet) *networkList

func TestLogger added in v0.14.2

func TestLogger(testID string, out io.Writer) *log.Logger

TestLogger creates a Logger for use in test runs. Logs will be written to the standard logger, with the ID attached, and to the given Writer, without the ID.

func VmshedStandardLogFormatter added in v0.14.2

func VmshedStandardLogFormatter() *log.TextFormatter

VmshedStandardLogFormatter creates a Formatter with vmshed specific customizations.

func XMLLog added in v0.8.0

func XMLLog(resultsDir, testName string, testRes TestResulter, testLog []byte) error

Types

type BiasedStringSlice added in v0.14.2

type BiasedStringSlice []string

BiasedStringSlice implements sort.Interface with a fixed set of preferred strings.

func (BiasedStringSlice) Len added in v0.14.2

func (s BiasedStringSlice) Len() int

func (BiasedStringSlice) Less added in v0.14.2

func (s BiasedStringSlice) Less(i, j int) bool

func (BiasedStringSlice) Swap added in v0.14.2

func (s BiasedStringSlice) Swap(i, j int)

type FailurePolicy added in v0.21.0

type FailurePolicy string
const (
	OnFailureContinue  FailurePolicy = "continue"
	OnFailureTerminate FailurePolicy = "terminate"
	OnFailureKeepVms   FailurePolicy = "keep-vms"
)

func (*FailurePolicy) Set added in v0.21.0

func (f *FailurePolicy) Set(v string) error

func (*FailurePolicy) String added in v0.21.0

func (f *FailurePolicy) String() string

func (*FailurePolicy) Type added in v0.21.0

func (f *FailurePolicy) Type() string

type StandardLoggerHook added in v0.4.0

type StandardLoggerHook struct {
	// contains filtered or unexported fields
}

StandardLoggerHook duplicates log messages to the standard logger, adding an ID field

func (*StandardLoggerHook) Fire added in v0.4.0

func (hook *StandardLoggerHook) Fire(entry *log.Entry) error

func (*StandardLoggerHook) Levels added in v0.4.0

func (hook *StandardLoggerHook) Levels() []log.Level

Intercept all levels, whether or not they are actually output.

type TemplateFlag added in v0.20.0

type TemplateFlag struct {
	*template.Template
}

func (*TemplateFlag) Set added in v0.20.0

func (t *TemplateFlag) Set(s string) error

func (*TemplateFlag) String added in v0.20.0

func (t *TemplateFlag) String() string

func (*TemplateFlag) Type added in v0.20.0

func (t *TemplateFlag) Type() string

type TestResulter

type TestResulter interface {
	ExecTime() time.Duration
	Err() error
}

type TestStatus added in v0.7.0

type TestStatus string
const (
	StatusSkipped       TestStatus = "SKIPPED"
	StatusSuccess       TestStatus = "SUCCESS"
	StatusCanceled      TestStatus = "CANCELED"
	StatusFailedTimeout TestStatus = "FAILED(TO)"
	StatusFailed        TestStatus = "FAILED"
	StatusError         TestStatus = "ERROR" // Error running test
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL