workers

package
v1.1.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2023 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

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

Variables

This section is empty.

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

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) 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
	IsRootless bool

	ContainerdSnapshotter bool

	Unsupported []string
}

func (Moby) Close

func (c Moby) Close() error

func (Moby) Name

func (c Moby) Name() string

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
}

func (*OCI) Close

func (s *OCI) Close() error

func (*OCI) Name

func (s *OCI) Name() string

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL