(command string, config SandboxConfig, cwd string)
| 56 | |
| 57 | func (m *SandboxManager) Platform() string { |
| 58 | if m == nil { |
| 59 | return runtime.GOOS |
| 60 | } |
| 61 | return m.platform |
| 62 | } |
| 63 | |
| 64 | func (m *SandboxManager) BackendName() string { |
| 65 | if m == nil { |
| 66 | switch runtime.GOOS { |
| 67 | case "darwin": |
| 68 | return "sandbox-exec" |
| 69 | case "linux": |
| 70 | return "bwrap" |
| 71 | default: |
| 72 | return "" |
| 73 | } |
no test coverage detected