package system

import "github.com/moby/buildkit/util/system"

Index

Constants

const DefaultPathEnv = ""

DefaultPathEnv is deliberately empty on Windows as the default path will be set by the container. Docker has no context of what the default path should be.

Functions

func CheckSystemDriveAndRemoveDriveLetter

func CheckSystemDriveAndRemoveDriveLetter(path string) (string, error)

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 SeccompSupported

func SeccompSupported() bool

Source Files

path_windows.go seccomp_noseccomp.go

Version
v0.7.2
Published
Jul 27, 2020
Platform
windows/amd64
Imports
3 packages
Last checked
1 hour ago

Tools for package owners.