package integration

import "github.com/moby/buildkit/util/testutil/integration"

Index

Variables

var ErrorRequirements = errors.Errorf("missing requirements")

Functions

func InitContainerdWorker

func InitContainerdWorker()

func InitOCIWorker

func InitOCIWorker()

func NewRegistry

func NewRegistry(dir string) (url string, cl func() error, err error)

func OfficialImages

func OfficialImages(names ...string) map[string]string

func Register

func Register(w Worker)

func Run

func Run(t *testing.T, testCases []Test, opt ...TestOpt)

Types

type ConfigUpdater

type ConfigUpdater interface {
	UpdateConfigFile(string) string
}

type Sandbox

type Sandbox interface {
	Address() string
	PrintLogs(*testing.T)
	Cmd(...string) *exec.Cmd
	NewRegistry() (string, error)
	Rootless() bool
	Value(string) interface{} // chosen matrix value
}

type SandboxConf

type SandboxConf struct {
	// contains filtered or unexported fields
}

func (*SandboxConf) Mirror

func (sc *SandboxConf) Mirror() string

func (*SandboxConf) Value

func (sc *SandboxConf) Value(k string) interface{}

type SandboxOpt

type SandboxOpt func(*SandboxConf)

func WithMirror

func WithMirror(h string) SandboxOpt

type Test

type Test func(*testing.T, Sandbox)

type TestConf

type TestConf struct {
	// contains filtered or unexported fields
}

type TestOpt

type TestOpt func(*TestConf)

func WithMatrix

func WithMatrix(key string, m map[string]interface{}) TestOpt

func WithMirroredImages

func WithMirroredImages(m map[string]string) TestOpt

type Worker

type Worker interface {
	New(...SandboxOpt) (Sandbox, func() error, error)
	Name() string
}

func List

func List() []Worker

Source Files

containerd.go frombinary.go oci.go registry.go run.go util.go

Version
v0.6.0
Published
Jul 31, 2019
Platform
js/wasm
Imports
33 packages
Last checked
12 hours ago

Tools for package owners.