cmd

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2023 License: GPL-2.0 Imports: 27 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 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