Documentation ¶
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
- type Worker
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 ¶
View Source
var ErrRequirements = errors.Errorf("missing requirements")
Functions ¶
func CheckFeatureCompat ¶ added in v0.11.0
func InitContainerdWorker ¶ added in v0.5.0
func InitContainerdWorker()
func InitDockerdWorker ¶ added in v0.8.0
func InitDockerdWorker()
InitDockerdWorker registers a dockerd worker with the global registry.
func InitOCIWorker ¶ added in v0.5.0
func InitOCIWorker()
func IsTestDockerd ¶ added in v0.10.1
func IsTestDockerd() bool
func IsTestDockerdMoby ¶ added in v0.11.0
func NewRegistry ¶ added in v0.5.0
func OfficialImages ¶
Types ¶
type Backend ¶ added in v0.7.0
type Backend interface { Address() string ContainerdAddress() string Rootless() bool Snapshotter() string }
Backend is the minimal interface that describes a testing backend.
type BackendConfig ¶ added in v0.7.0
BackendConfig is used to configure backends created by a worker.
type ConfigUpdater ¶ added in v0.5.0
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 ¶
Click to show internal directories.
Click to hide internal directories.