Documentation ¶
Index ¶
- Variables
- func CheckFeatureCompat(t *testing.T, sb Sandbox, features map[string]struct{}, reason ...string)
- func FormatLogs(m map[string]*bytes.Buffer) string
- func HasFeatureCompat(t *testing.T, sb Sandbox, features map[string]struct{}, reason ...string) error
- func LookupBinary(name string) error
- func NewRegistry(dir string) (url string, cl func() error, err error)
- func OfficialImages(names ...string) map[string]string
- func PrintLogs(logs map[string]*bytes.Buffer, f func(args ...interface{}))
- func Register(w Worker)
- func RootlessSupported(uid int) bool
- func Run(t *testing.T, testCases []Test, opt ...TestOpt)
- func RunCmd(cmd *exec.Cmd, logs map[string]*bytes.Buffer) error
- func SkipOnPlatform(t *testing.T, goos string)
- func StartCmd(cmd *exec.Cmd, logs map[string]*bytes.Buffer) (func() error, error)
- func Tmpdir(t *testing.T, appliers ...fstest.Applier) string
- func WaitSocket(address string, d time.Duration, cmd *exec.Cmd) error
- func WriteConfig(updaters []ConfigUpdater) (string, error)
- type Backend
- type BackendConfig
- type ConfigUpdater
- type MultiCloser
- type Sandbox
- type Test
- type TestOpt
- type Worker
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrRequirements = errors.Errorf("missing requirements")
Functions ¶
func CheckFeatureCompat ¶ added in v0.11.0
func HasFeatureCompat ¶ added in v0.13.0
func LookupBinary ¶ added in v0.13.0
func NewRegistry ¶ added in v0.5.0
func OfficialImages ¶
func RootlessSupported ¶ added in v0.13.0
func SkipOnPlatform ¶ added in v0.13.0
Skips tests on Windows
func WaitSocket ¶ added in v0.13.0
WaitSocket will dial a socket opened by a command passed in as cmd. On Linux this socket is typically a Unix socket, while on Windows this will be a named pipe.
func WriteConfig ¶ added in v0.13.0
func WriteConfig(updaters []ConfigUpdater) (string, error)
Types ¶
type Backend ¶ added in v0.7.0
type Backend interface { Address() string DockerAddress() string ContainerdAddress() string Rootless() bool NetNSDetached() bool Snapshotter() string Supports(feature string) bool }
Backend is the minimal interface that describes a testing backend.
type BackendConfig ¶ added in v0.7.0
type BackendConfig struct { Logs map[string]*bytes.Buffer DaemonConfig []ConfigUpdater }
BackendConfig is used to configure backends created by a worker.
type ConfigUpdater ¶ added in v0.5.0
type MultiCloser ¶ added in v0.13.0
type MultiCloser struct {
// contains filtered or unexported fields
}
func (*MultiCloser) Append ¶ added in v0.13.0
func (mc *MultiCloser) Append(f func() error)
func (*MultiCloser) F ¶ added in v0.13.0
func (mc *MultiCloser) F() func() error
type TestOpt ¶
type TestOpt func(*testConf)
TestOpt is an option that can be used to configure a set of integration tests.
func WithMatrix ¶
func WithMirroredImages ¶
Click to show internal directories.
Click to hide internal directories.