Versions in this module Expand all Collapse all v1 v1.1.10 Dec 12, 2023 Changes in this version + var ErrRequirements = errors.Errorf("missing requirements") + 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 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 interface + Address func() string + ContainerdAddress func() string + DockerAddress func() string + Rootless func() bool + Snapshotter func() string + Supports func(feature string) bool + type BackendConfig struct + DaemonConfig []ConfigUpdater + Logs map[string]*bytes.Buffer + type ConfigUpdater interface + UpdateConfigFile func(string) string + type MultiCloser struct + func (mc *MultiCloser) Append(f func() error) + func (mc *MultiCloser) F() func() error + type Sandbox interface + ClearLogs func() + Cmd func(...string) *exec.Cmd + Context func() context.Context + Logs func() map[string]*bytes.Buffer + Name func() string + NewRegistry func() (string, error) + PrintLogs func(*testing.T) + Value func(string) interface{} + type Test interface + Name func() string + Run func(t *testing.T, sb Sandbox) + func TestFuncs(funcs ...func(t *testing.T, sb Sandbox)) []Test + type TestOpt func(*testConf) + func WithMatrix(key string, m map[string]interface{}) TestOpt + func WithMirroredImages(m map[string]string) TestOpt + type Worker interface + Close func() error + Name func() string + New func(context.Context, *BackendConfig) (Backend, func() error, error) + Rootless func() bool + func List() []Worker