Documentation ¶
Index ¶
- Constants
- func CheckFeatureCompat(t *testing.T, sb integration.Sandbox, reason ...string)
- func HasFeatureCompat(t *testing.T, sb integration.Sandbox, reason ...string) error
- func InitContainerdWorker()
- func InitDockerdWorker()
- func InitOCIWorker()
- func IsTestDockerd() bool
- func IsTestDockerdMoby(sb integration.Sandbox) bool
- type Containerd
- type Moby
- type OCI
Constants ¶
View Source
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" FeatureContentCheck = "content_check" )
Variables ¶
This section is empty.
Functions ¶
func CheckFeatureCompat ¶
func CheckFeatureCompat(t *testing.T, sb integration.Sandbox, reason ...string)
func HasFeatureCompat ¶
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) NetNSDetached ¶
func (Moby) New ¶
func (c Moby) New(ctx context.Context, cfg *integration.BackendConfig) (b integration.Backend, cl func() error, err error)
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) NetNSDetached ¶
func (*OCI) New ¶
func (s *OCI) New(ctx context.Context, cfg *integration.BackendConfig) (integration.Backend, func() error, error)
Click to show internal directories.
Click to hide internal directories.