docker

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2019 License: GPL-2.0, GPL-2.0-or-later Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(t *testing.T) error

func Comment

func Comment(t *testing.T, args ...interface{})

Log args if -test.vv

func Commentf

func Commentf(t *testing.T, format string, args ...interface{})

Format args if -test.vv

func ExecCmd

func ExecCmd(t *testing.T, ID string, config *Config, cmd []string) (out string,
	err error)

func PingCmd

func PingCmd(t *testing.T, ID string, config *Config, target string) error

func TearDownContainers

func TearDownContainers(t *testing.T, config *Config)

Types

type Config

type Config struct {
	Volume  string
	Mapping string
	Routers []Router
	// contains filtered or unexported fields
}

func LaunchContainers

func LaunchContainers(t *testing.T, source []byte) (config *Config, err error)

type Docket

type Docket struct {
	Name string
	Tmpl string
	*Config
	test.Tests
}

func (*Docket) ExecCmd

func (d *Docket) ExecCmd(t *testing.T, ID string,
	cmd ...string) (string, error)

func (*Docket) Exit

func (d *Docket) Exit(t *testing.T)

func (*Docket) Init

func (d *Docket) Init(t *testing.T)

func (*Docket) PingCmd

func (d *Docket) PingCmd(t *testing.T, ID string, target string) error

func (*Docket) String

func (d *Docket) String() string

func (*Docket) Test

func (d *Docket) Test(t *testing.T)

type Router

type Router struct {
	Image    string
	Hostname string
	Cmd      string
	Intfs    []struct {
		Name    string
		Address string
		Vlan    string
	}
	// contains filtered or unexported fields
}

func FindHost

func FindHost(config *Config, host string) (router Router, err error)

Jump to

Keyboard shortcuts

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