package integration
import "github.com/moby/buildkit/util/testutil/integration"
Index ¶
- Constants
- Variables
- func CheckContainerdVersion(t *testing.T, cdAddress, constraint string)
- func CheckFeatureCompat(t *testing.T, sb Sandbox, reason ...string)
- func InitContainerdWorker()
- func InitDockerdWorker()
- func InitOCIWorker()
- func IsTestDockerd() bool
- func IsTestDockerdMoby(sb Sandbox) bool
- func NewAzuriteServer(t *testing.T, sb Sandbox, opts AzuriteOpts) (address string, cl func() error, err error)
- func NewMinioServer(t *testing.T, sb Sandbox, opts MinioOpts) (address string, bucket string, cl func() error, err error)
- 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 AzuriteOpts
- type Backend
- type BackendConfig
- type ConfigUpdater
- type Containerd
- func (c *Containerd) Close() error
- func (c *Containerd) Name() string
- func (c *Containerd) New(ctx context.Context, cfg *BackendConfig) (b Backend, cl func() error, err error)
- func (c *Containerd) Rootless() bool
- type MinioOpts
- type Moby
- func (c Moby) Close() error
- func (c Moby) Name() string
- func (c Moby) New(ctx context.Context, cfg *BackendConfig) (b Backend, cl func() error, err error)
- func (c Moby) Rootless() bool
- type OCI
- func (s *OCI) Close() error
- func (s *OCI) Name() string
- func (s *OCI) New(ctx context.Context, cfg *BackendConfig) (Backend, func() error, error)
- func (s *OCI) Rootless() bool
- 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" FeatureCacheBackendAzblob = "cache_backend_azblob" FeatureCacheBackendGha = "cache_backend_gha" FeatureCacheBackendInline = "cache_backend_inline" FeatureCacheBackendLocal = "cache_backend_local" FeatureCacheBackendRegistry = "cache_backend_registry" FeatureCacheBackendS3 = "cache_backend_s3" FeatureDirectPush = "direct_push" FeatureFrontendOutline = "frontend_outline" FeatureFrontendTargets = "frontend_targets" FeatureImageExporter = "image_exporter" FeatureInfo = "info" FeatureMergeDiff = "merge_diff" FeatureMultiCacheExport = "multi_cache_export" FeatureMultiPlatform = "multi_platform" FeatureOCIExporter = "oci_exporter" FeatureOCILayout = "oci_layout" FeatureProvenance = "provenance" FeatureSBOM = "sbom" FeatureSecurityMode = "security_mode" FeatureSourceDateEpoch = "source_date_epoch" FeatureCNINetwork = "cni_network" )
Variables ¶
Functions ¶
func CheckContainerdVersion ¶
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 NewAzuriteServer ¶
func NewAzuriteServer(t *testing.T, sb Sandbox, opts AzuriteOpts) (address string, cl func() error, err error)
func NewMinioServer ¶
func NewMinioServer(t *testing.T, sb Sandbox, opts MinioOpts) (address string, bucket string, cl func() error, err error)
func NewRegistry ¶
func OfficialImages ¶
func Register ¶
func Register(w Worker)
func Run ¶
func Tmpdir ¶
Types ¶
type AzuriteOpts ¶
type Backend ¶
type Backend interface { Address() string DockerAddress() 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 Containerd ¶
type Containerd struct { ID string Containerd string Snapshotter string UID int GID int ExtraEnv []string // e.g. "PATH=/opt/containerd-1.4/bin:/usr/bin:..." }
func (*Containerd) Close ¶
func (c *Containerd) Close() error
func (*Containerd) Name ¶
func (c *Containerd) Name() string
func (*Containerd) New ¶
func (c *Containerd) New(ctx context.Context, cfg *BackendConfig) (b Backend, cl func() error, err error)
func (*Containerd) Rootless ¶
func (c *Containerd) Rootless() bool
type MinioOpts ¶
type Moby ¶
func (Moby) Close ¶
func (Moby) Name ¶
func (Moby) New ¶
func (Moby) Rootless ¶
type OCI ¶
func (*OCI) Close ¶
func (*OCI) Name ¶
func (*OCI) New ¶
func (*OCI) Rootless ¶
type Sandbox ¶
type Sandbox interface { Backend Context() context.Context Cmd(...string) *exec.Cmd Logs() map[string]*bytes.Buffer 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) Close() error Name() string Rootless() bool }
func List ¶
func List() []Worker
Source Files ¶
azurite.go containerd.go dockerd.go frombinary.go minio.go oci.go pins.go registry.go run.go sandbox.go sandbox_unix.go util.go
- Version
- v0.12.0-rc1
- Published
- Jun 30, 2023
- Platform
- js/wasm
- Imports
- 44 packages
- Last checked
- 4 minutes ago –
Tools for package owners.