package integration
import "github.com/moby/buildkit/util/testutil/integration"
Index ¶
- Variables
- func InitContainerdWorker()
- func InitDockerdWorker()
- func InitOCIWorker()
- func NewRegistry(dir string) (url string, cl func() error, err error)
- func OfficialImages(names ...string) map[string]string
- func Register(w Worker)
- func Run(t *testing.T, testCases []Test, opt ...TestOpt)
- type Backend
- type BackendConfig
- type ConfigUpdater
- type Sandbox
- type Test
- type TestOpt
- func WithMatrix(key string, m map[string]interface{}) TestOpt
- func WithMirroredImages(m map[string]string) TestOpt
- type Worker
Variables ¶
Functions ¶
func InitContainerdWorker ¶
func InitContainerdWorker()
func InitDockerdWorker ¶
func InitDockerdWorker()
InitDockerdWorker registers a dockerd worker with the global registry.
func InitOCIWorker ¶
func InitOCIWorker()
func NewRegistry ¶
func OfficialImages ¶
func Register ¶
func Register(w Worker)
func Run ¶
Types ¶
type Backend ¶
type Backend interface { Address() string ContainerdAddress() string Rootless() bool Snapshotter() string }
Backend is the minimal interface that describes a testing backend.
type BackendConfig ¶
BackendConfig is used to configure backends created by a worker.
type ConfigUpdater ¶
type Sandbox ¶
type Sandbox interface { Backend Context() context.Context Cmd(...string) *exec.Cmd PrintLogs(*testing.T) NewRegistry() (string, error) Value(string) interface{} // chosen matrix value }
type Test ¶
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 ¶
type Worker ¶
type Worker interface { New(context.Context, *BackendConfig) (Backend, func() error, error) Name() string }
func List ¶
func List() []Worker
Source Files ¶
containerd.go dockerd.go frombinary.go oci.go registry.go run.go sandbox.go sandbox_unix.go util.go
- Version
- v0.9.0
- Published
- Jul 16, 2021
- Platform
- js/wasm
- Imports
- 38 packages
- Last checked
- 12 hours ago –
Tools for package owners.