unversioned

package
v1.18.1 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: Apache-2.0 Imports: 4 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Env          map[string]string
	Entrypoint   []string
	Cmd          []string
	Volumes      []string
	Workdir      string
	ExposedPorts []string
	Labels       map[string]string
	User         string
}

type ContainerRunOptions added in v1.15.0

type ContainerRunOptions struct {
	User         string
	Privileged   bool
	TTY          bool     `yaml:"allocateTty"`
	EnvVars      []string `yaml:"envVars"`
	EnvFile      string   `yaml:"envFile"`
	Capabilities []string
	BindMounts   []string `yaml:"bindMounts"`
}

func (*ContainerRunOptions) IsSet added in v1.15.0

func (opts *ContainerRunOptions) IsSet() bool

type EnvVar

type EnvVar struct {
	Key     string
	Value   string
	IsRegex bool `yaml:"isRegex"`
}

type JUnitTestCase added in v1.14.0

type JUnitTestCase struct {
	Name     string   `xml:"name,attr"`
	Errors   []string `xml:"failure"`
	Duration float64  `xml:"time,attr"`
}

type JUnitTestSuite added in v1.14.0

type JUnitTestSuite struct {
	Name    string           `xml:"name,attr"`
	Results []*JUnitTestCase `xml:"testcase"`
}

type Label added in v1.2.0

type Label struct {
	Key     string
	Value   string
	IsRegex bool `yaml:"isRegex"`
}

type OutputValue added in v1.10.0

type OutputValue int
const (
	Text OutputValue = iota
	Json
	Junit
)

func (*OutputValue) Set added in v1.10.0

func (o *OutputValue) Set(value string) error

func (OutputValue) String added in v1.10.0

func (o OutputValue) String() string

func (OutputValue) Type added in v1.10.0

func (o OutputValue) Type() string

type SummaryObject added in v1.2.0

type SummaryObject struct {
	XMLName  xml.Name      `json:"-" xml:"testsuites"`
	Pass     int           `xml:"-"`
	Fail     int           `xml:"failures,attr"`
	Total    int           `xml:"tests,attr"`
	Duration time.Duration `xml:"time,attr"`
	Results  []*TestResult `json:",omitempty" xml:"testsuite>testcase"`
}

type TestResult

type TestResult struct {
	Name     string        `xml:"name,attr"`
	Pass     bool          `xml:"-"`
	Stdout   string        `json:",omitempty" xml:"-"`
	Stderr   string        `json:",omitempty" xml:"-"`
	Errors   []string      `json:",omitempty" xml:"failure"`
	Duration time.Duration `xml:"time,attr"`
}

func (*TestResult) Error

func (t *TestResult) Error(s string)

func (*TestResult) Errorf

func (t *TestResult) Errorf(s string, args ...interface{})

func (*TestResult) Fail

func (t *TestResult) Fail()

func (*TestResult) IsPass added in v1.2.0

func (t *TestResult) IsPass() bool

func (*TestResult) String added in v1.2.0

func (t *TestResult) String() string

Jump to

Keyboard shortcuts

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