You've already forked agentic-coding-workflow
16 lines
279 B
Go
16 lines
279 B
Go
//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
|
|
}
|
|
}
|