package system
import "github.com/moby/buildkit/util/system"
Index ¶
- Constants
- func CheckSystemDriveAndRemoveDriveLetter(path string) (string, error)
- func DefaultPathEnv(os string) string
- func SeccompSupported() bool
Constants ¶
const DefaultPathEnvUnix = "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
DefaultPathEnvUnix is unix style list of directories to search for executables. Each directory is separated from the next by a colon ':' character .
const DefaultPathEnvWindows = "c:\\Windows\\System32;c:\\Windows"
DefaultPathEnvWindows is windows style list of directories to search for executables. Each directory is separated from the next by a colon ';' character .
Functions ¶
func CheckSystemDriveAndRemoveDriveLetter ¶
CheckSystemDriveAndRemoveDriveLetter verifies that a path, if it includes a drive letter, is the system drive. This is a no-op on Linux.
func DefaultPathEnv ¶
func SeccompSupported ¶
func SeccompSupported() bool
Source Files ¶
path.go path_unix.go seccomp_noseccomp.go
- Version
- v0.8.0-rc2
- Published
- Nov 19, 2020
- Platform
- js/wasm
- Last checked
- 2 minutes ago –
Tools for package owners.