package workers

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

Index

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"
)

Functions

func CheckFeatureCompat

func CheckFeatureCompat(t *testing.T, sb integration.Sandbox, reason ...string)

func HasFeatureCompat

func HasFeatureCompat(t *testing.T, sb integration.Sandbox, reason ...string) error

func InitContainerdWorker

func InitContainerdWorker()

func InitDockerdWorker

func InitDockerdWorker()

InitDockerdWorker registers a dockerd worker with the global registry.

func InitOCIWorker

func InitOCIWorker()

InitOCIWorker registers an integration test worker, which enables the --oci-worker flag in the test buildkitd instance and disables the --containerd-worker flag. This integration test worker is not supported on Windows.

func IsTestDockerd

func IsTestDockerd() bool

func IsTestDockerdMoby

func IsTestDockerdMoby(sb integration.Sandbox) bool

Types

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) NetNSDetached

func (c *Containerd) NetNSDetached() bool

func (*Containerd) New

func (c *Containerd) New(ctx context.Context, cfg *integration.BackendConfig) (b integration.Backend, cl func() error, err error)

func (*Containerd) Rootless

func (c *Containerd) Rootless() bool

type Moby

type Moby struct {
	ID                    string
	Binary                string
	IsRootless            bool
	ContainerdSnapshotter bool
	Unsupported           []string
	ExtraEnv              []string
}

func (Moby) Close

func (c Moby) Close() error

func (Moby) Name

func (c Moby) Name() string

func (Moby) NetNSDetached

func (c Moby) NetNSDetached() bool

func (Moby) New

func (c Moby) New(ctx context.Context, cfg *integration.BackendConfig) (b integration.Backend, cl func() error, err error)

func (Moby) Rootless

func (c Moby) Rootless() bool

type OCI

type OCI struct {
	ID                     string
	UID                    int
	GID                    int
	Snapshotter            string
	RootlessKitNet         string // e.g., "slirp4netns"
	RootlessKitDetachNetNS bool   // needs RootlessKitNet to be non-host network
}

func (*OCI) Close

func (s *OCI) Close() error

func (*OCI) Name

func (s *OCI) Name() string

func (*OCI) NetNSDetached

func (s *OCI) NetNSDetached() bool

func (*OCI) New

func (s *OCI) New(ctx context.Context, cfg *integration.BackendConfig) (integration.Backend, func() error, error)

func (*OCI) Rootless

func (s *OCI) Rootless() bool

Source Files

backend.go containerd.go dockerd.go features.go oci.go oci_unix.go util.go util_unix.go

Version
v0.15.0
Published
Jul 10, 2024
Platform
js/wasm
Imports
24 packages
Last checked
12 hours ago

Tools for package owners.