package integration
import "github.com/moby/buildkit/util/testutil/integration"
Index ¶
- Constants
- Variables
- func CheckFeatureCompat(t *testing.T, sb Sandbox, reason ...string)
- func InitContainerdWorker()
- func InitDockerdWorker()
- func InitOCIWorker()
- func IsTestDockerd() bool
- func IsTestDockerdMoby(sb Sandbox) bool
- 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)
- func Tmpdir(t *testing.T, appliers ...fstest.Applier) (string, error)
- 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
Constants ¶
const ( FeatureCacheExport = "cache export" FeatureCacheImport = "cache import" FeatureDirectPush = "direct push" FeatureFrontendOutline = "frontend outline" FeatureFrontendTargets = "frontend targets" FeatureImageExporter = "image exporter" FeatureInfo = "info" FeatureMultiCacheExport = "multi cache export" FeatureMultiPlatform = "multi-platform" FeatureOCIExporter = "oci exporter" FeatureOCILayout = "oci layout" FeatureProvenance = "provenance" FeatureSBOM = "sbom" FeatureSecurityMode = "security mode" FeatureSourceDateEpoch = "source date epoch" )
Variables ¶
Functions ¶
func CheckFeatureCompat ¶
func InitContainerdWorker ¶
func InitContainerdWorker()
func InitDockerdWorker ¶
func InitDockerdWorker()
InitDockerdWorker registers a dockerd worker with the global registry.
func InitOCIWorker ¶
func InitOCIWorker()
func IsTestDockerd ¶
func IsTestDockerd() bool
func IsTestDockerdMoby ¶
func NewRegistry ¶
func OfficialImages ¶
func Register ¶
func Register(w Worker)
func Run ¶
func Tmpdir ¶
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) ClearLogs() NewRegistry() (string, error) Value(string) interface{} // chosen matrix value Name() string }
type Test ¶
func TestFuncs ¶
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 Rootless() bool }
func List ¶
func List() []Worker
Source Files ¶
containerd.go dockerd.go frombinary.go oci.go pins.go registry.go run.go sandbox.go sandbox_unix.go util.go
- Version
- v0.11.1
- Published
- Jan 17, 2023
- Platform
- js/wasm
- Imports
- 39 packages
- Last checked
- 12 hours ago –
Tools for package owners.