core

package
v0.0.0-...-1a56975 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Settings

type Settings struct {
	// Name of the test
	TestID string

	RunID uuid.UUID

	// Environment to run the tests in. By default, a local environment will be used.
	Environment string

	// Do not cleanup the resources after the test run.
	NoCleanup bool

	// Indicates that the tests are running in CI Mode
	CIMode bool

	// Local working directory root for creating temporary directories / files in. If left empty,
	// os.TempDir() will be used.
	BaseDir string

	// The label selector that the user has specified.
	SelectorString string

	// The label selector, in parsed form.
	Selector label.Selector
}

Settings is the set of arguments to the test driver.

func DefaultSettings

func DefaultSettings() *Settings

DefaultSettings returns a default settings instance.

func SettingsFromCommandLine

func SettingsFromCommandLine(testID string) (*Settings, error)

SettingsFromCommandLine returns settings obtained from command-line flags. flag.Parse must be called before calling this function.

func (*Settings) Clone

func (s *Settings) Clone() *Settings

Clone settings

func (*Settings) RunDir

func (s *Settings) RunDir() string

RunDir is the name of the dir to output, for this particular run.

func (*Settings) String

func (s *Settings) String() string

String implements fmt.Stringer

Jump to

Keyboard shortcuts

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