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 and manipulates a Windows path. This is used, for example, when validating a user provided path in docker cp. If a drive letter is supplied, it must be the system drive. The drive letter is always removed. Also, it translates it to OS semantics (IOW / to \). We need the path in this syntax so that it can ultimately be contatenated with a Windows long-path which doesn't support drive-letters. Examples: C: --> Fail C:\ --> \ a --> a /a --> \a d:\ --> Fail
func DefaultPathEnv ¶
func SeccompSupported ¶
func SeccompSupported() bool
Source Files ¶
path.go path_windows.go seccomp_noseccomp.go
- Version
- v0.9.0
- Published
- Jul 16, 2021
- Platform
- windows/amd64
- Imports
- 3 packages
- Last checked
- 11 minutes ago –
Tools for package owners.