This commit is contained in:
2026-06-22 08:55:57 +08:00
parent dbb87823e8
commit 6ade6e8fa9
325 changed files with 41131 additions and 855 deletions
+15
View File
@@ -0,0 +1,15 @@
//go:build linux
package sandbox
// newPlatform dispatches the Linux sandbox modes to their concrete impls.
func newPlatform(mode Mode) Sandbox {
switch mode {
case ModeUID:
return &uidSandbox{}
case ModeContainer:
return &containerSandbox{}
default:
return nil
}
}